问题描述
当Gmail为消息生成自动回复消息时,自动回复消息不是正常回复的Threaded,并且自动回复消息不包含In-Reply-To:和References:头部头部有效负载。自动回复的ThreadID与原始消息不同(与ThreadID保持不变的正常回复不同)
我们应该使用哪种逻辑将自动回复与其原始消息共同关联?换句话说,我们如何确定哪些邮件是自动回复的?
使用Gmail API
自动回复主题的一部分与收到的电子邮件主题相匹配。此外,时间戳将会接近但晚于收到的电子邮件的时间戳。这不是完美的,但应该是功能。
When an Auto-Reply Message is generated by Gmail for a message, the auto-reply message is not Threaded like a normal reply and the auto-reply message does not contain In-Reply-To: and References: header in its Headers Payload. The ThreadID of the auto-reply is different than its original message (unlike a normal reply where ThreadID remains same)Which logic should we use to co-relate an auto-reply to its original message? In Other words, how do we figure out to which message is an auto-reply for?
Using Gmail API
There will be a portion of the subject of the auto-reply that matches the subject of the received email. Also, the timestamp will be close but later than the timestamp of the received email. It's not perfect, but should be functional.
这篇关于自动回复邮件,从Gmail没有'In-Reply-To'和'References'标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!