Paul Raines wrote:


THe most glaring problem with sieve is that folder names to be
sorted into cannot be dynamically determined at script run time
(unless I have missed some extension that does this).

A very common thing people do is to sort incoming email into
folders according to the From address.  Or sorting into a
folder where the name of the folder has the date appended.

Ideally sieve would support something like:

if address :domain :is "From" "mycompany.com" {
  fileinto "INBOX.$fromAddrUser$";
  stop;
}

where $fromAddrUser$ is a macro that gets replaced at runtime by
the first part of the from address (i.e. by 'raines' if the
address is '[EMAIL PROTECTED]')

There is an extension to Sieve in the works which allows the use of variables. No work has been done on Cyrus to add support for this extension as of yet.

--
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
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Reply via email to