剥离电子邮件的签名和回复 [英] Strip signatures and replies from emails

查看:145
本文介绍了剥离电子邮件的签名和回复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用系统,允许用户回复发送的通知电子邮件( sigh )。

I'm currently working on a system that allows users to reply to notification emails that are sent out (sigh).

我需要删除回复和签名,以便我留下回复的实际内容,没有任何噪音。

I need to strip out the replies and signatures, so that I'm left with the actual content of the reply, without all the noise.

有没有人有任何关于

推荐答案

如果您的系统在内部和/或您的回复格式有限,有可能做一个很好的工作。以下是我们为trac门票电子邮件回复设置的过滤器:

If your system is in-house and/or you have a limited number of reply formats, it's possible to do a pretty good job. Here are the filters we have set up for email responses to trac tickets:

删除所有文本,包括:


  1. 等于' - \\\
    '
    (标准电子邮件sig分隔符)的行

  2. 行($ s code code)(人们经常忘记sig分隔符的空间;这不是sig以外)

  3. 开始的行-----原始消息-----'(MS Outlook默认值)

  4. 行以$ code>'________________________________ '(32下划线,再次显示Outlook)

  5. 开头的行开始' 并以结尾,写道:\\\
    '
    (OS X Mail.app默认)

  6. 行以$ 'From:'(failafe four Outlook和其他一些回复格式)开始

  7. 从我的iPhone发送

  8. 开头的行从我的BlackBerry发送' code>

  1. Lines that equal '-- \n' (standard email sig delimiter)
  2. Lines that equal '--\n' (people often forget the space in sig delimiter; and this is not that common outside sigs)
  3. Lines that begin with '-----Original Message-----' (MS Outlook default)
  4. Lines that begin with '________________________________' (32 underscores, Outlook again)
  5. Lines that begin with 'On ' and end with ' wrote:\n' (OS X Mail.app default)
  6. Lines that begin with 'From: ' (failsafe four Outlook and some other reply formats)
  7. Lines that begin with 'Sent from my iPhone'
  8. Lines that begin with 'Sent from my BlackBerry'

3号和4号是以...开头而不是等于,因为有时用户会将线条加在一起意外。

Numbers 3 and 4 are 'begin with' instead of 'equals' because sometimes users will squash lines together on accident.

我们试图对剥离回复更加自由,因为对于错误的文本而言,更为烦恼(对我们)有回复垃圾。

We try to be more liberal about stripping out replies, since it's much more of an annoyance (to us) have reply garbage than it is to correct missing text.

任何人都有其他要分享的格式?

Anybody have other formats from the wild that they want to share?

这篇关于剥离电子邮件的签名和回复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆