don't like HTML email? here's your fix.

Trevor Smith pmmail@rpglink.com
Tue, 28 Mar 2000 18:19:20 -0400 (AST)


OK, for those who wanted a filter for HTML email, here it is. This
one is very basic so I questioned whether I should even post it but I
guess some people might not have known how to do the following. This
filter should catch any HTML email from Netscape. Does IE use a
different "content-type" line? I don't know. I'll check later tonight
when I boot to Windows.

1. Create a new canned reply in PMMail/2:
  a) Click "Account->Account Settings...".
  b) Select the "Canned Replies" page.
  c) Click the "New" button.
  d) Enter a name for your canned in the "Description" entry field.
     "HTML email" is a good name.
  e) In the multi-line entry field (the big white area) enter
     whatever text you want to send to people who send you HTML
     email. In my canned reply I (politely) notify the sender that
     not all email clients can properly display HTML and that they're
     wasting their time sending me HTML formatting since PMMail/2
     strips it out.
  f) Click the "OK" button.

2. Create a new filter in PMMail/2:
  a) Click "Account->Filters..." in the PMMail/2 main menu, if you do
     not already have the Account Settings notebook open; if you do
     already have the Account Settings notebook open, just select the
     "Filters" page.
  b) Click the "New" button.
  c) Give your filter a name (enter it in the "Description" field).
     Again, something like "HTML email" should do.
  d) Select the "Complex" radio button.
  e) In the multi-line entryfield below the "Complex" radio button,
     enter the following:

     (Header.toid="youremail@yourdomain")
     & 
     (Header.Content-Type="text/html")

     Make sure you change youremail@yourdomain to YOUR REAL EMAIL
     ADDRESS. The purpose and rationale behind this is that much spam
     email contains HTML and there is no point replying to spam (in
     fact, it's probably harmful because it will alert the sender
     that your email address is working and they may send you *MORE*
     spam!).

     Luckily, often spam is sent to someone else's "To:" address,
     not yours (you get it because you're listed as a Cc: or Bcc:
     addressee). So, our filter only catches messages specifically
     listing YOU in the To: field, to avoid sending a canned reply
     (see #2g below) to spammers.

     The second search term in the above filter looks for a
     "Content-Type" line in the incoming email's header that contains
     "text/html". This is the line that Netscape Navigator sets for
     HTML email.

  f) Make sure the "Enabled" and "Incoming" checkboxes are checked.
  g) In the "Actions" area, select whatever actions you want to take
     when faced with incoming HTML email. If you followed step one
     above and created a canned reply, select "Send canned reply"
     from the first drop down list. In the adjacent entry field
     (which only becomes visible after you have selected "Send canned
     reply") enter the EXACT name of the canned reply you created.
  h) Click the "OK" button to close the "Edit Filter" dialog window.
  i) Click the "OK" button to close the Account Settings notebook.

If you want to delete HTML messages along with sending a canned
reply, just delete the messages, or do something else, play around
with the various "Actions" that PMMail/2's filters offer.


-- 
 Trevor Smith          |          trevor@haligonian.com
 PGP public key available at: www.haligonian.com/trevor

PGP Public Key Fingerprint= A68C C4EC C163 5C0A 6CFA  671F 05D4 0B30 318B AFD6