Update of /cvsroot/tmda/tmda/bin
In directory usw-pr-cvs1:/tmp/cvs-serv26300/bin
Modified Files:
ChangeLog tmda-pending
Log Message:
Better multi-lingual support for tmda-pending.
When displaying message summaries, tmda-pending wasn't paying
attention to headers with charset encoded parts, which left them
unreadable for the user. e.g,
-----
1030037255.24196.msg (59 of 959 / 17942 bytes)
>> Date: Fri, 23 Aug 2002 02:26:47 +0900
>> From: =?ks_c_5601-1987?B?x/a068SrteU=?= <[EMAIL PROTECTED]>
>> To: [EMAIL PROTECTED]
>> Subj:
=?ks_c_5601-1987?B?W7GksO1dIG5vdmVtYnJltNQgx+C/7sDHILPXwNkgxay3zrnZv80gurmxx8C7ILXluLO0z7TZIQ==?=
([p]ass / [s]how / [r]el / [d]el / [w]hite / [b]lack / [q]uit) [pass]:
-----
We now run the headers through an RFC 2047 decoder before display.
This even works for multibyte character sets.
Problem reported by Jinhyok Heo in
<[EMAIL PROTECTED]> on tmda-users.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/ChangeLog,v
retrieving revision 1.232
retrieving revision 1.233
diff -u -r1.232 -r1.233
--- ChangeLog 15 Sep 2002 02:44:55 -0000 1.232
+++ ChangeLog 21 Sep 2002 00:27:44 -0000 1.233
@@ -1,3 +1,8 @@
+2002-09-20 Jason R. Mastaler <[EMAIL PROTECTED]>
+
+ * tmda-pending (main): Run the headers through an RFC 2047 decoder
+ before displaying message summaries.
+
2002-09-14 Tim Legant <[EMAIL PROTECTED]>
* tmda-rfilter (create_pending_msg): Return message filename.
Index: tmda-pending
===================================================================
RCS file: /cvsroot/tmda/tmda/bin/tmda-pending,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- tmda-pending 11 Sep 2002 22:35:59 -0000 1.29
+++ tmda-pending 21 Sep 2002 00:27:44 -0000 1.30
@@ -398,7 +398,8 @@
for hdr in ('date', 'from', 'to', 'subject'):
print "%s %s: %s" % (' >>',
hdr.capitalize()[:4].rjust(4),
- headers.getheader(hdr, 'None'))
+ Util.decode_header(headers.getheader
+ (hdr, 'None')))
if summary:
print '<mailto:%s>' % (confirm_accept_address
(recipient_address, msg))
@@ -417,7 +418,7 @@
else:
terse_hdrs.append(headers.getheader(hdr, 'None'))
terse_hdrs.insert(0, msg)
- print '\t'.join(terse_hdrs)
+ print '\t'.join([Util.decode_header(hdr) for hdr in terse_hdrs])
if interactive:
try:
message = '([p]ass / [s]how / [r]el / [d]el'
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs