473,320 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

imaplib unexpected error

Hello, I am getting an odd error when trying to establish an IMAP
connection:

File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/
imaplib.py", line 904, in _get_response
raise self.abort("unexpected response: '%s'" % resp)
imaplib.abort: unexpected response: '220 libertydistribution.com ESMTP
CommuniGate Pro 5.0.9 is glad to see you!'

I thought 220 was the correct response, so I don't understand why I am
getting the error. Thanks!

Nov 12 '07 #1
3 2441
Nevermind. It always seems I figure out what I did wrong right after I
post. Turns out I was using the wrong port.

On Nov 12, 12:51 pm, KeefTM <kee...@gmail.comwrote:
Hello, I am getting an odd error when trying to establish an IMAP
connection:

File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/
imaplib.py", line 904, in _get_response
raise self.abort("unexpected response: '%s'" % resp)
imaplib.abort: unexpected response: '220 libertydistribution.com ESMTP
CommuniGate Pro 5.0.9 is glad to see you!'

I thought 220 was the correct response, so I don't understand why I am
getting the error. Thanks!

Nov 12 '07 #2
KeefTM wrote:
Hello, I am getting an odd error when trying to establish an IMAP
connection:

File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/
imaplib.py", line 904, in _get_response
raise self.abort("unexpected response: '%s'" % resp)
imaplib.abort: unexpected response: '220 libertydistribution.com ESMTP
CommuniGate Pro 5.0.9 is glad to see you!'

I thought 220 was the correct response, so I don't understand why I am
getting the error. Thanks!

You are connecting to an SMTP server. :-) Maybe it is using the IMAP
port? More likely you tried to connect to port 25 which is - usually -
reserved for SMTP.

Regards,

Laszlo

Nov 12 '07 #3
On Nov 12, 1:46 pm, Laszlo Nagy <gand...@shopzeus.comwrote:
KeefTM wrote:
Hello, I am getting an odd error when trying to establish an IMAP
connection:
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/
imaplib.py", line 904, in _get_response
raise self.abort("unexpected response: '%s'" % resp)
imaplib.abort: unexpected response: '220 libertydistribution.com ESMTP
CommuniGate Pro 5.0.9 is glad to see you!'
I thought 220 was the correct response, so I don't understand why I am
getting the error. Thanks!

You are connecting to an SMTP server. :-) Maybe it is using the IMAP
port? More likely you tried to connect to port 25 which is - usually -
reserved for SMTP.

Regards,

Laszlo
That's what it was. I put the wrong port number in :) Thanks!

Nov 12 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bill Sneddon | last post by:
Anyone have an example they are willing to share that shows how to use the store command in imaplib? store( message_set, command, flag_list) Alters flag dispositions for messages in mailbox. ...
0
by: Mr. Magoo | last post by:
I'm working with imaplib. I'm trying to flag (or move or copy - anything that takes a message_set as an argument) a bunch of messages with one command and am having trouble. === def...
1
by: Colin Brown | last post by:
The Python 2.3 documentation in imaplib says: Internaldate2tuple( datestr) Converts an IMAP4 INTERNALDATE string to Coordinated Universal Time. Returns a time module tuple. Time2Internaldate(...
1
by: Raghul | last post by:
I am getting this error while copying n number of messages to the folder using imaplib.What to do to copy n number of folders in mail The error i got is imaplib.error: command COPY illegal in...
0
by: Wolfgang Kohnen | last post by:
Hello out there! I am new to python and so far I like it a lot. Now I want to create some IMAP mailboxes on my cyrus imapd, with quotas and each user should be subscribed to her/his own spam...
5
by: Antoon Pardon | last post by:
This little program gives IMO a strange result. import imaplib user = "cpapen" cyr = imaplib.IMAP4("imap.vub.ac.be") cyr.login("cyrus", "cOn-A1r") rc, lst = cyr.list('""', "user/%s/*" %...
1
by: aspineux | last post by:
imaplib use exception to report errors, but some problems must be detected by checking the return value ! For example, when trying to append into a mailbox with wrong ACL, imaplib return 'NO',...
0
by: aspineux | last post by:
setacl and getacl look to be already "Cyrus" specific (according the doc), why not to extend imaplib a little bit more ? Here are some code I wrote and tested to support cyrus "expire" that...
4
by: gregpinero | last post by:
I'm trying to get a list of messages from GMAIL using it's new IMAP access. So far I've tried running this command but it just hangs. Any ideas? I figured that's the first line to run from...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.