.procmailrc Vacation Message Sent in HTML

.procmailrc Vacation Message Sent in HTML

am 15.08.2007 14:04:08 von ADempsey

I'm using a slightly modified version of http://ahab.com/code/vacationrc
where I have made it not require the password.

It works fine if the email is sent to yourself in plain text, but if
its sent in html, which seems to be the default for outlook express it
doesn't work. Is there anyway in the .procmailrc file i can modify
the recipe to extract the message from the html message?

This is a multi-part message in MIME format.

------=_NextPart_000_0053_01C7DB36.7DC6DC90
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

i'm on holiday from friady till monday
=0A
------=_NextPart_000_0053_01C7DB36.7DC6DC90
Content-Type: te

The actual text i want is between 'quoted-printable' and '=0A------
=_NextPart', but I don't know how or if I can extract it?

Anyone have any ideas?

Re: .procmailrc Vacation Message Sent in HTML

am 16.08.2007 03:33:19 von Garen Erdoisa

Adam Dempsey wrote:
> I'm using a slightly modified version of http://ahab.com/code/vacationrc
> where I have made it not require the password.
>
> It works fine if the email is sent to yourself in plain text, but if
> its sent in html, which seems to be the default for outlook express it
> doesn't work. Is there anyway in the .procmailrc file i can modify
> the recipe to extract the message from the html message?
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0053_01C7DB36.7DC6DC90
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> i'm on holiday from friady till monday
> =0A
> ------=_NextPart_000_0053_01C7DB36.7DC6DC90
> Content-Type: te
>
> The actual text i want is between 'quoted-printable' and '=0A------
> =_NextPart', but I don't know how or if I can extract it?

You can extract the text. However that will involve some extra
processing in your procmail recipe or rendering of the html to extract
the "rendered" text from the "html" encoded text before it is resent.

This can also be done with an external program or script that is
launched from procmail after the body of the message was saved to a file
and before the file is sent back out.

It'll be easier to just set outlook to send the email in plain text
format for that instance in order to turn your vacation auto responder
on/off, then set it back to html format if that is your preference.

>
> Anyone have any ideas?
>

IMHO:

Please keep in mind that vacation auto responders are not recommended
for use in email any more because they can lead to having your email
host added to a blacklist. Many people and robotic spamtrap programs
will report misdirected vacation auto responder messages as spam.

If you are going to use one of these auto responders, I would limit the
outgoing auto responder messages to only go to people or sites you
correspond with normally via email, and only after you have received
their permission to get such auto responder messages so they can be
expecting it. This is probably more trouble than it's worth.

--
Garen