[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] Procmail again




Hi All,

I've been having a look at a bunch of procmail FAQs and the manpages,
however I'm still unable to achieve anything.

Below is my first shot at a ~/.procmailrc - just to filter off LUG
messages to other mail files, and move everything else to "othermail":

# .procmailrc
# routes incoming mail to appropriate mailboxes
PATH=/usr/bin:/usr/local/bin
MAILDIR=$HOME/Mailbox   # but this is a file...!?
LOGFILE=$HOME/proclog
SHELL=/bin/bash
DEFAULT=/$HOME/othermail

# Put mail from ShefLUG mailing list into sheflug mailbox
:0:
* ^Subject:.*Sheflug
/$HOME/sheflug

# Put mail from WiltsLUG mailing list into wiltslug mailbox
:0:
* ^Subject:.*wiltshire
/$HOME/wiltslug

Now, correct me if I'm wrong, but are all mail "directories" not just
flat files? Every mail file I've ever looked at has been.

Therefore, if I set MAILDIR to $HOME/Mailbox instead of the normal
/var/spool/mail/$LOGNAME surely it shouldn't matter?

Running procmail from the command line doesn't do much - procmail
looks like it hangs until I kill it with Ctrl-C when it gives

procmail: Terminating prematurely

Am I missing something obvious here?

Cheers.

Baz. 
-- 
Barrie J. Bremner		OpenPGP public key ID: 5164F553
baz [at] barriebremner.com	http://barriebremner.com/


___________________________________________________________________

Sheffield Linux User's Group - http://www.sheflug.co.uk . 
To unsubscribe from this list send mail to 
shef-lug-request@list.sheflug.org.uk with the word
"unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.