procmail

How to make procmail forward and BCC too

ⅰ亾dé卋堺 提交于 2020-01-06 06:03:20
问题 I'm trying to forward e-mails matching a certain pattern to a set of addresses, and BCC the same e-mail to some other e-mail addresses. From looking at my procmail log, it appears that all my rules are matching, yet the BCC recipient does not receive the message. The relevant lines of my .procmailrc look like this: :0fhw * ^From.*@example.com * ! ^X-Loop: test | formail -A "Bcc: $BCCS" :0fhw * ^From.*@example.com * ! ^X-Loop: test | formail -A "X-Loop: test" :0 * ^From.*@example.com * ! $DEST

procmail giving “no match” on content-type

大憨熊 提交于 2019-12-25 04:37:25
问题 I am trying to have procmail decode a base64 encoded attachment. To begin with I am following a simple recipe, found here: http://www.linuxquestions.org/questions/linux-software-2/procmailrc-decode-data-from-base64-encoded-emails-trying-to-decode-with-uudeview-933670/ However, it appears procmail cannot find the match: procmail: [7459] Mon Aug 10 10:54:43 2015 procmail: Assigning "LOGFILE=/home/myself/procmail.log" procmail: Opening "/home/myself/procmail.log" procmail: Assigning "LOGABSTRACT

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

扶醉桌前 提交于 2019-12-20 07:37:27
问题 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

E-Mail's body format after procmail processing

ε祈祈猫儿з 提交于 2019-12-14 03:14:57
问题 I have the following scenerio: SMTP server on the GNU/Linux machine is accepting mails. Accepted mail is being sent to procmail for further processing. Here's my .procmailrc : VERBOSE=yes LOGFILE=$HOME/procmail.log SUBJECT=`formail -xSubject: | tr -d '\n' | sed -e 's/^ //' | /usr/bin/perl -MEncode -ne 'print encode ("utf8",decode ("MIME-Header",$_ )) '` FROM=`formail -rt -xTo:` DATE=`formail -xDate:` BODY=`formail -I ""` :0fbW * ^From.*some_special_name@special_server.com | echo "FROM:$FROM"

Email html to csv file

☆樱花仙子☆ 提交于 2019-12-13 08:05:03
问题 I have one email with html format and need to download it and need to make one csv semicolon field separator result to a new file. Example of the email recieved: Content-Type: text/html; charset=UTF-8 <b>Thu Jul 11 2019</b><hr><table style=3D"border= : 1px solid #dddddd;border-collapse: collapse;text-align: left;"><tr><th st= yle=3D"padding: 8px;background-color: #cce6ff">Name</th><th styl= e=3D"padding: 8px;background-color: #cce6ff">CI</th><th style=3D"padding: 8= px;background-color:

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