Re: draft-murchison-sieve-subaddress-01
Ken Murchison <ken <at> oceana.com>
2000-09-12 19:43:34 GMT
Randall Gellens wrote:
>
> I think the draft should say why it is needed, that is, why not just use
>
> if address :contains :localpart ["to", "cc", "bcc"] "+foo"
The problem is that this will match both 'user+foo' and 'user+foobar'
which we may not want.
The :user and :detail options provide the same functionality as the
:localpart and :domain options -- they all allow for exact matches on
the various pieces of the address.
Without having variables, the :detail option doesn't have much, if any
use IMHO. But the :user option is valuable when people use detailed
'from' addresses. For example, if I want to do something with all
messages from you, I'd use:
if allof (address :user "from" "randy", address :domain "qualcomm.com")
This will catch mail from you whether you use "randy", "randy+sieve",
"randy+imap", etc. This being said, the best way to do this (and any
other complex address match) is via the regex extension, eg:
if address :regex "from" "randy(\\+.*)? <at> qualcomm.com"
> Also, should the draft deal with the fact that not all systems use "+" as
> the character which introduces subaddresses?
(Continue reading)