[Dovecot] Sieve scripts
Hi
I have a simple sieve script to discard email with a certain string in the subject. I now need to beef this up a bit with the following:
if header :contains "subject" "A" and "B" and not "C" discard if header :contains "subject" "A" and "D" and not "C" discard else pass
Maybe my google skills are failing but I can't find much info on creating sieve scripts. Can anyone point me in the right direction to achieve this please ?
Cheers Nick .
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4992 (20100401) __________
The message was checked by ESET NOD32 Antivirus.
On Thu, 1 Apr 2010 16:17:23 +0100, Nick Lunt <nick.lunt@patech-solutions.com> articulated:
Hi
I have a simple sieve script to discard email with a certain string in the subject. I now need to beef this up a bit with the following:
if header :contains "subject" "A" and "B" and not "C" discard if header :contains "subject" "A" and "D" and not "C" discard else pass
Maybe my google skills are failing but I can't find much info on creating sieve scripts. Can anyone point me in the right direction to achieve this please ?
((untested))
require ["fileinto", "reject"];
if allof (header :contains "Subject" ["A", "B"], not header :contains "Subject" "C") {discard; stop;}
elsif allof (header :contains "Subject" ["A", "D"], not header :contains "Subject" "C") {discard; stop;}
else {keep;}
-- Jerry Dovecot.user@seibercom.net
Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header.
You know you're a little fat if you have stretch marks on your car.
Cyrus, Chicago Reader 1/22/82
Hi guys,
i am new to dovecot but till now everything works as desired. i am setting up a SSL only environment. when i configure
ssl = required verbose_ssl = yes auth_verbose = yes auth_debug = yes
i get no warning that ssl/tls is not activated in the client. or STARTTLS not sent. the only thing that appears is
Aborted login (no auth attempts): rip=192.168.1.21, lip=192.168.1.20
when activating tls in thunderbird everything works fine. is there a way getting more verbose failures on this? do i miss something?
Thanks in advance Sven
On Sun, 2010-04-04 at 13:46 +0200, Sven wrote:
ssl = required verbose_ssl = yes auth_verbose = yes auth_debug = yes
i get no warning that ssl/tls is not activated in the client. or STARTTLS not sent. the only thing that appears is
Aborted login (no auth attempts): rip=192.168.1.21, lip=192.168.1.20
when activating tls in thunderbird everything works fine. is there a way getting more verbose failures on this? do i miss something?
Dovecot saw a client connect and then immediately disconnect. There's nothing else it can log about. The client probably saw that LOGINDISABLED capability was sent and noticed SSL/TLS wasn't enabled in its own config, so it logged out. I think TB should have also shown a dialog to user telling about this.
BTW. Don't post new messages by replying to existing ones, In-Reply-To: header is still created and it messes up threading.
Hi Jerry
-----Original Message----- From: dovecot-bounces+nick.lunt=patech-solutions.com@dovecot.org [mailto:dovecot-bounces+nick.lunt=patech-solutions.com@dovecot.org] On Behalf Of Jerry Sent: 01 April 2010 18:14 To: dovecot@dovecot.org Subject: Re: [Dovecot] Sieve scripts
On Thu, 1 Apr 2010 16:17:23 +0100, Nick Lunt <nick.lunt@patech-solutions.com> articulated:
Hi
I have a simple sieve script to discard email with a certain string in the subject. I now need to beef this up a bit with the following:
if header :contains "subject" "A" and "B" and not "C" discard if header :contains "subject" "A" and "D" and not "C" discard else pass
Maybe my google skills are failing but I can't find much info on creating sieve scripts. Can anyone point me in the right direction to achieve this please ?
((untested))
require ["fileinto", "reject"];
if allof (header :contains "Subject" ["A", "B"], not header :contains "Subject" "C") {discard; stop;}
elsif allof (header :contains "Subject" ["A", "D"], not header :contains "Subject" "C") {discard; stop;}
else {keep;}
Testing this now, I'll let you know how it goes.
Thank you.
Nick .
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5002 (20100405) __________
The message was checked by ESET NOD32 Antivirus.
-----Original Message----- From: dovecot-bounces+nick.lunt=patech-solutions.com@dovecot.org [mailto:dovecot-bounces+nick.lunt=patech-solutions.com@dovecot.org] On Behalf Of Nick Lunt Sent: 06 April 2010 08:49 To: dovecot@dovecot.org Subject: Re: [Dovecot] Sieve scripts
Hi Jerry
-----Original Message----- From: dovecot-bounces+nick.lunt=patech-solutions.com@dovecot.org [mailto:dovecot-bounces+nick.lunt=patech-solutions.com@dovecot.org] On Behalf Of Jerry Sent: 01 April 2010 18:14 To: dovecot@dovecot.org Subject: Re: [Dovecot] Sieve scripts
On Thu, 1 Apr 2010 16:17:23 +0100, Nick Lunt <nick.lunt@patech-solutions.com> articulated:
Hi
I have a simple sieve script to discard email with a certain string in the subject. I now need to beef this up a bit with the following:
if header :contains "subject" "A" and "B" and not "C" discard if header :contains "subject" "A" and "D" and not "C" discard else pass
Maybe my google skills are failing but I can't find much info on creating sieve scripts. Can anyone point me in the right direction to achieve this please ?
((untested))
require ["fileinto", "reject"];
if allof (header :contains "Subject" ["A", "B"], not header :contains "Subject" "C") {discard; stop;}
elsif allof (header :contains "Subject" ["A", "D"], not header :contains "Subject" "C") {discard; stop;}
else {keep;}
Testing this now, I'll let you know how it goes.
Thank you.
Nick .
Hi Jerry
all tested and working as expected, thanks for your help.
Nick .
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5012 (20100409) __________
The message was checked by ESET NOD32 Antivirus.
participants (4)
-
Jerry
-
Nick Lunt
-
Sven
-
Timo Sirainen