Ken Murchison wrote:
>
> Gary Mills wrote:
> >
> > On Thu, Dec 13, 2001 at 11:21:14AM -0500, Ken Murchison wrote:
> > >
> > > [EMAIL PROTECTED] wrote:
> > > >
> > > > We are running Cyrus IMAP4 v2.1.0pre, from a CVS of a month or so ago.
> > > > Some users have sieve scripts that have two `redirect' commands,
> > > > one specifying another e-mail address, and one specifying their own
> > > > e-mail address. Their intention is to forward a copy of the mail
> > > > and also deliver a copy to their INBOX. However, the second copy
> > > > disappears.
> > > >
> > > > Apparently, Cyrus sieve re-mails both copies, but when the copy
> > > > addressed to the original address is re-delivered, the duplicate
> > > > supression mechanism discards it.
> > >
> > > How would we determine that they are redirecting to themselves? You'd
> > > end up getting into the 'vacation' problem of knowing all of the user's
> > > addresses and aliases.
> >
> > Well, if the redirect address is the same as the envelope recipient,
> > sieve could take a shortcut and just perform a `keep' operation.
> > I realize that this would not prevent all mail loops, but it covers
> > the most common case. Sendmail with .forward files handles this
> > case correctly.
>
> Hmm... Well, this won't as-is for the same reason that people need to
> specify :addresses for vacation. The envelope recipient when retrieved
> by sieve is unqualified (ie, no domain) and the redirect address is (as
> is required by the Sieve parser).
Just to make sure I'm not completely full of it, I implemented the quick
envelope check, and it does indeed fail for the reason stated above.
Ken
--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26 Orchard Park, NY 14127
--PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp