Title: Checking the User Agent [Was: Re: IE 5.1 and ENTOURAGE]
On 22/12/01 1:31 am, "Paul Berkowitz" <[EMAIL PROTECTED]> wrote:
>> BTW, we need to specify which version of Entourage the question is about.
>
> I really wish people would! I spend most of my time opening up the message
> Sources to check.
I used to do that, so I wrote a little script! Unfortunately, many mailing lists mangle the original User Agent/message id headers, so this doesn't always work :(
tell application "Microsoft Entourage"
set theMess to item 1 of (get current messages)
set theHeaders to headers of theMess
set headerType to "User-Agent: "
if headerType is not in theHeaders then set headerType to "x-mailer: "
if headerType is not in theHeaders then set headerType to "Message-id: "
set theHeaders to the paragraphs of theHeaders
set theHeader to ""
repeat with aHeader in theHeaders
if aHeader starts with headerType then
set theHeader to contents of aHeader
exit repeat
end if
end repeat
display dialog theHeader buttons {"OK"} default button 1
end tell
Note that since the script was for my own use I haven’t incorporated any error checking – I’m sure you could put that in if you wanted it <g>
--
Barry Wainwright
<http://www.barryw.net/>
Always borrow money from a pessimist; he doesn't expect to be paid back.
- Automating Contact-To-Task function Richard Shane
- Re: Automating Contact-To-Task function Paul Berkowitz
- Opening vcf attachments John E. Gniewkowski
- Re: Opening vcf attachments Paul Berkowitz
- Automating contact-to-task function Richard Shane
- Re: Automating contact-to-task function Paul Berkowitz
- IE 5.1 and ENTOURAGE Domains4Days.com
- Re: IE 5.1 and ENTOURAGE Diane Ross
- Re: IE 5.1 and ENTOURAGE Paul Berkowitz
- Re: IE 5.1 and ENTOURAGE Domains4Days.com
- Re: IE 5.1 and ENTOURAGE Barry Wainwright
- Re: IE 5.1 and ENTOURAGE Harry (lists)
- Re: IE 5.1 and ENTOURAGE Paul Berkowitz
- Standards for the List? (was Re:... Lee Knutson
- Re: Standards for the List? ... jud spencer
- Re: Standards for the List? ... Lee Knutson
- Re: Standards for the List? ... Paul Berkowitz
- Re: Standards for the List? ... Allen Watson
- Re: Standards for the List? ... James Wigdahl
- Re: Standards for the List? ... Allen Watson
- Re: Standards for the List? ... Bill Cameron
