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
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
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
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 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
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.
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
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
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
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
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_
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:
>
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
;)[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
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
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
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
17 matches
Mail list logo