Skip to main content

Questions tagged [procmail]

Procmail is a powerful Mail Delivery Agent (MDA) capable of sorting and filtering mail based on rulesets called recipes. It's rather *nix-centric, terse, mature, and proven. However, it is now unmaintained.

procmail
0 votes
1 answer
51 views

Using procmail to pipe to a php script, can I add a variable to be checked [closed]

I have a procmail script set up which pipes to a PHP script when an email subject line matches: :0 * ^[email protected]|^Subject.*(REMOVE|Undelivered Mail) | /usr/bin/php -f /var/www/somefolder/...
jamminjames's user avatar
1 vote
1 answer
34 views

Procmail regex to mark anything that doesn't contain a specific string in To: field

I'm pretty good in regex... but can't solve this Procmail problem. :0 * ^Subject:.*Derila.* /dev/null filters out everything that contains Derila in subject line. working. But how do I filter out - ...
ff-webdesigner's user avatar
0 votes
1 answer
50 views

How To Mark All Emails As Read In A Specific Folder Using Procmail Filter

Currently I have a filter in Procmail to place any emails with the subject WJZGGZ inside of a specific folder called Instantly Warmups. This is how it looks like in the procmail configuration file: :0 ...
Digital Joe George's user avatar
0 votes
2 answers
90 views

How to forward spam to SpamCop.net with procmail

From https://de.wikipedia.org/wiki/Procmail :0fw | /usr/bin/spamassassin :0H * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\* /dev/null :0H: * ^X-Spam-Status: Yes ./Spam I would like to complement the move ...
Thomas Kujawa's user avatar
0 votes
1 answer
39 views

How to prevent procmail from crashing the platform and make it run one process at a time?

I have the problem that I capture emails and they arrive in masses, the issue is that every time they arrive in masses the platform crashes, the question is how to make it go running the process 1 at ...
alex spencer's user avatar
0 votes
1 answer
363 views

Procmail rule to change subject and forward a copy

I have an existing procmail recipe to forward a copy to my gmail account that is working well: :0c ! [email protected] I have a second rule that is also working well (in limited testing) to prefix ...
dawydiuk's user avatar
0 votes
1 answer
197 views

How to set variable in procmail as To email address

I have a Procmail rule that uses formail to parse the To: email header to determine the email address the email was sent to: TO_=`formail -XTo:` This isn't working, as I'd like ${TO_} to evaluate to &...
dawydiuk's user avatar
0 votes
1 answer
223 views

Procmail filtering by Date: field

I need to move away mails older than given time - let it be 24h = 86400s. I use old good procmail for multiple other purposes on that machine, so I wanted to use is as well for this purpose. It also ...
Jakub Danecki's user avatar
-1 votes
1 answer
78 views

procmail - using {} won't deliver to mbox

I'm trying to use procmail to tidy up some old email into my thunderbird mbox file, however I can't seem to get it to file into an mbox file when using braces. Doing the simple test below with and ...
Jake Stride's user avatar
0 votes
1 answer
368 views

How to correctly get body of email into scalar variable with procmail

I have the below procmail recipe that for years has faithfully worked (passed senders email and subject) to the perl script and saved the attachments. FROM="" :0 * ^FROM:.* * ^From:[ ]*\/[...
gatorreina's user avatar
0 votes
1 answer
267 views

Using Procmail/Formail/Regex correct an error in email headers [closed]

I am trying to remove an unwanted character > appearing in the "From " line in the headers of some old archived emails such as ">From" and am unable to do so by rewriting the ...
Ray ISUNSI's user avatar
0 votes
1 answer
127 views

procmail: getting procmail to exclude hostname while saving Maildir format messages

How do I get procmail to save messages in my Maildir folder, but not include the hostname in the file (message name)? I get the following message names in my new/ sub-folder: 1464003587....
user3236841's user avatar
  • 1,223
2 votes
2 answers
232 views

How do I categorise non-english email using procmail and command line tools?

I am subscribed to a mail list where some of the messages are non-english which I cannot understand. How do I filter the non-english messages to /dev/null using procmail and/or command line tools? I ...
makeyourownmaker's user avatar
0 votes
1 answer
44 views

How can I log URLs that come in my incoming mailspool?

I have a mailspool on a UNIX system ... so, /var/mail/username ... and it is in mbox format. Once the email is stored in mbox format, the URLs that come in emails are chopped into 40 character lines ...
user227963's user avatar
0 votes
1 answer
408 views

Any way to filter email dynamically by taking 'from' and matching it with database ? (Using procmail or Virtualmin or Webmin)

I basically want to check the incoming 'From' in the email received and then either Keep it and make it deliver to the intended mailbox if the email matches a Specified MySQL/PostgreSQL Database ...
gb.123's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
12