Indy9获取原始电子邮件标头? [英] Indy9 Get Raw Email header?

查看:82
本文介绍了Indy9获取原始电子邮件标头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Indy9是否有任何方法可以获取特定的原始电子邮件标头(例如,主题或发件人),该标头仍包含传输编码(即:对于旧版本的Unicode编码较差的Delphi,DecodeHeader并未对其进行处理)支持),还是我必须手动解析整个电子邮件标题以提取此信息?

Does Indy9 have any way to get a specific raw email header (say, "Subject" or "From") which still includes the transfer-encoding (ie: has not been mangled by DecodeHeader on older versions of Delphi with poor Unicode support), or would I have to parse the entire email header manually to extract this information?

推荐答案

我已经解决了该问题,在调用 IdMessage1.ProcessHeaders 之前,调用 IdMessage1.Headers.Values ['Subject'] 会得到与之后不同的结果。

I have solved the problem, calling IdMessage1.Headers.Values['Subject'] BEFORE calling IdMessage1.ProcessHeaders gives different results than after.

这篇关于Indy9获取原始电子邮件标头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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