From: SourceForge.net <no...@so...> - 2007-01-22 12:05:32
|
Bugs item #1640878, was opened at 2007-01-21 18:06 Message generated for change (Comment added) made by nikosch You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=456910&aid=1640878&group_id=49630 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None >Priority: 7 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: Nikolaus Schulz (nikosch) Summary: imap mailbox with username containing "@" character Initial Comment: 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 we...@ma... ---------------------------------------------------------------------- >Comment By: Nikolaus Schulz (nikosch) Date: 2007-01-22 13:05 Message: Logged In: YES user_id=1594781 Originator: NO Thanks for filing this bug. I'm attaching a patch which allows to backslash-escape '@' characters in IMAP usernames (and which has already been posted to the archivemail-user mailing list[1]). Note that your suggestion to split at the last '@' in the URL isn't entirely bullet-proof, since the '@' character is valid in mailbox names. I think there are not many people using archivemail with IMAP mailboxes, but this particular issue has been reported several times now, so I'm bumping it's priority a bit... Cheers, Nikolaus [1] http://sourceforge.net/mailarchive/forum.php?thread_id=31258509&forum_id=8450 File Added: archivemail-atnames-fix.diff ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=456910&aid=1640878&group_id=49630 |