Disabling components?

H

heiferman

Is it possible to turn off a component of Entourage. For example, to
just disable the notes component? It can still be be visible, but I'd
like it not to sync with the Exchange server. Thanks!
 
P

Paul Berkowitz

Is it possible to turn off a component of Entourage. For example, to
just disable the notes component? It can still be be visible, but I'd
like it not to sync with the Exchange server. Thanks!

No. But Entourage Notes do not sync with Exchange Server. Nor do Tasks. Nor
Groups. Only Contacts and Calendar Events. (And in Entourage 11.2 and
higher, which you ought to be using since Exchange accounts work so much
better there, only the contacts and calendar events which reside in the
specific Exchange address books and calendars sync.)

--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.
 
B

Bill Bryson

Paul,

Any chance that an Entourage script could be written to allow the user to
view these mal-formed HTML messages sent out by OWA Premium?

The HTML source of the message can be viewed but the main message window is
displayed as blank. Could a script parse the HTML code in the message and
present a window with just the text between the <body></body> tags?

Unless Entourage's browser engine is updated by Microsoft to handle these
mal-formed HTML messages, they will remain blank to the user within
Entourage regardless of patch to Exchange which will prevent further
mal-formed messages but does not address the existing ones in Entourage
user's InBox.

Oh for the days when email was just text.

Thanks,

Bill
 
P

Paul Berkowitz

First try the really simple way, which should get you just the plain text
part alternative part of the source.

Select the message and run this in Script Editor:

tell app "Microsoft Entourage"
set theMsg to item 1 of (get current messages)
return (content of theMsg)
end tell


Check the Result pane in Script Editor. If this works, than the simplest
thing would be just to replace the blank message with plain text. You could
save this script and run it from the script menu on any such message:

tell app "Microsoft Entourage"
set theMsg to item 1 of (get current messages)
set content of theMsg to (content of theMsg)
end tell


(If you really need the HTML then, yes, a script could get the source, parse
it, add the </HTML> tag if you can specify _exactly_ after which other tag
it should go, and make a new replacement message with the corrected source.
If you can give me that info then, yes, it can be done.)

--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.
 
B

Bill Bryson

Paul,

The message is retuned blank when executing the first script lines you sent.
It seems that a script would have to be able to perform the following
actions:

1) Capture the text of the "View Source" window of the selected message
2) Parse the HTML code to retrieve the actual text of the message
3) Replace all <BR> with carriage return
4) Form a new message window with just that text and display it.

Here is an example of the mal-formed HTML source:

Message contents:

[Standard Internet headers appear first]

<HTML dir=3Dltr><HEAD><TITLE>test again</TITLE>=0A=
<META http-equiv=3DContent-Type content=3D"text/html;
charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.2900.2873" name=3DGENERATOR><BASE =
href=3DHEAD>=0A=
<BODY>=0A=
<DIV id=3DidOWAReplyText89771 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>reply =
back</FONT></DIV></DIV>=0A=
<DIV dir=3Dltr><BR>=0A=
<HR tabIndex=3D-1>=0A=
<FONT face=3DTahoma size=3D2><B>From:</B> Bryson, Bill<BR><B>Sent:</B> =
Tue 5/23/2006 8:48 AM<BR><B>To:</B> Bryson, William D<BR><B>Subject:</B> =
test again<BR></FONT><BR></DIV>=0A=
<DIV>=0A=
<P><FONT size=3D2>test of OWA Prem.<BR>--<BR>Bill Bryson<BR>Computing =
Support Services<BR>Texas State University-San =
Marcos<BR><BR><BR><BR></FONT></P></DIV></BODY></HTML>

What the user would rather see is:

From: Bryson, Bill
Sent: Tue 5/23/2006 8:48 AM
To: Bryson, William D
Subject: test again

test of OWA Prem.
-
Bill Bryson
Computing Support Services
Texas State University-San Marcos
 
P

Paul Berkowitz

No. Not by removing BR tags. Nobody, in their right mind or otherwise, is
going to parse the whole thing to _extract_ plain text from HTML code using
plain AppleScript. I suppose that with a suitable scriptable text editor
(something like BBEdit) that has a 'strip HTML' type of command that could
work on faulty HTML, that might be possible, but I'm not expert in any of
that. Someone else might be.

What's sick about this example is that the source is apparently not
multipart/alternative with a plain text part, but exclusively HTML (and
faulty at that), pure and simple. No email client of any description should
be creating muck like that nowadays.

As far as I can see - and once again I'm not an expert in HTML and don't
actually know current HTML protocols with all the META stuff - is that there
is no closing </HEAD> tag anywhere. Is that what you reported earlier? I
wasn't following at that point. Did you find some workaround via another
email client that displays the HTML correctly by repairing this flaw? I
don't see ant </META> tags either, so perhaps those are needed too.

If you'd send me the message, in its entirety, as an .eml attachment (remove
the "spoof" from my email address), I'll see if it can be repaired by adding
in a </HEAD> tag in a duplicated message. There's no way that I could
attempt this without the full source including headers. If you also have a
worked-around version of the message that does display correctly, that would
help.

--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.

From: Bill Bryson <[email protected]>
Newsgroups: microsoft.public.mac.office.entourage
Date: Tue, 30 May 2006 09:43:29 -0500
Conversation: Script to view mal-formed HTML messages related to Exchange bug
Subject: Re: Script to view mal-formed HTML messages related to Exchange bug

Paul,

The message is retuned blank when executing the first script lines you sent.
It seems that a script would have to be able to perform the following
actions:

1) Capture the text of the "View Source" window of the selected message
2) Parse the HTML code to retrieve the actual text of the message
3) Replace all <BR> with carriage return
4) Form a new message window with just that text and display it.

Here is an example of the mal-formed HTML source:

Message contents:

[Standard Internet headers appear first]

<HTML dir=3Dltr><HEAD><TITLE>test again</TITLE>=0A=
<META http-equiv=3DContent-Type content=3D"text/html;
charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.2900.2873" name=3DGENERATOR><BASE =
href=3DHEAD>=0A=
<BODY>=0A=
<DIV id=3DidOWAReplyText89771 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>reply =
back</FONT></DIV></DIV>=0A=
<DIV dir=3Dltr><BR>=0A=
<HR tabIndex=3D-1>=0A=
<FONT face=3DTahoma size=3D2><B>From:</B> Bryson, Bill<BR><B>Sent:</B> =
Tue 5/23/2006 8:48 AM<BR><B>To:</B> Bryson, William D<BR><B>Subject:</B> =
test again<BR></FONT><BR></DIV>=0A=
<DIV>=0A=
<P><FONT size=3D2>test of OWA Prem.<BR>--<BR>Bill Bryson<BR>Computing =
Support Services<BR>Texas State University-San =
Marcos<BR><BR><BR><BR></FONT></P></DIV></BODY></HTML>

What the user would rather see is:

From: Bryson, Bill
Sent: Tue 5/23/2006 8:48 AM
To: Bryson, William D
Subject: test again

test of OWA Prem.
-
Bill Bryson
Computing Support Services
Texas State University-San Marcos


First try the really simple way, which should get you just the plain text
part alternative part of the source.

Select the message and run this in Script Editor:

tell app "Microsoft Entourage"
set theMsg to item 1 of (get current messages)
return (content of theMsg)
end tell


Check the Result pane in Script Editor. If this works, than the simplest
thing would be just to replace the blank message with plain text. You could
save this script and run it from the script menu on any such message:

tell app "Microsoft Entourage"
set theMsg to item 1 of (get current messages)
set content of theMsg to (content of theMsg)
end tell


(If you really need the HTML then, yes, a script could get the source, parse
it, add the </HTML> tag if you can specify _exactly_ after which other tag
it should go, and make a new replacement message with the corrected source.
If you can give me that info then, yes, it can be done.)
 
P

Paul Berkowitz

For anyone who had the same problems: there is now a new Exchange hotfix
that fixes the problem for new messages.

For "blank" HTML messages previously received, select the folder(s) they are
in and run this script, which I made for Bill who says it works. It will fix
all those blank messages without you're having to find them separately.
Actually, I've just modified it slightly: since you haven't had a chance to
read them yet, they will now all show up as Unread, so you can find and read
them now.

You can save the script to the Entourage Script Menu Items folder and run it
from the script menu (if you have several folders with these messages), or
just run it from Script Editor.


tell application "Microsoft Entourage"
activate
try
set theFolder to displayed feature of main window
if class of theFolder is not folder then error number -128
on error
beep
display dialog "First select a folder in the main window." buttons
{"Cancel"} default button 1 with icon 0
end try

set faultyMsgs to every message in theFolder whose has html is true and
source contains "href=3DHEAD>"

repeat with i from (count faultyMsgs) to 1 by -1 -- go backwards to
avoid skips
set theMsg to item i of faultyMsgs
set theSource to source of theMsg
try
set theAccount to account of theMsg
on error
set theAccount to default mail account
end try
set AppleScript's text item delimiters to {"href=3DHEAD>"}
set {chunk1, chunk2} to {text item 1, text item 2} of theSource
set AppleScript's text item delimiters to {""}
set newSource to chunk1 & "href=nofilespec></HEAD>" & chunk2
set fixedMsg to make new incoming message at inbox folder with
properties {account:theAccount, source:newSource}
move fixedMsg to theFolder
delete theMsg
end repeat
beep
display dialog "All done!" buttons {"OK"} default button 1 with icon 1
end tell


--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.

From: Bill Bryson <[email protected]>
Newsgroups: microsoft.public.mac.office.entourage
Date: Tue, 30 May 2006 09:43:29 -0500
Conversation: Script to view mal-formed HTML messages related to Exchange bug
Subject: Re: Script to view mal-formed HTML messages related to Exchange bug

Paul,

The message is retuned blank when executing the first script lines you sent.
It seems that a script would have to be able to perform the following
actions:

1) Capture the text of the "View Source" window of the selected message
2) Parse the HTML code to retrieve the actual text of the message
3) Replace all <BR> with carriage return
4) Form a new message window with just that text and display it.

Here is an example of the mal-formed HTML source:

Message contents:

[Standard Internet headers appear first]

<HTML dir=3Dltr><HEAD><TITLE>test again</TITLE>=0A=
<META http-equiv=3DContent-Type content=3D"text/html;
charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.2900.2873" name=3DGENERATOR><BASE =
href=3DHEAD>=0A=
<BODY>=0A=
<DIV id=3DidOWAReplyText89771 dir=3Dltr>=0A=
<DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>reply =
back</FONT></DIV></DIV>=0A=
<DIV dir=3Dltr><BR>=0A=
<HR tabIndex=3D-1>=0A=
<FONT face=3DTahoma size=3D2><B>From:</B> Bryson, Bill<BR><B>Sent:</B> =
Tue 5/23/2006 8:48 AM<BR><B>To:</B> Bryson, William D<BR><B>Subject:</B> =
test again<BR></FONT><BR></DIV>=0A=
<DIV>=0A=
<P><FONT size=3D2>test of OWA Prem.<BR>--<BR>Bill Bryson<BR>Computing =
Support Services<BR>Texas State University-San =
Marcos<BR><BR><BR><BR></FONT></P></DIV></BODY></HTML>

What the user would rather see is:

From: Bryson, Bill
Sent: Tue 5/23/2006 8:48 AM
To: Bryson, William D
Subject: test again

test of OWA Prem.
-
Bill Bryson
Computing Support Services
Texas State University-San Marcos


First try the really simple way, which should get you just the plain text
part alternative part of the source.

Select the message and run this in Script Editor:

tell app "Microsoft Entourage"
set theMsg to item 1 of (get current messages)
return (content of theMsg)
end tell


Check the Result pane in Script Editor. If this works, than the simplest
thing would be just to replace the blank message with plain text. You could
save this script and run it from the script menu on any such message:

tell app "Microsoft Entourage"
set theMsg to item 1 of (get current messages)
set content of theMsg to (content of theMsg)
end tell


(If you really need the HTML then, yes, a script could get the source, parse
it, add the </HTML> tag if you can specify _exactly_ after which other tag
it should go, and make a new replacement message with the corrected source.
If you can give me that info then, yes, it can be done.)
 
Top