Difference between .procmailrc-first and .procmailrc

General discussions and other topics.
2 posts Page 1 of 1
by Guest » Mon Oct 07, 2013 11:06 am
Just a tip/heads up to anyone trying to use procmailrc files in Sonic's environment.

At present, the working directories of .procmailrc-first and .procmailrc are different, and so anything to do with file reading/writing could give different results (usually a fail in .procmailrc-first) if you neglect to specify absolute paths.

.procmailrc-first appears to run with a working directory of /var/spool/mqueue
.procmailrc appears to run with a working directory of your home directory

So, as an example, if you are writing non-mail-folder files as part of either script, you want to make sure you prefix the file path with $HOME/ to ensure you can read and write to the file.
by kgc » Mon Oct 07, 2013 3:15 pm
I've created a note in the wiki that links back to this post. Thanks for sharing this.
Kelsey Cummings
System Architect, Sonic.net, Inc.
2 posts Page 1 of 1

Who is online

In total there are 14 users online :: 0 registered, 0 hidden and 14 guests (based on users active over the past 5 minutes)
Most users ever online was 422 on Sat May 26, 2012 5:28 am

Users browsing this forum: No registered users and 14 guests