Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-15-2009, 09:23 AM   #1
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
help with users .mailfilter file. Sorting emails sent to distribution and carbon copy

Im having a bit of a problem using .mailfilter in a users home directory to sort incoming email into folders automatically when it hits the server rather than using the email client to do the filtering.


CentOS 2.6.18-92.el5PAE

rpm -qa | grep -i courier

I have a .mailfilter in /home/user with the following contentsOwned/grouped correctly)

logfile "$HOME/mailfilter.log"

if (/^To: distributionslist/ )
to "$HOME/Maildir/.distributionslist/"

I also have other filters that do work. The problem is with distribution list emails. For example. I have a list we'll call distributionslist, the email for this is So if someone sends an email to it SHOULD be automatically sorted into .distributionslist or distributionslist folder in the email client. Some of the emails work and some end up in the Inbox. Also, sometimes people will have their own nickname for distributionslist and they'll call it something like Distributions List or some other variation. My email client is Thunderbird, so when one of these emails come in in the email header I will see To: Distributions List, then if I highlight it I will see the actual email.

So how do I set up my .mailfilter to include the different spelling variations of the distributions list? Shouldn't courier/mailfilter only go by the actual email and NOT the nickname? Also how would I sort emails that were CC (carbon copy) to the same distributions list? Sorry if this is confusing but I am confused.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping a copy of emails aktar_alam Linux - Newbie 9 09-24-2009 11:24 AM
different users can all access file system and copy/paste? mhg Linux - Newbie 3 10-28-2008 09:40 PM
get a copy of outgoing and incoming emails cksoo Linux - Enterprise 0 02-12-2006 12:56 AM
sorting emails with alias adresses ? Biased turkey Linux - General 3 08-17-2005 02:52 PM
How to copy one file in all users directories aizkorri Programming 1 09-02-2002 07:32 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration