Package: offlineimap
Version: 6.0.3
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hiya,

i have a layout something like the following:

account1
 INBOX
 foo
 bar
account2
 INBOX
 foo
 bar

which then syncs locally to nested subfolders, where INBOX has been mapped to
the folder for the account.  i.e.:

account1
 foo
 bar
account2
 foo
 bar

i'm using the following nametrans:

nametrans = lambda foldername: re.sub('^INBOX$', '.', foldername)

which kinda works (see below) but what i really want is:

nametrans = lambda foldername: re.sub('^INBOX$', '', foldername)

so that the inbox mail goes into the account folder.  however, this results
in some strange errors in the code when '' is passed to mkdir:

maildir:   foldername = .
maildir: _GETFOLDERS_SCANDIR RETURNING [<snip>...
maildir: makefolder called with arg ''
maildir: Is dir? False
maildir: makefolder: calling makedirs 

it seems that '' can't be used currently in nametrans, even though it's
also given in the offlineimap conf example.  '.' works, but has very strange
effects in combination with [mbnames] (you get mailboxes +account/. ,
which then looks strange in the mutt ui)

am i correct in assuming that the code calling makedirs just needs to skip
dir creation for empty folder names?  if you feel that this isn't acceptable
for some reason, how about introducing a nametrans to the mbnames section?


  sean

- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages offlineimap depends on:
ii  python                        2.5.2-2    An interactive high-level object-o
ii  python-support                0.8.6      automated rebuilding support for P

offlineimap recommends no packages.

Versions of packages offlineimap suggests:
pn  python-kerberos               <none>     (no description available)

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFI1sD6ynjLPm522B0RAgPuAJ0TTe5meC4IKFd8l+sVOMUpZP30NQCePKzD
wpWmLqifhGqovq8OBIeRiw8=
=rhD5
-----END PGP SIGNATURE-----



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

Reply via email to