Harondel J. Sibble
2015-Apr-04 08:02 UTC
speaking of sieve scripts... how to selectively not send vacation autoreply
Don't need to block anyone like in the "Re: Dovecot Oy merger with Open-Xchange AG" thread, but when I have my vacation recipie active, I'd like it to NOT reply to certain addresses. I tried the following, you can see the section with if header :contains "addressIdontwant at repliedtoo.tld" is commented out, once I'd added that section, no Vacation messages went out at all.? Googling and reading the wiki and recipie suggestions doesn't make it clear how to exempt a list of addresses from ever receiving a vacation response.? Suggestions on additional reading or solutions? require ["fileinto", "vacation"]; if header :comparator "i;ascii-casemap" :contains "Subject" "**SPAM**"? { ??????? fileinto "Trash"; ??????? stop; } #if header :contains "addressIdontwant at repliedtoo.tld" { #?????? stop; #} vacation ? # Reply at most once a day to a same sender ? :days 1 ? :subject "Changes to email addresses effective Jan 01/15" ? # List of recipient addresses which are included in the auto replying. ? # If a mail's recipient is not on this list, no vacation reply is sent for it. ? :addresses ["user at repliedtoo.tld"] This is on a Dovecot 1.x system that is slated for an upgrade soon. -- Harondel J. Sibble Sibble Computer Consulting Ltd. Creating Solutions for the small and medium business computer user. harondel at pdscc.com (use pgp keyid 0x3CC3CFCE not 0x3AD5C11D) http://www.pdscc.com Blog: http://www.pdscc.com/blog (604) 739-3709 (voice)
Jiri Bourek
2015-Apr-04 10:18 UTC
speaking of sieve scripts... how to selectively not send vacation autoreply
On 4.4.2015 10:02, Harondel J. Sibble wrote:> Don't need to block anyone like in the "Re: Dovecot Oy merger with > Open-Xchange AG" thread, but when I have my vacation recipie active, I'd like > it to NOT reply to certain addresses.The commented out condition in the rule you posted seems syntactically wrong to me (not sure, never used Dovecot 1.x so can't rule out the possibility it's valid there.) Also I think you can find answer to your question in one of RH's posts in the thread you mentioned.
Stephan Bosch
2015-Apr-04 10:19 UTC
speaking of sieve scripts... how to selectively not send vacation autoreply
On 4/4/2015 10:02 AM, Harondel J. Sibble wrote:> Don't need to block anyone like in the "Re: Dovecot Oy merger with > Open-Xchange AG" thread, but when I have my vacation recipie active, I'd like > it to NOT reply to certain addresses. > > I tried the following, you can see the section with > > if header :contains "addressIdontwant at repliedtoo.tld" > > is commented out, once I'd added that section, no Vacation messages went out > at all. Googling and reading the wiki and recipie suggestions doesn't make > it clear how to exempt a list of addresses from ever receiving a vacation > response. Suggestions on additional reading or solutions? > > require ["fileinto", "vacation"]; > if header :comparator "i;ascii-casemap" :contains "Subject" "**SPAM**" { > fileinto "Trash"; > stop; > } > > #if header :contains "addressIdontwant at repliedtoo.tld" { > # stop; > #} > > vacation > # Reply at most once a day to a same sender > :days 1 > :subject "Changes to email addresses effective Jan 01/15" > # List of recipient addresses which are included in the auto replying. > # If a mail's recipient is not on this list, no vacation reply is sent for > it. > :addresses ["user at repliedtoo.tld"] > > This is on a Dovecot 1.x system that is slated for an upgrade soon.You should really inspect your log files or test the scripts with the sieve-test command line tool. There is a syntax error in the part you commented out: error: the header test requires 2 positional argument(s), but 1 is/are specified. At delivery, this means that the script is not executed at all and the message is just filed into INBOX. Regards, Stephan.
Harondel J. Sibble
2015-Apr-04 16:44 UTC
speaking of sieve scripts... how to selectively not send vacation autoreply
On 4 Apr 2015 at 12:19, Stephan Bosch wrote:> > #if header :contains "addressIdontwant at repliedtoo.tld" { > > # stop; > > #} > > > > vacation > > # Reply at most once a day to a same sender > > You should really inspect your log files or test the scripts with the > sieve-test command line tool. There is a syntax error in the part you > commented out: > > error: the header test requires 2 positional argument(s), but 1 is/are > specified. > > At delivery, this means that the script is not executed at all and the > message is just filed into INBOX. > > Regards, > > Stephan.I wasn't even aware of the sieve-test command, that'll really come in handy, thanks for that tip I believe I based my entry on the if header :contains "X-Spam-Level" "**********" { discard; stop; } here and until you mentioned it, I did not realize the *'s were a second argument, I'd assumed it as part and parcel of the same argument. wiki2.dovecot.org/Pigeonhole/Sieve/Examples#Spam.2BAC8-Virus_rules I'll try the recipie RH posted if address :is ["From", "Sender"] ["h.reindl at thelounge.net", "nick.z.edwards at gmail.com"] { discard; } modified as below if address :is ["From", "Sender"] ["addressIdontwant at repliedtoo.tld", "otheraddressIdontwant at repliedtoo.tld"] { stop; } -- Harondel J. Sibble Sibble Computer Consulting Ltd. Creating Solutions for the small and medium business computer user. harondel at pdscc.com (use pgp keyid 0x3CC3CFCE not 0x3AD5C11D) http://www.pdscc.com Blog: http://www.pdscc.com/blog (604) 739-3709 (voice)