Project

General

Profile

Actions

Defect #9769

open

receive_imap rake task hangs if it couldn’t connect to the IMAP server

Added by aruseni magiku almost 13 years ago. Updated almost 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Email receiving
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

If the receive_imap rake task is not able to connect to the IMAP server, it just hangs, instead of returning an error message (e.g. you can try to connect to GMail without using SSL, on the standard port 143).

And when it connects (in case with GMail, when you change the arguments to use SSL), it can return you the “Invalid Credentials”, even if the correct password was specified. The reason of such behavior is some symbols, such as “$”. The rake task only transmits the first part of the password, before such symbols. And if you screen them with backslashes (“\$”), the password starts to work (and the rake task works correctly).

For GMail, I was able to find this out using stunnel (which connected to GMail via SSL, and opened a port on localhost to make unsecure connections to the tunnel). Then I used localhost as the IMAP server in the rake task, and captured the password using dsniff -i lo.

Actions

Also available in: Atom PDF