Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] import-email: a bug?

From: mario::cassani::icl::com at: 17-Oct-2001 14:09

Hi all, experimenting mail filters and talking to Phil Bevan some problems with email headers faced us: 1) Missing colon
> I had a problem when writting my email client sometimes the > incoming message started > "From " > instead of > "From:" > (ie no colon ...) > which caused import-mail to fail.
2) Huge "To:" or "Cc:" fields
> Havent had any problems with multiple recipients though ....
3) Splitted lines
> looks like import email doesnt like the first line which has been split up
with = signs.
> Received: from x400.icl.co.uk (umg1.x400.icl.co.uk [145.227.248.89]) by > wwmessd045.man23.icl.local with SMTP (Microsoft Exchange Internet Mail > Service Version 5.5.2653.13) > > If the equals signs are removed then import-email will work.
I want to report it via feedback but the proxy still isolates me, so I hope someone at RT (Holger, Jeff, Carl!?) takes a look here. Has anyone out there a patch/rewrote of import-email or some hint to handle strange headers? No parse-ability, here... :( 8<----------------------------------------------------------
>> ? import-email
USAGE: IMPORT-EMAIL data DESCRIPTION: Constructs an email object from an email message. IMPORT-EMAIL is a function value. ARGUMENTS: data -- The email message (Type: string)
>> source import-email
import-email: func [ "Constructs an email object from an email message." data [string!] "The email message" /local content ][ data: parse-header system/standard/email copy/part data content: any [find/tail data "^/^/" tail data] data/date: parse-header-date data/date data/from: parse-email-addrs data/from data/to: parse-email-addrs data/to data/reply-to: parse-email-addrs data/reply-to data/content: content data ]
>>
---------------------------------------------------------->8 In import-email I really miss something to import "real names" from addresses, like: [...] From: "Gino Pilotino" <[gino--pilotino--it]> [...] msgheader/from-real == "Gino Pilotino" actually "only": msgheader/from == [gino--pilotino--it] Xie-xie Ni-men Mario Cassani