9 messages in net.sourceforge.lists.courier-maildrop[maildropl] Re: mailfilter syntax error
FromSent OnAttachments
john gennardFeb 27, 2003 9:40 am 
Devin RubiaFeb 27, 2003 10:25 am 
Francois ZellingerFeb 27, 2003 12:22 pm 
GaryFeb 27, 2003 12:48 pm 
Sam VarshavchikFeb 27, 2003 2:48 pm 
Payal RathodFeb 27, 2003 7:11 pm 
john gennardFeb 28, 2003 9:09 am 
Devin RubiaFeb 28, 2003 11:20 am 
Francois ZellingerMar 1, 2003 1:50 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Re: mailfilter syntax errorActions...
From:john gennard (jon@clara.co.uk)
Date:Feb 28, 2003 9:09:43 am
List:net.sourceforge.lists.courier-maildrop

On Thu, 27 Feb 2003, Devin Rubia <dev@thezone.net> and Francois Zellinger <frz@pt.lu> kindly replied to my request for help and gave basically the same advice as follows:-

if (/^To:.*debian-user@lists\.debian\.org$/) { to Maildir/debian/ } if (/^To:.*gllug@linux\.co\.uk$/) { to Maildir/gllug/ } if (/^To:.*getmail@discworld\.dnsalias\.org$/) { to Maildir/getmail/ }

--------------- should work!

Devin, I had read all the maildrop and maildirmake manpages - I was referring to a tutorial type write-up which started with the files to create and worked through a complete configuration.

I tried to use the filter rule format I did as something similar is given as the first example in the 'maildropex(5)' manpage. Now I understand what you write and have rewritten the .mailfilter file accordingly. When I have finished all my rules I shall have a rather large file - is there any way of creating 'composite' rules thus reducing the size?

However,now, I have lost the syntax error message and instead have a 'cannot open mailbox' one viz,

--------------- msg #1/23 : len 2394 ... retrieved Delivery error (command "/usr/bin/maildrop" exited 75 (/usr/bin/maildrop: Unable to open mailbox.)) Resetting connection and aborting (Delivery error (command "/usr/bin/maildrop" exited 75 (/usr/bin/maildrop: Unable to open mailbox.)))

---------------

I think my /usr/bin/maildrop permissions are correct, and john is a member of 'mail' group:-

--------------- -rwxr-sr-x 1 root mail 159760 Feb 19 2002 /usr/bin/maildrop

---------------

Any idea why the 'mailbox' cannot be opened? Grateful if you can explain.

Incidentally, I am trying to get to grips with regexs and python and have most of O'Reilly's relevant Linux publications and Friedl's 'Mastering Regular Expressions' but it's going to be a long haul. Help like this enables me to work out why things that I am involved in work - more rewarding that textbook examples.

Many thanks, John.