#20 imap mailbox with username containing "@" character

closed-duplicate
None
7
2007-01-22
2007-01-21
Anonymous
No

Hi,

imap mailbox specifications that contain the "@" character in the username field causes the spec parsing to fail. This is due to the changes made in version 0.7.0 in order to get more flexibility in the password handling of imap mailboxes.

In versions before 0.7.0, the username substring was separated from the imap server substring by searching for an ":" in the specification. In version 0.7.0 this was replaced by the search for the "@" character, which causes the parser bug.

I don't know much about python, but performing a reverse split instead of a 'normal' split in line 1308 seems to work:
"imap_str.split('@', 1)" -> "imap_str.rsplit('@', 1)"

I believe this to be stable because the last "@" character always specifies the separator between user name and server as long as the imap server configuration does not make use of this character as the folder separator...

Best regards,

Markus Pister
web@markus-pister.de

Discussion

  • Nikolaus Schulz

    Nikolaus Schulz - 2007-01-22
    • priority: 5 --> 7
    • assigned_to: nobody --> nikosch
    • status: open --> closed-duplicate
     
  • Nikolaus Schulz

    Nikolaus Schulz - 2007-01-22

    Logged In: YES
    user_id=1594781
    Originator: NO

    Closing since it's a duplicate of #1640878.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks