[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Proposed Sieve extensions (examples corrected)



The example under the "Action append" definition was incorrect; here is the
correct
example.

 	if allof( header ["To"] :contains "ietf-mta-filters",
 	          not header ["X-Filed"] :contains "ietf")
      {
 		append :new :header "X-Filed" "ietf"
 		fileinto "Lists/IETF"
 		keep
 	}

The example under the "Action replace" definition was also incorrect; it
should read:

 	if allof( header ["To"] :contains "ietf-mta-filters",
                not header ["X-Filed"] :contains "ietf")
      {
		if not header ["Subject"] :contains "[IETF]" {
			replace :header "Subject" "[IETF] $SUBJECT"
		}
		append :header "X-Filed" "ietf"
 		resend "Local-IETF-List"
 	}

	The above example modifies the original Subject header by inserting a list
	identifier into the subject.