Hello

I try using subaddress delivery:

SIEVE=yes
SUBADDRESS=yes

sent message to [EMAIL PROTECTED]

Current logic:
subaddress code found +SPAM and set mailbox to 'SPAM' -> ok
sieve code run sieve-script and found:
'  else { fileinto "INBOX"; }  ' and set mailbox to 'INBOX'
so, message is saving to INBOX

I think, this isn't what I want ;(

May be logic must be:
subaddress code found +SPAM and set mailbox to 'SPAM'
sieve code must get this as _default_ mailbox instead of INBOX
so, that message is saved in mailbox, founded by subaddress code
  but if 'fileinto "not_INBOX";' was found - save to that "not_INBOX" folder

For now, I change:

        /* Sieve. */
        config_get_value("SIEVE", "DELIVERY", val);
-        if (strcasecmp(val, "yes") == 0) {
+        if (source != BOX_ADDRESSPART && strcasecmp(val, "yes") == 0) {

to turn off sieve scripting, if subaddress was founded


What do you think about this?

-- 
Oleg Lapshin

Reply via email to