on 12/6/01 1:39 PM, Allen Watson at [EMAIL PROTECTED] wrote:
> Guys, I always enjoy reading how problems are solved with scripting. Here, I
> think Paul overlooked a couple of lines in David's early post. He said:
>
>> The first non blank line in the body of the email Entourage receives is the
>> original from header value.
>> For example the above email is actually from Chris MEARS.
>>
>> If the mail had originated external to my organization the first line would
>> have been of the form:
>>
>> <name> email address
>
> As I understand it, then, the example was from <internal> mail (where the
> name is enough). If the mail comes from an external source, the first line
> DOES include the E-mail address. In that case, Paul, a simple revision to
> your script would do the job, would it not?
>
> Instead of this:
>
>
> set display name of sender of theMsg to nameLine
>
> you would have this:
>
> set rightBrackLoc to offset of ">" in nameLine
> set dn to text ((offset of "<" in nameLine) + 1) thru (rightBrackLoc -1) of
> nameLine
> set addr to text (rightBrackLoc + 1) thru -1 of nameLine
> set display name of sender of theMsg to dn
> set address of sender of theMsg to addr
>
> Yes? No?
>
> On or near 6/11/01 6:56 PM, David Leitch at [EMAIL PROTECTED]
> observed:
>
>> on 12/6/01 11:44 AM, Paul Berkowitz at [EMAIL PROTECTED] wrote:
>>
>>> No. What I'm wondering is if you can change a setting on Lotus so it will
>>> put
>>> the sender's email address into the content of the forward , as well as his
>>> name and a date. I once did a similar script for someone, who I'm sure was
>>> also on Lotus at work, where it gave him the full set of headers at the top
>>> of
>>> the message content. See if you have a preference setting - probably for
>>> reply and forward both to � do this
>>
>> Hmmm. I�ve looked at the Lotus Notes preferences, location preferences and
>> database properties and can�t see a way to do this as a user. There may be
>> some administration options that I don�t have access to. I shall keep
>> looking.
>>
>> Once again thanks for the help.
>>
>> -- David Leitch JPMorgan [EMAIL PROTECTED] +612 9220 1609
>>
>>
>>
Thanks Allen, your addition does appear to work, some of the time, other
times it skips down to line to and sets the sender as a date.
I think I need a small variation, which if I was better at Applescript
syntax I would do myself that tests for the existence of a right bracket
symbol in the first non blank line.
If it doesn't find it then we set the sender as per Paul's original.
If the right angle bracket is found then we use your block of code to set
the address of sender.
Thanks again, I feel I'm getting pretty close now.
-- David Leitch JPMorgan [EMAIL PROTECTED] +612 9220 1609
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
To search the archives:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>