On Tue, 2005-06-28 at 10:54 -0400, Kelly J. Morris wrote:
>> Greetings - I use Evolution to read mail from several POP and IMAP
>> accounts. This morning, for the first time, when I click on
>> "Send/Receive," the fetching clicks off when it reaches my Comcast
> >accounts.
> >
> >Before I call up Comcast TS and listen to them tell me (again) that they
> >don't support non-Microsoft products, does anyone have any ideas about
> >how I can troubleshoot this problem? The only change that I made to my
> >accounts was that, during my clean-install upgrade (SuSE 9 to SuSE 9.2,
> >Evo 1.4.6 to Evo 2.0.1), I temporarily changed the "Receiving Options"
> >settings to "Leave Messages on Server." I changed them back after I
>>completed the transition.
>
>Attached is a little python script that will query a pop server 
>and list all the emails (From, Subject, Date).  You'll have to
>change pop.east.cox.net to Comcast's server name.  That will verify
>if you actually have any email.
>
>Usage:
>$ python poplscox.py username password

Ron - I can access my messages at the Comcast website, where they are piling 
up. Kelly





--- Begin Message ---
On Tue, 2005-06-28 at 10:54 -0400, Kelly J. Morris wrote:
> Greetings - I use Evolution to read mail from several POP and IMAP
> accounts. This morning, for the first time, when I click on
> "Send/Receive," the fetching clicks off when it reaches my Comcast
> accounts.
> 
> Before I call up Comcast TS and listen to them tell me (again) that they
> don't support non-Microsoft products, does anyone have any ideas about
> how I can troubleshoot this problem? The only change that I made to my
> accounts was that, during my clean-install upgrade (SuSE 9 to SuSE 9.2,
> Evo 1.4.6 to Evo 2.0.1), I temporarily changed the "Receiving Options"
> settings to "Leave Messages on Server." I changed them back after I
> completed the transition.

Attached is a little python script that will query a pop server 
and list all the emails (From, Subject, Date).  You'll have to
change pop.east.cox.net to Comcast's server name.  That will verify
if you actually have any email.

Usage:
$ python poplscox.py username password


-- 
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B I prefer encrypted mail.

"The main reason that M$ gets bashed is that they persist in
writing bad code, on top of bad code.... As many have said, there
is NO PERFECT OS. The better OS though, IMHO, is the one that
will openly deal with issues, both major, and minor. Microsoft
still needs a lot of work in this area."
http://www.securityfocus.com/columnists/202/comment/24104#MSG

import getpass, poplib, string, sys
import re

################

def check_re(d, patt_re, patt,  s):
    mo = patt_re.search(s)
    if mo:
        d[patt] = s
    return d

################

M = poplib.POP3('pop.east.cox.net')

#M.set_debuglevel(2)
M.user(sys.argv[1])
try:
    M.pass_(sys.argv[2])
except:
    print sys.exc_info ()[1]
###M.pass_(getpass.getpass())

from_pattern = re.compile("^from\:")
subj_pattern = re.compile("^subject\:")
date_pattern = re.compile("^date\:")
msft1_pattern = re.compile("^content-disposition: attachment; filename=")
haggis_pattern = re.compile("[EMAIL PROTECTED]")

try:
    w = M.list()
except:
    print sys.exc_info ()[1]
    sys.exit()

print w[0]
print w[1]
print w[2]
size_array = w[1]
numMessages = len(size_array)
print 'Num emails ', numMessages
for i in range(1, numMessages+1):
    d = {'from': '', 'subj': '', 'date': '', 'attach': '', 'haggis': ''}
    b = ['==============================================', '==============================================']
    x = M.top(i, 20)
    a = string.split(size_array[i-1], ' ')
    ndx = int(a[0])
    bcnt = int(a[1])
    #if bcnt > 10000:
    if bcnt > 1:
        b.append(('%d   %d' % (ndx, bcnt)))
        for y in x[1]:
            y1 = y.lower()
            d = check_re(d, from_pattern, 'from', y1)
            d = check_re(d, subj_pattern, 'subj', y1)
            d = check_re(d, date_pattern, 'date', y1)
            d = check_re(d, msft1_pattern, 'attach', y1)
            d = check_re(d, haggis_pattern, 'haggis', y1)
        for c in b:
            print c
        print d['from']
        print d['subj']
        print d['date']
        print d['attach']
        if (bcnt > 100000) and (d['haggis'] != ''):
            print '         TOO BIG!!!!!!!!!!!!!!!!!'
    
M.quit()

print '============================================================'
print '============================================================'
print '============================================================'
print '============================================================'

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
_______________________________________________
evolution maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/evolution

Reply via email to