[Spambayes-checkins] spambayes/Outlook2000 msgstore.py,1.33,1.34

Mark Hammond mhammond@users.sourceforge.net
Sat Nov 23 06:45:46 2002


Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1:/tmp/cvs-serv11667

Modified Files:
	msgstore.py 
Log Message:
Ignore errors when looking into mime attachments for a body.


Index: msgstore.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/msgstore.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** msgstore.py	23 Nov 2002 04:58:56 -0000	1.33
--- msgstore.py	23 Nov 2002 06:45:43 -0000	1.34
***************
*** 466,474 ****
                              PR_ATTACH_MIME_TAG_A,   # of the given prop
                              (PR_ATTACH_MIME_TAG_A, "multipart/signed")))
!             rows = mapi.HrQueryAllRows(table,
!                                        (PR_ATTACH_NUM,), # columns to get
!                                        restriction,    # only these rows
!                                        None,    # any sort order is fine
!                                        0)       # any # of results is fine
              if len(rows) == 0:
                  pass # Nothing we can fetch :(
--- 466,478 ----
                              PR_ATTACH_MIME_TAG_A,   # of the given prop
                              (PR_ATTACH_MIME_TAG_A, "multipart/signed")))
!             try:
!                 rows = mapi.HrQueryAllRows(table,
!                                            (PR_ATTACH_NUM,), # columns to get
!                                            restriction,    # only these rows
!                                            None,    # any sort order is fine
!                                            0)       # any # of results is fine
!             except pythoncom.com_error:
!                 # For some reason there are no rows we can get
!                 rows = []
              if len(rows) == 0:
                  pass # Nothing we can fetch :(





More information about the Spambayes-checkins mailing list