[Spambayes] imap4 filter

Neal Stoughton nmstough at uci.edu
Mon Dec 29 20:53:13 EST 2003


Thanks for the response.  I listed the response to your question below.
----- Original Message ----- 
From: "Tony Meyer" <tameyer at ihug.co.nz>
To: "'Neal Stoughton'" <nmstough at uci.edu>; <spambayes at python.org>
Sent: Monday, December 29, 2003 17:15
Subject: RE: [Spambayes] imap4 filter


Hmm.  I tried 1.0a7 and it works here.  Do the folder names on your imap
server have an odd character in them?  (something like '<' or '>')?  If
you're willing, could you try the following and let me know what you get?

1.  Open a command prompt.
2.  Type "c:\python23\python"
3.  Type "from imaplib import IMAP4"
4.  Type "i = IMAP4('YOUR.IMAP.SERVER.HERE')"
5.  Type "i.login('YOUR USERNAME', 'YOUR PASSWORD')"
    [You'll see a "ok" message]
6   Type "i.list()"
    [You'll see a list of all your IMAP folders - this is what I'd like to
see]
7.  Type "i.logout()"
    [You'll see a "bye" message]
8.  Close the command prompt.



I got a long listing of folders:  there are probably more than a thousand on 
the server.  I dont think any have "<" or ">" characters.  They do have "-" 
though.  There were so many that they scrolled by too fast.  I reproduce 
below a listing of just some of the typeout:

"Public Folders/GSM Intra-Department Folders/Center fo
r Entrepreneurship and Innovation"', '(\\HasNoChildren) "/" "Public 
Folders/Inte
rnet Newsgroups/gsm/FEMBA13-Board"', '(\\HasChildren) "/" "Public 
Folders/GSM In
tra-Department Folders"', '(\\HasChildren) "/" "Public Folders/GSM 
Intra-Departm
ent Folders/Technical Services"', '(\\HasNoChildren) "/" "Public Folders/GSM 
Int
ra-Department Folders/Technical Services/MBA Computing/Archive/1996 
Budget"', '(
\\HasNoChildren) "/" "Public Folders/GSM Intra-Department Folders/Technical 
Serv
ices/MBA Computing/Archive/1996 Notebook Purchase"', '(\\HasChildren) "/" 
"Publi
c Folders/GSM Intra-Department Folders/Technical Services/MBA Computing"', 
'(\\H
asNoChildren) "/" "Public Folders/GSM Intra-Department Folders/Technical 
Service
s/MBA Computing/MBA Course Schedules"', '(\\HasChildren) "/" "Public 
Folders/Ind
ividual\'s Collaboration Folders"', '(\\HasNoChildren) "/" "Public 
Folders/GSM I
ntra-Department Folders/Technical Services/MBA Computing/Class 
Directories"', '(
\\HasNoChildren) "/" "Public Folders/GSM Intra-Department Folders/Technical 
Serv
ices/MBA Computing/MBA Support Calendar"', '(\\HasNoChildren) "/" "Public 
Folder
s/GSM Intra-Department Folders/Technical Services/MBA Computing/MBA Support 
Cont
acts"', '(\\HasNoChildren) "/" "Public Folders/GSM Intra-Department 
Folders/Tech
nical Services/Help Desk/HD Completed Calls"', '(\\HasNoChildren) "/" 
"Public Fo
lders/GSM Intra-Department Folders/Technical Services/MBA Computing/MBA 
Support
Policies"', '(\\HasNoChildren) "/" "Public Folders/GSM Suggestions"', 
'(\\HasChi
ldren) "/" "Public Folders/Library"', '(\\HasNoChildren) "/" "Public 
Folders/OUT
LOOK Tips"', '(\\HasNoChildren) "/" "Public Folders/GSM Intra-Department 
Folders
/Technical Services/MS Exchange/MS Exchange Technical/MSX Server"', 
'(\\HasNoChi
ldren) "/" "Public Folders/GSM Intra-Department Folders/Technical 
Services/MS Ex
change/MS Exchange Technical/MSX Client"', '(\\HasNoChildren) "/" "Public 
Folder
s/GSM Intra-Department Folders/Technical Services/MBA Computing/GSCSC 
Notes"', '
(\\HasNoChildren) "/" "Public Folders/GSM Intra-Department Folders/Technical 
Ser
vices/MBA Computing/GSCSC Todo"'])




More information about the Spambayes mailing list