[Spambayes-checkins] spambayes/Outlook2000/sandbox dump_props.py,
1.8, 1.9
Mark Hammond
mhammond at users.sourceforge.net
Mon Jul 28 18:35:26 EDT 2003
Update of /cvsroot/spambayes/spambayes/Outlook2000/sandbox
In directory sc8-pr-cvs1:/tmp/cvs-serv6942/sandbox
Modified Files:
dump_props.py
Log Message:
Sort the property tags - much easier when comparing 2 messages.
Index: dump_props.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/sandbox/dump_props.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** dump_props.py 23 Jul 2003 06:12:21 -0000 1.8
--- dump_props.py 29 Jul 2003 00:35:24 -0000 1.9
***************
*** 44,48 ****
def DumpItemProps(item, shorten, get_large_props):
! for prop_name, prop_tag, prop_val in GetAllProperties(item):
if get_large_props and \
PROP_TYPE(prop_tag)==PT_ERROR and \
--- 44,50 ----
def DumpItemProps(item, shorten, get_large_props):
! all_props = GetAllProperties(item)
! all_props.sort() # sort by first tuple item, which is name :)
! for prop_name, prop_tag, prop_val in all_props:
if get_large_props and \
PROP_TYPE(prop_tag)==PT_ERROR and \
***************
*** 70,73 ****
--- 72,77 ----
attach = item.OpenAttach(attach_num, None, mapi.MAPI_DEFERRED_ERRORS)
DumpItemProps(attach, shorten, get_large)
+ print
+ print
def usage(driver):
More information about the Spambayes-checkins
mailing list