Re: fetchmail questions
On Sat, Dec 15, 2001 at 12:02:19PM +0000, Stig Brautaset wrote:
| * Alan Chandler <alan@chandlerfamily.org.uk> spake thus:
| > On Friday 14 December 2001 11:59 pm, Stig Brautaset wrote:
| > > * Alec <alec1976nyc@yahoo.com> spake thus:
| > >> Is it possible to get fetchmail to dump messages from my yahoo account
| > >> into, say "~/yahoo", instead of mixing it with the other mail in
| > >>"/var/mail/alec".
| > >
| > > Not that I know of, as fetchmail delivers the mail it fetches from your
| > > yahoo account to your local MTA (mail transfer agent -- in your case,
| > > probably Exim) for further delivery. Exim puts your mail in
| > > /var/mail/alec for collection.
| > >
| >
| > exim doesn't have to - its not to difficult to alter
| > /etc/exim/exim.conf and create a transport to deliver messages to
| > a mbox called ~/yahoo or a maildir called ~/yahoo.
|
| I know it don't, but that would be curing the symptoms, not the desease
| IMHO. This is what procmail is for (and is very, very good at).
|
| putting these few lines in ~/.procmailrc achives what the OP wants:
Or using an exim filter :
(~/.forward)
# Exim filter
if $header_To: contains "alec197nyc@yahoo.com" then
save $home/Mail/yahoo
finish
endif
-D
--
If your life is a hard drive,
Christ can be your backup.
Reply to: