Summary: | Yahoo "Authentication-Results" header break mail | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Adrien Cordonnier <adrien.cordonnier> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dortmann31415, jtamate |
Priority: | NOR | Keywords: | testcase, triaged |
Version: | 1.10.3 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Example of e-mail with corrupted header
E-mail from Kmail with corrupted header Same e-mail but from Thunderbird (correct header) |
Description
Adrien Cordonnier
2008-11-24 15:35:31 UTC
Created attachment 28795 [details]
Example of e-mail with corrupted header
Somehow confirmed in svn trunk r888112, where after importing the test mail as an mbox, it does not appears at all in the mail lists, but is in the directory. This mail is indeed corupted. The question is at wait point it became corrupted (i.e. if that was KMail's fault on an error of the Yahoo server). Can you get a copy of that mail as it is on the server (maybe via Thunderbird) and attach it here? Created attachment 28901 [details]
E-mail from Kmail with corrupted header
Created attachment 28902 [details]
Same e-mail but from Thunderbird (correct header)
Actually, the e-mail from Thunderbird (perfectly correct) is not displayed correctly when you open it with Kmail! The problematic lines are again: E-mail from Thunderbird: 09: Authentication-Results: mta656.mail.mud.yahoo.com from=insa-toulouse.fr; domainkeys=neutral (no sig) 10: ; from=insa-toulouse.fr; dkim=neutral (no sig) Kmail think the message body starts from line 10. So it does not display correctly the message saved with Thunderbird. When Kmail itself receives the message from the server, it corrupts the header by inserting the following lines between the two previous lines: E-mail from Kmail: 06: X-UID: 07: Status: R 08: X-Status: N 09: X-KMail-EncryptionState: 10: X-KMail-SignatureState: 11: X-KMail-MDN-Sent: 12: *** Bug 176408 has been marked as a duplicate of this bug. *** OK, I'll look at this soon. Here is the process I did to correct my corrupted mails: 1) Select all the corrupted mails (for example gathered in a subfolder) and export them in an mbox file. Pay attention if you forget some, it will be really hard to find which ones have been forgotten. 2) Open the mbox file with a text editor. Cut the lines between "X-UID:" and "X-KMail-MDN-Sent:" and remove any remaining line feeds or spaces at this place 3) Paste the lines after "X-Bogosity: ..." 4) Search for "From" to find where starts the next email and do 2 and 3 as necessary 5) Save the file and import it from Kmail (KmailCVT tool) Hello Adrien, During the past month I have not seen many of these problems. Maybe two total during the month. The previous month was TERRIBLE and I received 2-8 per day. My fixing technique is: - Open ~/.kde/share/apps/kmail/mail/inbox/cur/ in emacs using dired with <Control> d - <Control> x 3 to open windows side by side - Press s to sort by date so the newest incoming files are at the top - Go to the first file - And for each file newer than some chosen time press <Control> o to view the file in the right most window. - If the file is bad press o to edit it; when done return to the dired buffer - Press <Control> n for the next file. - At the end, press g to refresh the directory, - Press ~ to mark the *~ files for deletion - And x to delete them. - Then return to the kmail inbox - Right click Rebuild Index - Leave the inbox (go to drafts) and return. - <Control> a to select all - <Control> j to rerun all of your filters to categorize emails and drop them into their appropriate folders - You will have to reset your flags manually, except for those which were set by your filters. - And re-sort your mail by clicking the Date column Anyway, that's my process. Hope it helps. Thank you for taking the time to file a bug report. KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2. We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback. Tested with Kmail 4.14.1, the e-mail with the correct header and a POP3 server. The e-mail is now correctly displayed with opened locally. The email is also correctly retrieved and displayed when taken from a POP3 server. Bug marked as fixed. |