Oswald Buddenhagen
2015-04-19 09:24:46 UTC
one of the most common complaints about mbsync is the somewhat
questionalbe subfolder naming, so i'm thinking about alternatives.
the next question is whether anyone uses the Flatten option with
anything but the dot as separator? i suspect no, so i'd take away that
configurability.
suppose a mailbox named top/sub/subsub, and a new Hierarchy option:
Verbatim - verbatim folder names: top/sub/subsub
Legacy - subfolder names are prefixed with dots: top/.sub/.subsub
(default for backwards compatibility reasons)
Maildir++ - subfolder names are joined with dots and the
result is prefixed with another dot: top/.sub.subsub
(this is what the Legacy format should have been to start with)
Flatten - folder names are joined with dots: top.sub.subsub
i think it might even be a good idea to emit a warning about using the
legacy format when a subfolder is being created and the option is not
explicitly specified.
previously, i proposed allowing arbitrary name transforms based on
regular expressions, but that doesn't seem terribly useful, so i don't
think i'll ever pursue this.
objections? better ideas?
questionalbe subfolder naming, so i'm thinking about alternatives.
the next question is whether anyone uses the Flatten option with
anything but the dot as separator? i suspect no, so i'd take away that
configurability.
suppose a mailbox named top/sub/subsub, and a new Hierarchy option:
Verbatim - verbatim folder names: top/sub/subsub
Legacy - subfolder names are prefixed with dots: top/.sub/.subsub
(default for backwards compatibility reasons)
Maildir++ - subfolder names are joined with dots and the
result is prefixed with another dot: top/.sub.subsub
(this is what the Legacy format should have been to start with)
Flatten - folder names are joined with dots: top.sub.subsub
i think it might even be a good idea to emit a warning about using the
legacy format when a subfolder is being created and the option is not
explicitly specified.
previously, i proposed allowing arbitrary name transforms based on
regular expressions, but that doesn't seem terribly useful, so i don't
think i'll ever pursue this.
objections? better ideas?