Package: archivemail
Version: 0.7.0-1
Severity: normal

When using the parameter --pwfile, archivemail does not expand a given
~ into the $HOME of the user.

For reference here is the error message:
~$ archivemail --pwfile ~/.pw imap://[EMAIL PROTECTED]/INBOX
archivemail: pwfile ~/.pw does not exist


Fix is trivial:

--- archivemail.orig    2007-07-26 23:35:15.000000000 +0200
+++ archivemail 2007-07-26 23:37:32.000000000 +0200
@@ -1311,7 +1311,7 @@
         unexpected_error("you must provide a properly formatted "
             "IMAP connection string")
     if options.pwfile:
-        imap_password = open(options.pwfile).read().rstrip()
+       imap_password = open(os.path.expanduser(options.pwfile)).read().rstrip()
     else:
         try: 
             imap_username, imap_password = imap_username.split(':', 1)




-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages archivemail depends on:
ii  python                        2.4.4-2    An interactive high-level object-o

archivemail recommends no packages.

-- no debconf information

-- 
Achte auf Deine Gedanken! Sie sind der Anfang Deiner Taten.
                -- Chinesisches Sprichwort


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to