[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [imapsync] Diff for mangling of INBOX folder with unix hierarchy seperator


From Gilles LAMIRAL <gilles dot lamiral at laposte dot net>
Subject Re: [imapsync] Diff for mangling of INBOX folder with unix hierarchy seperator
Date Sun, 15 Feb 2009 03:43:52 +0100

Hi Stefan,

> our source server (Cyrus IMAPD) runs with unixhierarchysep, thus our
> top-level folder is named "INBOX/" instead of "INBOX.".
> 
> This folder is copied to "INBOX/INBOX" on the destination server.
> To prevent this to happen -- which does not happen when the source
> server's top-level folders are named "INBOX.", the attached patch
> fixes this behaviour.

You're nice with me, this behaviour is a bug.
Patch applied.
Thanks very much.

> =========================================
> --- imapsync.orig       2009-01-09 15:44:02.000000000 +0100
> +++ imapsync    2009-01-15 11:40:13.000000000 +0100
> @@ -1229,7 +1229,7 @@
>         $debug and print "inverted   separators : [$t_fold]\n";
>         # Adding the prefix supplied by namespace or the --prefix2 option
>         $t_fold = $t_prefix . $t_fold
> -         unless(($t_prefix eq "INBOX.") and ($t_fold =~ m/^INBOX$/i));
> +         unless(($t_prefix eq "INBOX" . $t_sep) and ($t_fold =~ m/^INBOX$/i));
>         $debug and print "added   target prefix : [$t_fold]\n";
> 
>         # Transforming the folder name by the --regextrans2 option(s)
> =========================================
> 
> --
> Stefan Schmidt          jsj at jsj dot dyndns dot org
> 
> ---- imapsync mailing-list ----
> unsubscribe, mailto:imapsync-unsubscribe at listes dot linux-france dot org
> imapsync,    http://linux-france.org/prj/imapsync/

-- 
Au revoir,                               02 99 64 31 77
Gilles Lamiral. France, Chavagne (35310) 06 20 79 76 06