Version: (using KDE KDE 3.4.0) Installed from: SuSE RPMs Please add a filter for the Tools->Import Messages command which can process message archives from Mailman, the GNU Mailing List Manager <http://www.gnu.org/software/mailman/>. Mailman allows list subscribers to download archives of messages in a format very similar to Unix mbox. Differences include trivial spam-munging of e-mail addresses ("foo at example.com" format). I think the date format might also be slightly different, because KMail's existing mbox import filter lists "Unknown" for the date of all imported messages.
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.