POP3 relay service with MIME transformation?

POP3 relay service with MIME transformation?

am 06.05.2005 00:25:22 von Joop

We are using an application that has problems processing HTML emails
that have a single text/html part as content-type.
Somehow emails with content-type multipart/alternative with both
text/plain and text/html mime sections are processed fine.

Is there a (simple) pop3 server/relay program that anybody knows of
that could translate a single text/html into a multipart email? The
actual content of the text/plain is not important.

Platform may be either windows or Linux.

Thanks,

Joop

Re: POP3 relay service with MIME transformation?

am 06.05.2005 01:20:58 von Sam

This is a MIME GnuPG-signed message. If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.

--=_mimegpg-commodore.email-scan.com-30807-1115335257-0001
Content-Type: text/plain; format=flowed; charset="US-ASCII"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Joop writes:

> We are using an application that has problems processing HTML emails
> that have a single text/html part as content-type.
> Somehow emails with content-type multipart/alternative with both
> text/plain and text/html mime sections are processed fine.
>
> Is there a (simple) pop3 server/relay program that anybody knows of
> that could translate a single text/html into a multipart email? The
> actual content of the text/plain is not important.

I doubt it. In the last eight years I have never heard of anyone asking for
anything like that. Your need is rather unique.

The correct solution, in your case, is to fix the broken application,
instead of searching for a smelly band-aid workaround.



--=_mimegpg-commodore.email-scan.com-30807-1115335257-0001
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBCeqpZx9p3GYHlUOIRAtWRAJ9c4ABz/VrdysIwjp5WJyMZPFAr3ACd FWe5
qXPGFTDJ7VuT5+ufpaFu02k=
=WvBT
-----END PGP SIGNATURE-----

--=_mimegpg-commodore.email-scan.com-30807-1115335257-0001--

Re: POP3 relay service with MIME transformation?

am 06.05.2005 01:33:16 von Joop

Sam wrote:

>Joop writes:
>
>> We are using an application that has problems processing HTML emails
>> that have a single text/html part as content-type.
>> Somehow emails with content-type multipart/alternative with both
>> text/plain and text/html mime sections are processed fine.
>>
>> Is there a (simple) pop3 server/relay program that anybody knows of
>> that could translate a single text/html into a multipart email? The
>> actual content of the text/plain is not important.
>
>I doubt it. In the last eight years I have never heard of anyone asking for
>anything like that. Your need is rather unique.
>
>The correct solution, in your case, is to fix the broken application,
>instead of searching for a smelly band-aid workaround.
>
I agree it would be, but this is an application we have not developed
ourselves. The process to get a patch will probably take a long time.

But I guess there must exist pop3 servers with some scripting
functionality. If only to support 3rd party virus/spam filtering. I
have no problem writing a little script that rewrites an email, as
long as there is an api that provides the necessary features.
It would be a workaround for the time being.

I have searched for pop3 servers, but it is not easy to get enough
details on this point. There are plenty of perl/c# components that
handle email messages, but they are meant for clients, not running on
the server side.

Re: POP3 relay service with MIME transformation?

am 07.05.2005 05:50:30 von William Park

Joop wrote:
> Sam wrote:
>
> >Joop writes:
> >
> >> We are using an application that has problems processing HTML
> >> emails that have a single text/html part as content-type. Somehow
> >> emails with content-type multipart/alternative with both text/plain
> >> and text/html mime sections are processed fine.
> >>
> >> Is there a (simple) pop3 server/relay program that anybody knows of
> >> that could translate a single text/html into a multipart email? The
> >> actual content of the text/plain is not important.
> >
> >I doubt it. In the last eight years I have never heard of anyone
> >asking for anything like that. Your need is rather unique.
> >
> >The correct solution, in your case, is to fix the broken application,
> >instead of searching for a smelly band-aid workaround.
> >
> I agree it would be, but this is an application we have not developed
> ourselves. The process to get a patch will probably take a long time.
>
> But I guess there must exist pop3 servers with some scripting
> functionality. If only to support 3rd party virus/spam filtering. I
> have no problem writing a little script that rewrites an email, as
> long as there is an api that provides the necessary features. It
> would be a workaround for the time being.
>
> I have searched for pop3 servers, but it is not easy to get enough
> details on this point. There are plenty of perl/c# components that
> handle email messages, but they are meant for clients, not running on
> the server side.

Why not pull the emails first, transform them, and save to a local
mailbox. Then, tell your brain-dead application to pull from local POP3
server.

--
William Park , Toronto, Canada
Slackware Linux -- because it works.

Re: POP3 relay service with MIME transformation?

am 07.05.2005 13:52:22 von Joop

William Park wrote:

>Why not pull the emails first, transform them, and save to a local
>mailbox. Then, tell your brain-dead application to pull from local POP3
>server.

Yes, that was what I did yesterday. Write a little script that
consumes POP3 emails and put them via SMTP into another mailbox. It is
not bullet-proof yet (probably due to the components used...), but at
least it shows it could make a valid workaround. I still have to test
how it handles all kind of attachments, 'faking' the sender etc.

Thanks for the interest.

Re: POP3 relay service with MIME transformation?

am 08.05.2005 03:49:33 von William Park

Joop wrote:
> William Park wrote:
>
> >Why not pull the emails first, transform them, and save to a local
> >mailbox. Then, tell your brain-dead application to pull from local POP3
> >server.
>
> Yes, that was what I did yesterday. Write a little script that
> consumes POP3 emails and put them via SMTP into another mailbox. It is
> not bullet-proof yet (probably due to the components used...), but at
> least it shows it could make a valid workaround. I still have to test
> how it handles all kind of attachments, 'faking' the sender etc.
>
> Thanks for the interest.

For generating or parsing MIME email, you may also want to look at

http://freshmeat.net/projects/mboxsh/
http://home.eol.ca/~parkw/index.html#mbox

--
William Park , Toronto, Canada
Slackware Linux -- because it works.