大网数据广告活动
服务器运维问答

Dovecot Override/Reset Delivery Date

· 52CE 我爱测

After migrating hosting providers last year, I have ended up with many emails that show up with a "Date" of the migration, rather than the message delivery date, see screenshot: This date shows up both on my local clients (Mail.a…

问题原文

原帖链接 · Craig Watson · CC BY-SA 3.0

After migrating hosting providers last year, I have ended up with many emails that show up with a "Date" of the migration, rather than the message delivery date, see screenshot:

This date shows up both on my local clients (Mail.app in OS X 10.11.6 and iOS 10 beta) and also webmail (Roundcube).

The back-end mailserver is Dovecot, and all messages in the Maildir directory have the correct Delivery-date headers.

Is there any way to correct this, or have Dovecot re-read or re-compile its message databases?

已采纳解答

原帖链接 · Craig Watson · CC BY-SA 3.0

This actually turned out to be client-related, rather than Dovecot-related. Long story short, the Mail apps in both OSX and iOS actually use the filesystem mtime of the message file, rather than the message's Date or Delivery-date headers.

The (admittedly hacky) workaround was to write a quick script to read the appropriate header and touch all files to correct the mtime of the file, then clear all Dovecot cache files to the file is re-indexed.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-08-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。