预览过的附件没事是因为预览过的附件下载地址在mail.qq.com,未预览过的在sz.mail.store.qq.com.
原因是服务器的Content-Disposition头配置的低级失误.
这个每次改文件名或者先预览的蛋疼毛病非常痛苦,已经向qqmail提交,不知道qqmail啥时候才修正呢.
官方修复前就用proxomitron修正这个问题了.
正常的应该是
Code: Select all
Content-Disposition: attachment; filename*=UTF-8''filename
Code: Select all
Content-Disposition: attachment; filename*="UTF-8''filename"
Code: Select all
[HTTP headers]
In = TRUE
Out = FALSE
Key = "Content-Disposition: QQ Mail Attachment [13.03.25] [cre]"
URL = "sz.mail.store.qq.com"
Match = "attachment; filename\*=\"\1\""
Replace = "attachment; filename*=\1"