Re: [ILUG] KDE KMail / Konqueror

From: Niall O Broin (niall at domain linux.ie)
Date: Wed 05 Sep 2001 - 20:32:58 IST


On Wed, Sep 05, 2001 at 06:45:30PM +0100, Colm Buckley wrote:

> On Wed 05 Sep 2001 17:49, you wrote:
>
> > What was under the line was an email complete with headers which I had cut
> > and pasted to send to someone else. This was apparently a Mime message (the
> > line
>
> The problem is with the "From " line at the start of most emails.
> KMail is used to parsing mbox-format mailboxes, which delimit mails
> with "\n\nFrom ".
>
> A rather elegant solution (for me) was for procmail to pass mails
> through a script which added a space to all lines beginning with "From "
> (apart from the first line), before sorting it into mbox folders for
> KMail to suck.

Yes and no. The first dashed line is followed by "\n\nFrom" in that email,
and sure enough if I precede From by one space, I get to see the whole email
just as in mutt.

However, all the files in ~/Mail are in mbox format yet both kmail and mutt
seem to have no problem correctly delimiting mails in them, except for this
one file. I had a look at the files (all created by mutt) and they seem to
usually have "\n\n\n\nFrom" (to be sure, to be sure) but I tried hand
editing some of them, replacing "\n\n\n\nFrom" with "\nFrom" and both mutt
and kmail still handled them correctly.

Returning to the original problem file, if I replace the lines with multiple
- by multiple + then mutt exhibits the same behaviour as kmail so in some
way, multiple - are magic to mutt. Ah fsck it, it's Outlook Express and
pictures of a naked Anna Kournikova for me :-)

But seriously, is there any resolution of this problem ? It seems to me that
the only really reliable way of doing this is to use maildir, or some mail
storage method other than mbox.

BEEP - went away, and had a look. Don't have kmail source handy but it
appears that kmail decides that a line is a "From" line if it matches

^From.+[0-9]{2}:[0-9]{2}:[0-9]{2} i.e. From and the time

mutt obviously does something similar (I haven't bothered investigating to
deduce what its regex must be, but I know it at least wants an at domain in the
line) BUT mutt ignores a From line if it's preceded by a line matching \-{76}
(and 75 or 77 won't do).

I'm sure this all makes sense to somebody . . . .

Niall



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:00 GMT