On 4/3/05 8:54 AM, "Brent" <[EMAIL PROTECTED]> wrote:
> I'm trying to write a Rule to catch a weird character set. What the computer
> sees is different from what the human sees.
>
> This is the line from the headers that I have received, and want to block
> that character set.
>
> Subject: =?iso-8859-1?B?VmlhZ3JhIC0gdmVyeSBsb3cgcHJpY2U=?=
>
> This follows the To: line and before the MIME or boundary.
>
> What the humans see is an ad for male enhancement.
>
> The rule I have written does not work,
>
> If any criteria are met:
> Any header contains <=?iso-8859>
> Subject contains <=?iso-8859>
> Then...
>
> But the Rule is not working.
The stuff you are quoting is encoded. The ?iso-8859-1?B? business is part of
the encoding - in fact it is the description of the encoding. It's not what
you actually see as the subject, is it? You'll be seeing some foreign
characters in the subject, right? The Rules work on the subject as you see
it - on the "human", decoded subject, not the encoding. Furthermore, you've
got the wrong end of the stick here. 8859-1 happens to be a very common
encoding, used for virtually everything where simple ASCII (the unaccented
Latin characters, numbers, plus some standard punctuation) isn't sufficient.
8859-1 is needed even for curly quotes, �, plus quite a bit more. It could
cover a huge number of sources, including some you probably would not want
to exclude. If you really did want to exclude them all, then take a look at
what the Source shows to be the "charset" of the message, or of one of the
"parts" of the message. It probably says
charset="iso-8859-1"
somewhere. But because this may be only within one of the "parts" of a
multipart/alternative (HTML) message, rather than in the Content-type header
of the message itself, a regular rule filtering "Any header" or "Specific
header : Content-type" won't catch it. You'd have to write a script to find
it.
But, believe me, you don't want to do this. Probably close to half of all
the messages you get are in 8859-1. You'd be trashing half your messages,
most of which you probably want to keep.
So how about figuring out something a little more specific to exclude?
--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>
PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.
--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>