Method for replacing headers?
"Hy Ginsberg" <[email protected]> Fri, 8 Nov 2002 10:45:10 -0500
| Newsgroups | gmane.mail.elspy.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. ------=_NextPart_000_00A4_01C28713.E90D8160 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi Greg (et al), The elspy API.txt mentions that "There's currently no way to remove or replace header lines -- bring it up on [email protected] if you'd like to see that feature added. (I haven't needed it yet; when I do, I'll add it!)." Here's what we're thinking (here at LiveData, in Cambridge, Mass, where we're psyched to be plugging Python code into our mailserver with elspy - thank you very much): aside from the usual virus scanning, it would be nice to append a ".txt" to certain filename attachments - for example if an attached file ends in ".exe" or ".bat". That way if someone carelessly double-clicked on an attached file, they wouldn't automatically be running something potentially nasty. I think that means replacing the "Content-Disposition" header or maybe just replacing the "filename" parameter of the Content-Disposition header, if you wanted to expose that level of control. Sound reasonable? Thanks again, Hy Ginsberg LiveData, Inc. (617)576-6900 ------=_NextPart_000_00A4_01C28713.E90D8160 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4912.300" name=3DGENERATOR></HEAD> <BODY> <DIV><FONT face=3DArial size=3D2><SPAN class=3D531163415-08112002>Hi = Greg (et=20 al),</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D531163415-08112002></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D531163415-08112002>The = elspy API.txt=20 mentions that "There's currently no way to remove or replace header = lines --=20 bring it up on <A=20 href=3D"mailto:[email protected]">[email protected]</A> if = you'd like to=20 see that feature added. (I haven't needed it yet; when I do, I'll = add=20 it!)."</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D531163415-08112002></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D531163415-08112002>Here's = what we're=20 thinking (here at LiveData, in Cambridge, Mass, where we're psyched to = be=20 plugging Python code into our mailserver with elspy - thank you very = much):=20 aside from the usual virus scanning, it would be nice to append a ".txt" = to=20 certain filename attachments - for example if an attached file ends = in=20 ".exe" or ".bat". That way if someone carelessly double-clicked on = an=20 attached file, they wouldn't automatically be running something = potentially=20 nasty. I think that means replacing the "Content-Disposition" = header or=20 maybe just replacing the "filename" parameter of the Content-Disposition = header,=20 if you wanted to expose that level of control.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D531163415-08112002></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D531163415-08112002>Sound=20 reasonable?</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D531163415-08112002></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D531163415-08112002>Thanks = again,</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D531163415-08112002></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN class=3D531163415-08112002>Hy=20 Ginsberg</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN = class=3D531163415-08112002>LiveData,=20 Inc.</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D531163415-08112002>(617)576-6900</SPAN></FONT></DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D531163415-08112002></SPAN></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><SPAN=20 class=3D531163415-08112002></SPAN></FONT> </DIV></BODY></HTML> ------=_NextPart_000_00A4_01C28713.E90D8160--