Hello, I want to sync mail from an IMAP server to a subfolder on my local machine. The goal is to e.g. get the remote folder /lists/isync synced to ~/Maildir/.work.lists.isync/ and the root folder (INBOX?) to ~/Maildir/.work/
I failed to create a .mbsyncrc to accomplish that and wonder if this is
a shortcoming of mbsync or if this is just a bad idea?!
Looking at the code I think this could be done if in maildir_join_path()
with the following change:
diff --git a/src/drv_maildir.c b/src/drv_maildir.c
index c4dd6c7de181..21f209ea364d 100644
--- a/src/drv_maildir.c
+++ b/src/drv_maildir.c
@@ -180,10 +180,8 @@ maildir_join_path( maildir_store_conf_t *conf, int
in_inbox, const char *box )
out = nfmalloc( pl + bl + n + 1 );
memcpy( out, prefix, pl );
p = out + pl;
- if (conf->sub_style == SUB_MAILDIRPP) {
- *p++ = '/';
+ if (conf->sub_style == SUB_MAILDIRPP)
*p++ = '.';
- }
while ((c = *box++)) {
if (c == '/') {
switch (conf->sub_style) {
. One downside is that this results in a changed behaviour for probably
quite a few users who then need to append a / to their Inbox to get the
old behaviour.
I didn't test but assume with this I could do:
MaildirStore work-local
Inbox ~/Maildir/.work
Subfolders Maildir++
Looking forward to feedback.
Best regards
Uwe
signature.asc
Description: PGP signature
_______________________________________________ isync-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/isync-devel
