You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, April 22nd 2005, 8:59am

[Kmail] Problem with importing Eurora html mails

Using KDE 3.4.0 on Gentoo Linux, when I try to import emails from an Eudora mbox file, which contains all emails in html format, using KMailCVT, it generally is working, but none of the imported messages are recognized as html emails.

If I access any of these messages, I get a vertical grey bar on the left side in the message window, telling "No html message", and the shown message body is displayed as html-source-code, like

Source code

1
2
3
4
5
6
7
8
9
<html>
<body>
Dear Sirs,<br><br>
blablabla...<br>
<x-sigsep><p></x-sigsep>
--<br><br>
Sincerely,<br>
Somebody</body>
</html>

I don't quite understand, what the problem could be, and how to solve it. For me, the shown message body looks like a normal valid html source.

Anyone any hint for me?

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Friday, April 22nd 2005, 11:36am

Hmm, either the content type of the mail got lost during import or Eudora forgot to write it into the mbox file.

Provided you have still access to Eudora, could you create an mbox file with only of of those messages (and with non-private content ;)) so we could test it?

Cheers,
_
Qt/KDE Developer
Debian User

3

Friday, April 22nd 2005, 12:14pm

Ok, enclosed you'll find a small test.mbx, which contains such messages causing the described problem.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

4

Saturday, April 23rd 2005, 3:54pm

Looks like the message headers don't contain the Content type field, thus KMail thinks it they are plain text mails (default content type)

It would be interesting if the sender's mail program already forgot that or if Eudora somehow stripped those fields.

When I create a mbox file in KMail and copy one HTML to it, it contains (among others) this three content related headers:

Source code

1
2
3
4
MIME-Version: 1.0
Content-Type: text/html;
  charset="iso-8859-1"
Content-Transfer-Encoding: 8bit


Cheers,
_
Qt/KDE Developer
Debian User

5

Saturday, April 23rd 2005, 4:20pm

I think Eudora is stripping those fields by default, because none of the stored mbox files contain those data (the same situation even in the out.mbx).

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

6

Saturday, April 23rd 2005, 4:32pm

Ah, too bad :(

You could try adding the content type header using a script.
For example if you are sure that X-Attachment is always present and empty you could try something like this

Source code

1
cat test.mbx | sed "s#X-Attachments:#X-Attachments:\nContent-Type: text/html#g"  > testnew.mbx


Cheers,
_
Qt/KDE Developer
Debian User

7

Saturday, April 23rd 2005, 5:55pm

I think, I can forget this import of my Eudora mails. The mentioned problem with html not recognized as html is on all emails in out.mbx, but I just checked on another mbx file of stored incoming emails, they partly are shown correctly, but most just appear as empty emails, which is weird, because on such messages kmail tells for example "multipart/mixed - 7bit - 5,4 kb" and "Textpart - Simple Text - 9 B" and shows nothing but the header...

Maybe my last chance would be, to upload all mails to an IMAP server, and then copy them over into kmail. Will this work for sure?

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

8

Sunday, April 24th 2005, 1:44pm

Hmm, if Eudora stripped those headers it is not very likely it will add them when copying to the IMAP server.

However one of the developers subscribed to the kdepim-users mailinglist might have further ideas.

Cheers,
_
Qt/KDE Developer
Debian User

9

Sunday, August 21st 2005, 6:05pm

Quite some time has passed, and I didn't find the time to look into it any more until recently.

I now can definitely tell, that it is a problem with the import function of kmail. It simply does not work by selecting mbox-import from the list of available import options, as it does not seem, that Eudora is using a compatible mbox format.

The solution & workarround, that I found is to first import my Eudora mailboxes in Mozilla Thunderbird (which offers an own import function for Eudora), which works out just fine. Then I can import the Thunderbird mailfolders with kmail, and all messages are converted properly, so even those strangly cut/compressed html messages are then in the correct format then.

The only problem remaining now is, that such html-emails, which pull in embedded graphics from a website (like all those ebay messages, which fetch buttun graphics from the ebay website), are not displaying the graphics.

Is it possible, that I have overseen a setting, that allows pulling in graphics from websites into the mail-viewer?

Or is that behaviour intended?

Or is it a bug?

Or could this be a problem caused by the Thunderbird import function?

This post has been edited 7 times, last edit by "Master One" (Aug 21st 2005, 6:09pm)


10

Sunday, August 21st 2005, 6:12pm

Hm, strange problem with the forum? Just posted my reply, but it's still showing up with last reply by anda_skoa in April?

And this is the error, which I got when pressing the "save post" button:

Source code

1
2
3
4
5
6
7
8
9
10
SQL-DATABASE ERROR

Database error in WoltLab Burning Board (2.3.3): Invalid SQL: REPLACE INTO bb1_wordmatch (wordid,postid,intopic) VALUES (1312,54090,0),(50,54090,0),(30,54090,0),(716,54090,0),(467,54090,0),(19,54090,0),(1413,54090,0),(538,54090,0),(121,54090,0),(943,54090,0),(2148,54090,0),(1326,54090,0),(740,54090,0),(741,54090,0)
mysql error: Table 'db1018907-kdeforumorg.bb1_wordmatch' doesn't exist
mysql error number: 1146
mysql version: 4.1.8a-Debian_5.dotdeb.0-log
php version: 5.0.3
Date: 21.08.2005 @ 19:12
Script: /addreply.php
Referer: [URL]http://www.kde-forum.org/addreply.php[/URL] 

This post has been edited 2 times, last edit by "Master One" (Aug 21st 2005, 6:14pm)