"Matthew Sackman" <[EMAIL PROTECTED]> wrote: > > I would love to know of the details in the .fetchmailrc file of anyone > who > is successfully selecting emails for themselves that are part of a > mailing > list (or any other information that could help!).
OK Matthew - I subscribe to a number of mailing lists. Fetchmail just collects all the mail from my ISP's mailserver using POP3. The mail is then passed on to Exim which sorts it into folders on my system. The important file here is the ~/.forward: # Exim filter <<== do not edit or remove this line! if error_message then finish endif logfile $home/eximfilter.log if $h_To: contains "sah1" then deliver scott elif $h_x-mailing-list matches "^<debian-(.*)@lists\\.debian\\.org>" then save $home/Mail/Debian elif $h_subject: contains "RM-Networks" then save $home/Mail/School elif $h_subject: contains "seul-edu" then save $home/Mail/SuSE elif $h_To: contains "palm-talk" then save $home/Mail/PT elif $h_subject: contains "SLU" then save $home/Mail/Storm elif $h_subject: contains "AWL:" then save $home/Mail/AW elif $h_subject: contains "dvduk" then save $home/Mail/DVD elif $h_subject: contains "Debian-uk" then save $home/Mail/Debian elif $h_subject: contains "suse-linux-uk-schools" then save $home/Mail/SuSE elif $h_subject: contains "[leicester]" then save $home/Mail/Debian elif $h_subject: contains "Pilot-Unix" then save $home/Mail/Pilot-Unix elif $h_subject: contains "northants" then save $home/Mail/Debian endif As you can see, many mailing lists insert a comment in the subject line - AWL is the Applixware mailing list. All messages from this list have a subject line which begins [AWL] making them easy to sort. The Debian list messages are all caught by the x-mailing-list header and the rather complicated formula I got from this group. Examine the mailing list headers carefully - there is nearly always something unique in the header. If not, have a couple of filters for each list. Note that the first recipe delivers mail for another user on my system which arrives in my mailbox. Hope this helps - though if you don't use Exim it won't!!!! -- Phillip Deackes Using Storm Linux