import-email and KMail
[1/3] from: chris::starforge::co::uk at: 14-Jul-2001 14:10
Hi,
I've found a problem with using emails sent by kmail (may or may not
apply to other mailers). KMail seems to construct headers like
>From [chris--starforge--co--uk] Sat Jul 14 03:51:43 2001
Received: from.....
From: [chris--starforge--co--uk]
To: [address--starforge--co--uk]
Subject: testing
If I use import-email the first line appears to break the import. For
example, if the email is in buffer:
email-obj: import-email buffer
email-obj will not have the To:, From:, Content-Type: fields filled in.
OTOH, if I do something like
email-obj: import-email at find buffer newline 2
the email-obj is filled in correctly. Should I moan at the kmail guys
aboutthis, or it this sort of thing allowed and import-email just can't
handle it?
Chris
--
New sig in the works
Explorer2260, Designer and Coder
http://www.starforge.co.uk
--
A language that doesn't affect the way you think about programming is
not worth knowing.
[2/3] from: sterling:rebol at: 16-Jul-2001 10:52
Actually, that's the standard mailbox format for messages stored on
unix-type systems as well. I'll guess that you use KMail and you're
reading the KMail mail files off your disk?
The trick is that the first line gets stripped off when you fetch the
message through POP. You should do the same if you just reading it
from a file.
Sterling
[3/3] from: chris:starforge at: 16-Jul-2001 20:05
On 16-Jul-01, [sterling--rebol--com] wrote:
> Actually, that's the standard mailbox format for messages stored on
> unix-type systems as well. I'll guess that you use KMail and you're
> reading the KMail mail files off your disk?
Nope, that was saved by my email robot. I guess that, since my hoster uses
Redhat, their mail delivery software (Exim) inserted it automagically.
I sent an email to the robot from kmail and then copied the saved mail off
my site to my home machine. I saved some messages from YAM and passed them
over my local network and used them as well as the robot's message to test
the script locally (can't seem to get a forwarder to work locally :/).
When the message I'd sent from kmail to the robot was the only one that
didn't work...
Looks like I jumped to a conclusion :o
Chris
--
New sig in the works
Explorer2260, Designer and Coder
http://www.starforge.co.uk
--
Egotist, n.:
A person of low taste, more interested in himself than me.
-- Ambrose Bierce, "The Devil's Dictionary"