Summary: | Import Mailman message archives | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Tristan Miller <psychonaut> |
Component: | kmailcvt | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | A sample GNU Mailman archive |
Description
Tristan Miller
2005-05-09 21:50:43 UTC
The mbox import filter also work with mailman archive. If KMail display the date as unknown the date format is not rfc-compliant! For me it´s not wanted or the job of kmailcvt to parse, check and change the date format of a imported mail. Can you post a link to a mailarchiv with this problem? Yes, the date format might not by RFC-compliant, but if so that's Mailman's decision. No one is saying you have to bend over backwards to make kmailcvt compatible with their nonstandard formats; this is just a wishlist suggestion! Anyway, I'm attaching an example of a Mailman archive that the existing mbox filter doesn't import correctly. Created attachment 10969 [details]
A sample GNU Mailman archive
The following sed script converts the mailman archives to a format usable by kmailcvt's mbox import filter. It demunges e-mail addresses, adds a "To:" header, and fixes the date format. sed -e 's/^From\(:\? .*\) at /From\1@/;s/^\(From: .*\)/\1\nTo: pracjourn-prod@tug.org/;s/^Date: \(...\) \(...\) \+\([0-9]\+\) \(..:..:..\) \(....\)/Date: \1, \3 \2 \5 \4 GMT/' Two caveats: 1) The mailman Date: field doesn't include a timezone, so I'm not sure if it's supposed to be GMT or the local time of the mail server. 2) The sed script doesn't differentiate between mail headers and mail bodies, so any lines beginning with "From:" or "Date:" in the body are also processed. Tested with the attached archive and KMail 1.9.3/Kontact 1.2.3/KDE 3.5.4 and all work correct now. |