<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 07-05-14 10:11, Emre Hasegeli wrote:<br>
</div>
<blockquote
cite="mid:CAE2gYzwxx=KGUn1NV=Ni+5x_x7y1HxpCm=CNRvsAuLKg826RZw@mail.gmail.com"
type="cite">Antoon Pardon <<a moz-do-not-send="true"
href="mailto:antoon.pardon@rece.vub.ac.be">antoon.pardon@rece.vub.ac.be</a>>:
<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
> I'm working on a Python app that receives an e-mail
message via SMTP,<br>
> does some trivial processing on it, and forwards it to
another SMTP<br>
> server.<br>
><br>
> I'd like to do the polite thing and add a "Received:"
header, but I<br>
> can't figure out how to get Python's email module to add
it in the<br>
> correct place. It always ends up at the "bottom" of the
headers below<br>
> From: To: etc. It's supposed to go at the above all the
Received:<br>
> headers that where there when I received it.<br>
<br>
I thought that was the job of the SMTP servers, not of email<br>
applications. So I'm not sure<br>
that what you want to do is the polite thing to do.<br>
</blockquote>
<div><br>
</div>
<div>This application seems like an SMTP server.</div>
<div><br>
</div>
</div>
</blockquote>
It doesn't to me. As far as I can see what he wants to do can be
done<br>
by a mail program like procmail in combination with some mail<br>
filtering/processing.<br>
<br>
-- <br>
Antoon Pardon<br>
</body>
</html>