[Gllug] IMAP

Liam Delahunty ldelahunty at britstream.com
Mon Oct 6 21:39:40 UTC 2003


Simon Faulkner Sent: 06 October 2003 17:03

>Right then, Procmail it is, <mental rolling up of sleves>
Good oh.

>Any advice for the procmail newbie?
Permissions were a small issue for my system; eventually things got settled
with
the .procmailrx (recipes) 644, the imap files at 600.

If you are going to use it for some spam filtering too then you might want
to give some users a code word to get through, so their email which contains
a 'bad' word will still be delivered.

:0:
* ^Subject:.*imokayword
$DEFAULT
(You could use the full path too /home/users/you/mail/inboxname)

:0:
* ^Subject:.*gllug
mail/list_gllug
(You could use the full path too /home/users/you/mail/lists/gllug)

If you register to stuff using special email addresses, then...

:0:
* ^TO.*123 at mydomain.co.uk
mail/folder_name

#Get the subject discarding any leading and trailing blanks
#Note: On some systems -xSubject: has to be -x"Subject: "
SUBJ_=`formail -xSubject: \
       | expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`

:0:
* ^Subject:(.*victor|.*liam)
{
  :0 fwh
  | formail -I"Subject: [Oh my name is in the subject, this is probably
spam] ${SUBJ_}"
  :0:
  mail/spam
}

Have fun.

Kind regards,
Liam


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list