转发中哪些标题总是返回? [英] Which headers are ALWAYS returned in a reply/forward?

查看:98
本文介绍了转发中哪些标题总是返回?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在建立一个集成客户服务的网络商店。每隔几分钟,系统就会将电子邮件检索到数据库中,解析标题并将消息与客户和订单相关联。



客户线程通过消息 From:标题。但订单怎么样?似乎大多数人使用回复方式:标头进行线程订单...

  From:< orders@company.com> 
至:< person@place.com&
主题:公司订单#314159
回复:< order-314159@company.com>

但是一个凌乱的回复:并且丑化事物,并可能标记垃圾邮件传感器或某事。我绝对不想指望主题:字段,人们一直在修改主题,即使在回复时也是如此。还有其他标题似乎适合该工作,例如...

  From:< orders@company.com> 
至:< person@place.com&
主题:公司订单#314159
Message-ID:< 314159-2>

...或...

  In-Reply-To:< 314159-1> 

但是这些人在回覆时是否发回?

是否有可靠地复制到回复和转发中的任何标题( Reply-To:解决方案

你不能完全依赖标题被保留。当回复或转发时,邮件客户端创建一条新消息;该邮件客户端可以合理地忽略或更改任何内容,视为适当。



您可能可以通过以下方式进行跟踪,但都易受到更改的影响(主要是由用户,也由原始邮件客户端)。你应该真的只是用它来做出最好的猜测。


  1. A 一次性回复地址。理论上,您也可以使用From(如果需要)进行操作,但是Reply-To更好地确保用户(及其邮件服务器/客户端)能够识别出来,并且适当地采取行动。我没有理由为什么垃圾邮件过滤器会关心一次性地址。看到大多数垃圾邮件都使用假地址,不关心回复,这不是一个垃圾邮件发送者的技巧。垃圾邮件过滤不大可能增加。使用与您的From地址相同的域的回复也不太可能看起来可疑。

  2. 一个独特的主题。是的,它可以很容易地改变,但是通常现有的主题被附加到而不是被删除(特别是如果它显然包含某种参考号)。您可以应用正则表达式匹配 - 也许只能使用它作为您的其他检测方法的确认。

  3. 身体中唯一的字符串(可能之前是请勿删除此线 )

  4. In-Reply-To 参考好的,当支持。有一个很小的机会,用户将他们的回复复制到一个新的空白消息,并垃圾邮件头。


I'm making a webstore with integrated customer service. Every few minutes, the system will retrieve emails into the database, parsing headers and relating the message to customers and orders.

Customer threading is fairly reliable via the messages From: header. But what about orders? It seems most people use the Reply-To: header for threading orders ...

From: <orders@company.com>
To: <person@place.com>
Subject: Company Order #314159
Reply-To: <order-314159@company.com>

But a messy Reply-to: obscures and uglifies things, and probably flags spam sensors or something. I definitely don't want to count on the Subject: field, people modify the subject all the time, even when replying. There are other headers that seem suited to the job, like ...

From: <orders@company.com>
To: <person@place.com>
Subject: Company Order #314159
Message-ID: <314159-2>

... or ...

In-Reply-To: <314159-1>

But are these sent back when the person reply? Are there any headers (other than Reply-To:) that are reliably copied into replies and forwards?

解决方案

You can't rely entirely on headers being preserved. When replying or forwarding, a mail client creates a new message; that mail client can quite legitimately ignore or alter any content, as deemed appropriate.

You might be able to track by the following means, but all are vulnerable to alteration (mainly by the user, but also by a primitive mail client). You should really just use them to make a best-guess.

  1. A disposable Reply-To address. Theoretically, you can also do it with "From" if you want, but Reply-To is better to ensure the user (and their mail server/client) recognise it's from you and act appropriately. I see no reason why a spam filter would care about disposable addresses. Seeing as most spam uses fake addresses anyway and doesn't care about replies, it is not really a spammer trick. It's unlikely to cause a substantial increase in spam filtering. Using a Reply-To for the same domain as your From address is also unlikely to look suspicious.
  2. A unique subject. Yes, it can easily be changed, but usually the existing subject is appended to, rather than deleted (especially if it obviously contains some kind of reference number). You could apply a regular expression match - maybe only using it as a confirmation of your other detection methods.
  3. A unique string in the body (possibly preceded by the words "DO NOT REMOVE THIS LINE")
  4. The In-Reply-To and Reference headers are probably fine, when supported. There is a small chance that a user will copy their reply into a new blank message and trash the headers anyway.

这篇关于转发中哪些标题总是返回?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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