Update of /cvsroot/tmda/tmda/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv8496/bin
Modified Files:
ChangeLog tmda-inject
Log Message:
Add our own message module which inherits from email.Message. We do
this to change certain default behaviors such as "From" with ">".
It's not the job of the MUA to escape From, so we change this in
tmda-inject.
This is a half-assed fix, because we need to do this to the
tmda-filter side as well, since escaping only needs to be done when
delivering to mbox files. However, this has proven more difficult than
anticipated, so it will have to wait.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/ChangeLog,v
retrieving revision 1.254
retrieving revision 1.255
diff -u -r1.254 -r1.255
--- ChangeLog 18 Feb 2003 06:30:37 -0000 1.254
+++ ChangeLog 20 Feb 2003 22:52:32 -0000 1.255
@@ -1,3 +1,8 @@
+2003-02-20 Jason R. Mastaler <[EMAIL PROTECTED]>
+
+ * tmda-inject (msgout): Create the message object from our own
+ Message module.
+
2003-02-17 Jason R. Mastaler <[EMAIL PROTECTED]>
* tmda-check-address (main): Bugfix. Print the expired date for
Index: tmda-inject
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/tmda-inject,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- tmda-inject 14 Nov 2002 00:09:52 -0000 1.73
+++ tmda-inject 20 Feb 2003 22:52:33 -0000 1.74
@@ -119,12 +119,12 @@
pass
-from TMDA import Defaults
from TMDA import Cookie
+from TMDA import Defaults
from TMDA import FilterParser
+from TMDA import Message
from TMDA import Util
-
import email
import string
@@ -137,7 +137,7 @@
Util.filter_match(Defaults.FILTER_OUTGOING, recip, sender)
sys.exit()
-msgout = email.message_from_file(sys.stdin)
+msgout = Message.message_from_file(sys.stdin)
orig_msgout_as_string = msgout.as_string()
orig_msgout_size = len(orig_msgout_as_string)
orig_msgout_body_as_raw_string = Util.body_as_raw_string(msgout)
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs