procmail

Using procmail to copy emails to another address and altering “from”

[亡魂溺海] 提交于 2019-12-12 03:24:00
问题 I get email alerts that are generated by a user on one of my servers. These alerts are generated by server@######.com and they have to do with third party software not working properly. I'm trying to use procmail to copy (as I want to keep receiving these) these emails to ABC@XYZ.com. I'm looking for emails that, in their body, have "C:" followed by 6 characters, a dot, and 3 more characters. All of that is working fine, but I want the third party to get these emails from me bruno@XXXXXX.com

Configure procmail to match an external email address list when filtering emails

依然范特西╮ 提交于 2019-12-11 15:15:43
问题 My fetchmail scripts retrieves emails from an email box and puts them into a file, called mario , and dumps it into my /var/mail/ folder. I am trying to set up a procmail script to process mario ; by processing, this is what I mean: the procmail script should filter against an external text file ( fromlist ) containing a list of known email addresses. Once there is a match mario/fromlist , the message is pulled out from mario and stored into my local nbox/ folder. Online, I found a piece of

正式的介绍「Mutt」:命令行的邮件大师 (一文详解)

萝らか妹 提交于 2019-12-07 20:57:01
为什么要用Mutt? 这个世界已经有了成百上千的漂亮邮件客户端,为什么还要用命令行里的? 其实说什么功能都没用。说到本质上,其实是一种Geek精神,一种爱折腾的精神,一种Customizability的精神。就像明明有WhatsApp,还要用IRC一样的精神;明明有Finder,还要用Ranger的精神。 在终端里待久了,会比较烦GUI,所以不管什么软件都会寻求终端的替代方案。 对于这个需求来说,在Linux的世界里,似乎就只有一个选择:Mutt。 Mutt的可配置性,强如Vim。配置起来也和Vim差不多,有专门的 ~/.muttrc 供你配置软件本身。 需要理解的是: Mutt本身是一个框架而已。收件、发件、编辑邮件等功能,是要通过搭配不同的程序来做到的。 Mutt的模块搭配方案 就像穿衣搭配一样,收件发件过滤邮件转发邮件各种功能都有很多种程序可以用,mutt怎么搭配呢? 常用选项有这些(User/Transport/Delivery): MUA 收件: fetchmail 或 getmail 或 OfflineIMAP MTA 发件: sendmail 或 msmtp 或 postfix 。其中 msmtp 兼容强, postfix 对国内不友好 MDA 分类: procmail 或 maildrop 邮件编辑:VIM。 参考邮件代理(功能分类):Email agent

Sendmail/procmail - get mail sender and mail subject, utf8 encoding issues [closed]

这一生的挚爱 提交于 2019-12-06 15:28:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . My .procmailrc (really simple): :0c | $HOME/send_sms.sh "`formail -xFrom:`" "`formail -xSubject:`" So, sender named "mail@domain.com" sends message with subject "Subject test ąść". The script "send_sms.sh" receives: Sender: =?UTF-8?Q?mail@domain.com?= <mail@domain.com> Subject: =?UTF-8?Q?Subject_test_=C4=85=C5

Sendmail/procmail - get mail sender and mail subject, utf8 encoding issues [closed]

让人想犯罪 __ 提交于 2019-12-04 22:45:48
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . My .procmailrc (really simple): :0c | $HOME/send_sms.sh "`formail -xFrom:`" "`formail -xSubject:`" So, sender named "mail@domain.com" sends message with subject "Subject test ąść". The script "send_sms.sh" receives: Sender: =?UTF-8?Q?mail@domain.com?= <mail@domain.com> Subject: =?UTF-8?Q?Subject_test_=C4=85=C5=9B=C4=87?= How should I modify my .procmailrc to get clear text? Or convert this in my script send_sms

Want procmail to run a custom python script, everytime a new mail shows up

五迷三道 提交于 2019-12-03 06:13:56
问题 I have a pretty usual requirement with procmail but I am unable to get the results somehow. I have procmailrc file with this content: :0 * ^To.*@myhost | /usr/bin/python /work/scripts/privilege_emails_forward.py Wherein my custom python script(privilege_emails_forward.py) will be scanning through the email currently received and do some operations on the mail content. But I am unable to get the script getting executed at the first shot(let alone scanning through the mail content). Is this a

Procmail to automatically make new folders to store emails from new senders

混江龙づ霸主 提交于 2019-12-02 08:07:11
I am learning how to use procmail but at this point, I am not even sure it's the right tool for what I am trying to do. So far, I have managed to get fetchmail to retrieve emails from a Google IMAP account and procmail to filter those emails into local folders I had previously created. I am wondering though whether there is a way to get procmail to automatically create a new folder locally when an email from a new sender is being retrieved and to store that email into that folder. So far, I have only found a website that describes the possibility of procmail creating automatically folders for

工具导航Map