Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237538 - net-mail/offlineimap-4.0.13 (and v6.0.0) authentication problem
Summary: net-mail/offlineimap-4.0.13 (and v6.0.0) authentication problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL: http://software.complete.org/software...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-13 04:21 UTC by Nicolas Sebrecht
Modified: 2008-10-15 17:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
% offlineimap -d imap | grep DEBUG (debug.backtrace,2.74 KB, text/plain)
2008-09-13 04:22 UTC, Nicolas Sebrecht
Details
% cat ~/.offlineimaprc (offlineimaprc,410 bytes, text/plain)
2008-09-13 04:23 UTC, Nicolas Sebrecht
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Sebrecht 2008-09-13 04:21:15 UTC
I have some authentication trouble with offlineimap. Please note that the settings in my ~/.offlineimaprc are correct (I'm using the same parameters with others mail clients like sylpheed and checked the .offlineimaprc).
You can refer to the URL to see the bug report on the official original project.

Reproducible: Always

Steps to Reproduce:
1. offlineimap
2.
3.

Actual Results:  
Ask for the password in interactive mode after the authentication error : "user not found". Then, typing the _same_ password (as given to the "remotepass" parameter in the configuration file) the authentication success.

Expected Results:  
Offlineimap should just authenticate in the non-interactive mode.

% offlineimap -d imap | grep 'DEBUG'
DEBUG[imap]:   56:27.10 imaplib version 2.58
DEBUG[imap]:   56:27.10 new IMAP4 connection, tag=JHOD
DEBUG[imap]:   56:27.16 < * OK IMAP4 server ready
DEBUG[imap]:   56:27.16 	matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' IMAP4 server ready', 'IMAP4 server ready')
DEBUG[imap]:   56:27.16 untagged_responses[OK] 0 += ["IMAP4 server ready"]
DEBUG[imap]:   56:27.16 > JHOD0 CAPABILITY
DEBUG[imap]:   56:27.21 < * CAPABILITY IMAP4 IMAP4rev1 NAMESPACE UIDPLUS CHILDREN X-NETSCAPE
DEBUG[imap]:   56:27.21 	matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' => ('CAPABILITY', ' IMAP4 IMAP4rev1 NAMESPACE UIDPLUS CHILDREN X-NETSCAPE', 'IMAP4 IMAP4rev1 NAMESPACE UIDPLUS CHILDREN X-NETSCAPE')
DEBUG[imap]:   56:27.21 untagged_responses[CAPABILITY] 0 += ["IMAP4 IMAP4rev1 NAMESPACE UIDPLUS CHILDREN X-NETSCAPE"]
DEBUG[imap]:   56:27.21 < JHOD0 OK Completed
DEBUG[imap]:   56:27.21 	matched r'(?P<tag>JHOD\d+) (?P<type>[A-Z]+) (?P<data>.*)' => ('JHOD0', 'OK', 'Completed')
DEBUG[imap]:   56:27.21 untagged_responses[CAPABILITY] => ['IMAP4 IMAP4rev1 NAMESPACE UIDPLUS CHILDREN X-NETSCAPE']
DEBUG[imap]:   56:27.21 CAPABILITIES: ('IMAP4', 'IMAP4REV1', 'NAMESPACE', 'UIDPLUS', 'CHILDREN', 'X-NETSCAPE')
DEBUG[imap]: Attempting plain authentication
DEBUG[imap]:   56:27.21 > JHOD1 LOGIN ni.s "******
DEBUG[imap]:   56:30.07 < JHOD1 NO Login failed: user not found
DEBUG[imap]:   56:30.07 	matched r'(?P<tag>JHOD\d+) (?P<type>[A-Z]+) (?P<data>.*)' => ('JHOD1', 'NO', 'Login failed: user not found')
DEBUG[imap]:   56:30.07 NO response: Login failed: user not found
DEBUG[imap]:   56:30.27 imaplib version 2.58
DEBUG[imap]:   56:30.27 new IMAP4 connection, tag=NDCE
DEBUG[imap]:   56:30.33 < * OK IMAP4 server ready
DEBUG[imap]:   56:30.33 	matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' => ('OK', ' IMAP4 server ready', 'IMAP4 server ready')
DEBUG[imap]:   56:30.33 untagged_responses[OK] 0 += ["IMAP4 server ready"]
DEBUG[imap]:   56:30.33 > NDCE0 CAPABILITY
DEBUG[imap]:   56:30.39 < * CAPABILITY IMAP4 IMAP4rev1 NAMESPACE UIDPLUS CHILDREN X-NETSCAPE
DEBUG[imap]:   56:30.39 	matched r'\* (?P<type>[A-Z-]+)( (?P<data>.*))?' => ('CAPABILITY', ' IMAP4 IMAP4rev1 NAMESPACE UIDPLUS CHILDREN X-NETSCAPE', 'IMAP4 IMAP4rev1 NAMESPACE UIDPLUS CHILDREN X-NETSCAPE')
DEBUG[imap]:   56:30.39 untagged_responses[CAPABILITY] 0 += ["IMAP4 IMAP4rev1 NAMESPACE UIDPLUS CHILDREN X-NETSCAPE"]
DEBUG[imap]:   56:30.39 < NDCE0 OK Completed
DEBUG[imap]:   56:30.39 	matched r'(?P<tag>NDCE\d+) (?P<type>[A-Z]+) (?P<data>.*)' => ('NDCE0', 'OK', 'Completed')
DEBUG[imap]:   56:30.39 untagged_responses[CAPABILITY] => ['IMAP4 IMAP4rev1 NAMESPACE UIDPLUS CHILDREN X-NETSCAPE']
DEBUG[imap]:   56:30.39 CAPABILITIES: ('IMAP4', 'IMAP4REV1', 'NAMESPACE', 'UIDPLUS', 'CHILDREN', 'X-NETSCAPE')
DEBUG[imap]: Attempting plain authentication
Comment 1 Nicolas Sebrecht 2008-09-13 04:22:28 UTC
Created attachment 165314 [details]
% offlineimap -d imap | grep DEBUG
Comment 2 Nicolas Sebrecht 2008-09-13 04:23:32 UTC
Created attachment 165316 [details]
% cat ~/.offlineimaprc
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2008-10-06 16:39:56 UTC
So it works when you type the password in the second time?  But not the first?

That's wierd, are you sure the password is correct in the rc file?
Comment 4 Nicolas Sebrecht 2008-10-15 17:58:03 UTC
(In reply to comment #3)

> That's wierd, are you sure the password is correct in the rc file?

Yes, it was.

Removing all the commentaries fixed this bug. Weird...