LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   procmail, evolution & mbox format (https://www.linuxquestions.org/questions/linux-software-2/procmail-evolution-and-mbox-format-844637/)

chexmix 11-16-2010 11:06 AM

procmail, evolution & mbox format
 
Good day all,

I am experimenting with procmail for a work project and not getting the behavior I expected.

Here is the .procmailrc file in question:

Code:

MAILDIR=/var/mail/skutch
LOGFILE=/home/skutch/procmail.log

:0
* ^Subject.*Mandelbrot
/home/skutch/evolution/local/Inbox/subfolders/Math

After running the following,

Code:

echo test | mailx -s Mandelbrot skutch
here is what is at the end of procmail.log:

Code:

From skutch@fakedomain.net  Tue Nov 16 11:55:27 2010
 Subject: Mandelbrot
  Folder: /home/skutch/evolution/local/Inbox/subfolders/Math/msg._RoeB      651

... so the mail is getting to the correct Evolution folder, but sitting there as a separate file, not being appended to the mbox file.

I'm not sure exactly how to troubleshoot this & so far Googling has not turned up what I am after ... does this make sense to anyone? Where does the fault lie (apart from between my ears)?

Thanks,

Glenn

tsg 11-16-2010 01:50 PM

If the action line is a directory, procmail will put the message in a unique file in that directory. If it is a file, it will append it to the file. There is some other magic going on (see man procmailrc), but the short answer is you have to specify the file name if you want all mail go to one file.

chexmix 11-17-2010 11:44 AM

Quote:

Originally Posted by tsg (Post 4161016)
If the action line is a directory, procmail will put the message in a unique file in that directory. If it is a file, it will append it to the file. There is some other magic going on (see man procmailrc), but the short answer is you have to specify the file name if you want all mail go to one file.

Thanks so much.


All times are GMT -5. The time now is 02:37 PM.