Re: fetchmail questions
* dman <dsh8290@rit.edu> 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
Ah, now that is cool; I didn't know exim could do that. I stand
corrected.
Stig
--
brautaset.org
Registered Linux User 107343
Reply to: