447 reputation
314
bio website partmaps.org/era/unix/…
location
age
visits member for 3 years, 2 months
seen Dec 10 at 7:56

There is probably an anecdote from the Bell Labs from the early 1970s which either solves your problem or improves your understanding of it.

http://www.unix.org/license-plate.html


Sep
10
comment Decrypt incoming pgp mail with procmail
let us continue this discussion in chat
Sep
10
comment Decrypt incoming pgp mail with procmail
See above. But also fix the decrypt.pl script to pass through message headers and MIME headers.
Sep
10
comment Decrypt incoming pgp mail with procmail
However, you should probably use a filtering recipe instead, i.e. :0fw -- a delivering recipe which fails to actually deliver the message anywhere will cause that message to be lost.
Sep
10
comment Decrypt incoming pgp mail with procmail
If your recipe lacks a pipe character, Procmail will use the file as an mbox folder, and append to the end of it. Make sure you use the correct syntax.
Sep
10
comment Decrypt incoming pgp mail with procmail
Iterate over the array and print each item, or simply print(join("",@{$arrayref})).
Sep
9
answered Decrypt incoming pgp mail with procmail
Sep
9
comment Procmail (permission related) - delivery fails: “process exited returning 77”
Sounds like you are attempting to treat //var/mail/root (sic) as an mbox file when in fact it is a directory?
Jul
25
comment forward all mail on a specified domain to script
+1 Procmail is enabled by default in most MTAs these days, you just have to make sure Procmail is installed and create a $HOME/.procmailrc. At least Exim and Postfix usually have this configured already. Procmail offers some clear benefits over directly forwarding to a script of your own, especially when it comes to robust error handling. If your script fails for whatever reason, the email is not entirely lost (and it's easy to put in security mechanisms like a safety copy of each incoming message to a directory in /tmp until you have a good, working, properly tested configuration).
Jul
22
answered Procmail - Replace From with text from within email
May
14
comment Procmail to delete mail from senders
The trailing .* is superfluous, albeit mostly harmless. Do you really intend to allow exactly one arbitrary character between From: and root@?
May
14
awarded  Caucus
Apr
25
comment Configuring Postfix, Spamassassin and Procmail to put spam in a dedicated folder
Wild guess, wrong permissions for the rc file?
Apr
25
comment How to use procmail to get a message into a variable
Sorry for the multiple edits; I had a couple of false starts.
Apr
25
revised How to use procmail to get a message into a variable
Actually, just plain `MESSAGE=|` does not work
Apr
25
revised How to use procmail to get a message into a variable
Restore curl part of the original answer in somewhat improved form, too
Apr
25
answered How to use procmail to get a message into a variable
Apr
20
awarded  Scholar
Apr
20
accepted Understanding ulimit -u
Apr
20
comment Understanding ulimit -u
I guess @MichaelHampton was on to the same idea, and I was too dense to get it ...
Apr
20
comment Understanding ulimit -u
@CharlesDuffy: Ah, that sorts it out. If you want to post your remark as a separate answer, I'll be happy to accept it.