Title: Re: Re setting from header field
On 6/11/01 5:06 PM, I wrote:
I can put in the sender's display name that way for you, but I'm not sure I see the point
if your Lotus forwarding refuses to give you the original sender's email address as well.
I made a mistake in the script. This fixes it:
tell application "Microsoft Entourage"
set theMsg to item 1 of (get current messages)
if address of sender of theMsg is "[EMAIL PROTECTED]" then
set theContent to content of theMsg
repeat with i from 1 to (count paragraphs of theContent)
if paragraph i of theContent � "" then
set nameLine to paragraph i of theContent
repeat while nameLine starts with ">"
set nameLine to text 2 thru -1 of nameLine
end repeat
try
repeat while character 1 of nameLine = " "
set nameLine to text 2 thru -1 of nameLine
end repeat
set display name of sender of theMsg to nameLine
exit repeat
end try
end if
end repeat
end if
end tell
--
Paul Berkowitz
- Re setting from header field David Leitch
- Re: Re setting from header field Paul Berkowitz
- Re: Re setting from header field Paul Berkowitz
- Re: Re setting from header field David Leitch
- Re: Re setting from header field Paul Berkowitz
- Re: Re setting from header field David Leitch
- Re: Re setting from header field Allen Watson
- Re: Re setting from header field David Leitch
- Re: Re setting from header field Paul Berkowitz
- Re: Re setting from header field David Leitch
- Re: Re setting from header field Allen Watson
