Package: archivemail
Version: 0.7.2-9
Severity: normal

If I supply a password file and my username has an @ sign the parser
incorrectly splits the IMAP url.

For example this works (correctly parsing the IMAP url and asking for a
password):

archivemail -d 180 --delete -pwfile -n
imaps://"b...@example.com":@mail.example.com/INBOX

This however does not (we receive an IMAP error due to the bad parse):

archivemail -d 180 --delete --pwfile="mypassword.pwd" -n
imaps://"b...@example.com":@mail.example.com/INBOX

In this case the username attempted is "bob" and the IMAP server is
"example....@mail.example.com".

I've played around a bit with forming the IMAP connection string
differently, but it doesn't make a difference. The offending code is a
little complex with it's regex approach, so I thought it best to leave
it to the author to make a call on the fix.

-- System Information:
Debian Release: 6.0.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages archivemail depends on:
ii  python                  2.6.6-3+squeeze6 interactive high-level object-orie
ii  python-support          1.0.10           automated rebuilding support for P

archivemail recommends no packages.

archivemail suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to