[Spambayes-checkins] spambayes/Outlook2000/dialogs FolderSelector.py,1.12,1.13

Mark Hammond mhammond at users.sourceforge.net
Thu Feb 13 15:37:00 EST 2003


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

Modified Files:
	FolderSelector.py 
Log Message:
Bug 685746: Sort folder names in folder selector.


Index: FolderSelector.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/dialogs/FolderSelector.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** FolderSelector.py	26 Jan 2003 01:17:27 -0000	1.12
--- FolderSelector.py	13 Feb 2003 23:36:56 -0000	1.13
***************
*** 58,64 ****
      table = folder.GetHierarchyTable(0)
      children = []
      rows = mapi.HrQueryAllRows(table, (PR_ENTRYID,
                                         PR_STORE_ENTRYID,
!                                        PR_DISPLAY_NAME_A), None, None, 0)
      for (eid_tag, eid),(storeeid_tag, store_eid), (name_tag, name) in rows:
          # Note the eid we get here is short-term - hence we must
--- 58,65 ----
      table = folder.GetHierarchyTable(0)
      children = []
+     order = (((PR_DISPLAY_NAME_A, mapi.TABLE_SORT_ASCEND),),0,0)
      rows = mapi.HrQueryAllRows(table, (PR_ENTRYID,
                                         PR_STORE_ENTRYID,
!                                        PR_DISPLAY_NAME_A), None, order, 0)
      for (eid_tag, eid),(storeeid_tag, store_eid), (name_tag, name) in rows:
          # Note the eid we get here is short-term - hence we must





More information about the Spambayes-checkins mailing list