如何根据内容处理和转发电子邮件?
我最近发现我可以使用运营商的 SMS 网关电子邮件地址将 Gmail 上收到的电子邮件转发到手机上。因此,我在 gmail 中启用了转发,将其发送到 [email protected] 并它开始工作得很好。电子邮件从发送到我的收件箱到在我的手机上以消息形式收到的时间几乎没有 20 秒的差别。然后,我开始注意到 html 内容或长度超过 480 个字符的电子邮件无法通过网关发送。
所以,这是我的问题。我可以说,有没有办法剪掉电子邮件中对我来说重要的 100 个字符并将其转发到 SMS 网关?我可以以某种方式设置这个规则吗?不要告诉我我必须使用 Outlook 作为电子邮件客户端、配置规则并使我的计算机永远保持开启状态。
I recently found out that I could forward my email that I get on gmail to my mobile phone by using the SMS gateway email address of my carrier. So, I enabled forwarding in gmail to send it to [email protected] and it started working pretty well. There is hardly 20 secs of difference from the time an email was sent to my inbox, and was received as a message on my cellphone. And then, I started noticing that emails with html content or length greater than 480 characters were not getting delivered via gateway.
So, here's my question. Is there way, I could say, cut out those 100 characters that matter to me in my email and forward it to the SMS gateway? Can I setup this rule somehow? Don't tell me that I would have to use outlook as an email client, configure a rule and keep my machine switched on forever.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将 gmail 转发到我的 UNIX 系统并使用 procmail 来完成您想要做的事情。在你的 .procmailrc:
:0 c
* < 768000
! [email protected]
您可能还需要一个 .forward 来推送邮件到 procmail:
"|IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #jschmoe"
...或类似的东西。
如果您无法访问 UNIX(包括 Linux),我没有建议。
布莱恩
I forward gmail to my UNIX system and use procmail to do exactly what you are trying to do. In your .procmailrc:
:0 c
* < 768000
! [email protected]
You may need a .forward, too, to push the mail to procmail:
"|IFS=' ' && exec /usr/local/bin/procmail -f- || exit 75 #jschmoe"
... or some such.
If you don't have access to a UNIX (inc. Linux), I have no advice.
Brian