[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Re: Procmail
And Lo! The Great Prophet Richard Ibbotson uttered these words of wisdom:
>
> Yep.. that's true :) But, I still need procmail so that my incoming
> mail is taken from /var/spool/mail or wherever and dropped into
> /home/richard/Mail/inbox so that I can read it.
>
Wouldn't it be simpler to have your MTA to deliver straight into $HOME
somehow? I'm also sure there's a way to have .forward send mail straight to
a maildrop (you could probably use something like: "|cat >> /home/richard/
Mail/inbox", but you'd need to add locking to that so you don't corrupt the
mailbox). Alternatively, any reason why pine can't look in /var/spool/mail?
They're just a few more thoughts.
Back to procmail though; if all you want if for mail to be delivered straight
into /home/richard/Mail/inbox, then just have a .forward that contains:
|procmail
And a procmailrc that simply contains:
DEFAULT=/home/richard/Mail/inbox
and leave it at that. No rules, no other variable settings. Just a single
line. When procmail processes .procmailrc, it'll fall off the end of the
rules and deliver the mail to the DEFAULT mailbox...or at least that's the
theory :)
I don't know which MTA you use, so how you invoke procmail from .forward
may vary. But probably not by much. If you use qmail, you don't even need
to use procmail as qmail's $HOME/.qmail files allow you to specify an
alternate destination.
As for why procmailex isn't in procmailrc, I think I prefer it as is.
procmailrc and procmailex are long enough on their own without combining
them. Thus you've seperate references and guidebook man pages, so to speak.
And in the EXAMPLES section of procmailrc(5) it says "See procmailex(5)" :)
Can't think of anything else at the moment though.
Chris...
--
\ Chris Johnson \ NP: Alisha's Attic - 12. Air We Breathe
\ cej [at] nightwolf.org.uk ~-----,
\ http://cej.nightwolf.org.uk/ ~-----------------------------------,
\ Redclaw chat - http://redclaw.org.uk - telnet redclaw.org.uk 2000 \____
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.