It was my intention to see email address blocks allow something like:
[[EMAIL PROTECTED] "Carl Sassenrath"]
So you could use real names in email. Also:
[[EMAIL PROTECTED] "Bobby" [EMAIL PROTECTED] "Suzy"]
And,
[[EMAIL PROTECTED] "Bobby" [EMAIL PROTECTED] "Suzy" friends [[EMAIL PROTECTED] "Freddy"]]
(which shows the use of a group, "friends: <[EMAIL PROTECTED]>"
Dealing with incoming names is a little tricky because a lot of
emailers put names in comments (parens). Sometimes its before the
address, sometimes after.
If one of you want to take a crack at adding it, I'd be happy to
look it over and put it in. You may not be able to get 100% of the
names, because some people put invalid chars within names...
-Carl
At 11/18/99 07:14 PM +0100, you wrote:
>Hi,
>
>just try:
>
>source send
>source import-email
>source parse-email-addrs
>
>
>Pressed for time so much now, but isn't it there?:
>
>>> source mail-list-rules
>mail-list-rules:
>make object! [
> addr-list: none
> addr: none
> opt-cmt: ["(" thru ")" | none]
> mailbox: [
> opt-cmt thru "<" copy addr to ">" |
> copy addr [to "," | to ";" | to " " | to tab | to end]
> ]
> maillist: [
> mailbox (append addr-list to-email addr) [[thru "," | thru ";"] maillist |
>none]
> ]
> parse-mail-list: func [data [string!]
>][
> addr-list: make block! 1
> parse data maillist
> addr-list
>]
>]
>>>
>
> opt-cmt: ["(" thru ")" | none]
>
>just ignored or what ...
>
>but don't tame my 20 sec reply too serious :-)
>
>Cheers,
>
>-pekr-
>
>
>[EMAIL PROTECTED] wrote:
>
>> Hi Chris,
>>
>> Noone seems to have answerd you, so I'll try ...
>>
>> I haven't had a look at the selma source code, but I think that this
>> behaviour is caused by rebols email data-type:
>>
>> an email is something like: [EMAIL PROTECTED]
>>
>> There's no place to save the additional real-name data in this, like:
>>
>> "Me <[EMAIL PROTECTED]>"
>>
>> when importing an email header this additional info is stripped.
>> You can try the send function:
>>
>> >> send to-email "me <[EMAIL PROTECTED]>" "This is a test"
>> connecting to: fuchur.2b1.de
>> ** User Error: Server error: tcp 501 <me <[EMAIL PROTECTED]>>: "@" or "." expected after
>"me".
>> ** Where: insert port reduce data
>>
>> Maybe someone can convince REBOL Tech, that support of real-name info
>> would be desirable.
>>
>> regards,
>>
>> Ingo
>>
>>
>> Those were the words of [EMAIL PROTECTED]:
>> > I have noticed that in this list (the only one that I'm subscribed to
>> > that uses SELMA to my knowledge) the To: and From: headers seem to
>> > have data stripped from them. For example, whenever I send an email,
>> > the From: header shows "Chris Elliott <[EMAIL PROTECTED]>"
>> > (minus the quotation marks, of course...). Some where between when I
>> > send the mail out, and when I get it back from SELMA, the From: header
>> > is stripped down to just the email address.
>> <...>
>>
>> -- _ . _
>> ingo@)|_ /| _| _ <We ARE all ONE www._|_o _ _ ._ _
>> www./_|_) |o(_|(/_ We ARE all FREE> ingo@| |(_|o(_)| (_|
>> http://www.2b1.de/Rebol/ ._| ._|
>