IMAP Tkinter Issue

2006-03-23 Thread Kevin F
Sorry to repost... but 4am didn't get much responses. I've been trying to implement this script, it polls an IMAP inbox for unread messages and displays the sender and subject in a scrollable window using Tkinter. However, when I try to change the search parameters on line 55 from 'unread' (UN

IMAP mailwatcher w/Tkinter

2006-03-23 Thread Kevin F
I've been trying to implement this script, it polls an IMAP inbox for unread messages and displays the sender and subject in a scrollable window using Tkinter. However, when I try to change the search parameters on line 55 from 'unread' (UNSEEN) to 'read' (SEEN), the tkinter window doesn't eve

Re: where is os.path.expanduser?

2006-03-23 Thread Kevin F
Peter Otten wrote: > Kevin F wrote: > >> where is this code looking for the .imap file? I am on OSX and am not >> sure where to put the file it is looking for. >> >> f = open(os.path.expanduser('~/.imap')) > > Your interactiv

os.path.expanduser ... where is this?

2006-03-23 Thread Kevin F
I have a code that opens an .imap file in os.path.expanduser. Unfortunately, I am on OS X and have no idea where that directory is. I am wondering how I can change this code to just open the .imap file in the directory where the code is saved. f = open(os.path.expanduser('~/.imap')) p.s.

where is os.path.expanduser?

2006-03-23 Thread Kevin F
where is this code looking for the .imap file? I am on OSX and am not sure where to put the file it is looking for. f = open(os.path.expanduser('~/.imap')) -- http://mail.python.org/mailman/listinfo/python-list

searching imap mail folder but excluding one subfolder

2006-03-22 Thread Kevin F
I have code that searches under the default folder (inbox) but I would like to modify it to search for everything in that folder with the exception of one subfolder where I would like it not to search. my current code is: from imaplib import * import getpass server = IMAP4("webmail.x.

newbie question

2006-03-22 Thread Kevin F
what does it mean when there are [0] or [1] after a variable? e.g. print 'Message %s\n%s\n' % (num, data[0][1]) -- http://mail.python.org/mailman/listinfo/python-list

parsing downloaded mail via POP3

2006-03-22 Thread Kevin F
I have the following script: emails = [] for msg in messagesInfo: msgNum = int(msg.split()[0]) msgSize = int(msg.split()[1]) if(msgSize < 2): message = server.retr(msgNum)[1] Message = join(message, ā€œ\nā€) emails.append(message) It downloads

IMAP Checking Folder Size

2006-03-20 Thread Kevin F
I'm trying to use the following code to get my remote server's folder size information. Unfortunately, i'm getting the error: Traceback (most recent call last): File "/Life/School/Homework/Spring 2006/OPIM 399/Tutorial/IMAP/mailboxsize.py", line 23, in -toplevel- number_of_messages_al

IMAP Folder Size Information

2006-03-19 Thread Kevin F
I'm trying to use the following code to get my remote server's folder size information. Unfortunately, i'm getting the error: Traceback (most recent call last): File "/Life/School/Homework/Spring 2006/OPIM 399/Tutorial/IMAP/mailboxsize.py", line 23, in -toplevel- number_of_messages_al

pop3 mail download - using python.org example

2006-03-18 Thread Kevin F
i'm trying to this this code to access my pop server but it only prompts for a password and not a username, how do i get it to ask for my username as well? ##from http://docs.python.org/lib/pop3-example.html import getpass, poplib M = poplib.POP3('localhost') M.user(getpass.getuser()) M.pass_

Re: POP3 Mail Download

2006-03-18 Thread Kevin F
Paul McGuire wrote: > "Kevin F" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Dennis Lee Bieber wrote: >>> On Sat, 18 Mar 2006 16:44:44 -0500, Kevin F <[EMAIL PROTECTED]> >>> declaimed the following in comp.lang.python: >

Re: POP3 Mail Download

2006-03-18 Thread Kevin F
Dennis Lee Bieber wrote: > On Sat, 18 Mar 2006 17:24:05 -0500, Kevin F <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> I fixed the indentation to: >> >> emails = [] >> for msg in messagesInfo: >> msgNum = int(split(msg

Re: Getting .NET SDK to work with Python 2.4.2

2006-03-18 Thread Kevin F
;)[1] if(msgSize < 2): message = server.retr(msgNum)[1] message = join(message, "\n") emails.append(message) Kevin F wrote: > Dave wrote: >> I searched the usenet and some mail archives and tried various >> techniques, but I can't seem to get the .NE

Re: Getting .NET SDK to work with Python 2.4.2

2006-03-18 Thread Kevin F
Dave wrote: > I searched the usenet and some mail archives and tried various > techniques, but I can't seem to get the .NET 2.0 SDK to work with > python. I'm a total newbie when it comes to python installs. I > downloaded the .NET 2.0 SDK and I have python 2.4.2 and im trying to > install zope. So

Re: POP3 Mail Download

2006-03-18 Thread Kevin F
Dennis Lee Bieber wrote: > On Sat, 18 Mar 2006 16:44:44 -0500, Kevin F <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > >> However, if I try to actually download the messages themselves, my >> python editor highlights 'msgSize' and

POP3 Mail Download

2006-03-18 Thread Kevin F
Having some troubles downloading messages with POP3... I can connect to the server just fine and list messages without any problem with the following code: from poplib import * server = POP3("mail.bluebottle.com") print server.getwelcome() print server.user("[EMAIL PROT