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 4 users online :: 1 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 964 on Tue Sep 29, 2020 11:23 pm

Users browsing this forum: Google [Bot] and 3 guests