recreating folder structure for imapd consumption
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hi,
I am trying to sync with a Courier server and drop files into
a local maildir, so that a dovecot instance can pick it up.
The upstream folder structure is simple:
$ ls .maildir -a
. .Trash .sent courierimapacl courierimapsubscribed
courierpop3dsizelist new
.. .drafts .spam courierimapkeywords courierimapuiddb cur
tmp
and with the exception of the courier* files, I would like to
recreate it 1:1 on my local machine.
Following the comments in the full example configuration file,
I thus tried:
[Repository local]
type = Maildir
localfolders = ~/.maildir
[Repository imap3.madduck.net]
type = IMAP
[...]
#reference = INBOX
nametrans = lambda foldername: re.sub('INBOX\.*', '.', foldername)
But this dies with
imap: imapsplit() called with input: (\Marked \HasChildren) "." "INBOX"
imap: imapsplit() returning: ['(\\Marked \\HasChildren)', '"."', '"INBOX"']
imap: imapsplit() called with input: \Marked \HasChildren
imap: imapsplit() returning: ['\\Marked', '\\HasChildren']
imap: dequote() called with input: "INBOX"
imap: dequote() returning: INBOX
imap: dequote() called with input: INBOX
maildir: _GETFOLDERS_SCANDIR STARTING. root = /home/test/.maildir, extension
= None
maildir: toppath = /home/test/.maildir
maildir: *** top of loop
maildir: dirname = .
maildir: fullname = /home/test/.maildir/.
File "/usr/lib/python2.5/os.py", line 171, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '.'
I tried special-casing the INBOX case and return '' with nametrans,
but the error stays the same (/home/test/.maildir also exists
alreadt).
And if I start using reference=INBOX or INBOX., then INBOX is simply
not synchronised.
What am I missing?
--
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
"you don't sew with a fork, so I see no reason
to eat with knitting needles."
-- miss piggy, on eating chinese food
spamtraps: madduck.bogus@xxxxxxxxxxx
-- Attached file included as plaintext by Ecartis --
-- File: digital_signature_gpg.asc
-- Desc: Digital signature (see http://martin-krafft.net/gpg/)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFH+ehHIgvIgzMMSnURApMJAKDJSecJL8OsHVznc/q92E2aKrTOCwCdH22L
WTfiRywGgG9oMNrvYP6AJyg=
=rmeV
-----END PGP SIGNATURE-----
- recreating folder structure for imapd consumption,
martin f krafft <=
|
|