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

Re: [imapsync] Multiple --delete2foldersbutnot options


From Timo Veith <timo dot veith at gmail dot com>
Subject Re: [imapsync] Multiple --delete2foldersbutnot options
Date Mon, 11 Jul 2011 16:12:04 +0200

Hello Gilles,

thank you for your reply. I know of the OR regex expression. It would
just "look" nicer, if there were only one line in the output of
imapsync saying

Not deleting Folder1 because of --delete2foldersbutnot
/^(Postausgang)|(Notizen)|(Kontakte)|(Kalender)|(Junk-E-Mail)|(Journal)|(Gesendete
Elemente)|(Gel&APY-schte
Elemente)|(Entw&APw-rfe)|(Aufgaben)|(Calendar)|(Contacts)|(Deleted
Items)|(Drafts)|(Journal)|(Junk-E-Mail)|(Notes)|(Outbox)|(Sent
Items)|(Tasks)/

for every instance of a folder that is not beeing deleted. So it's
only cosmetic.

Thanks and regards

Timo

2011/7/8 Gilles LAMIRAL <gilles dot lamiral at laposte dot net>:
> Hi,
>
>> is seems not to be possible go give the --delete2foldersbutnot
>> multiple times. Can someone confirm this?
>
> I confirm.
>
>> If it's true , that would be a candidate for the wishlist for a future
>> version of imapsync
>
> You can use an OR list with | character as separator:
>
> --delete2foldersbutnot 'Folder1|Folder2|Folder3'
>
> meaning delete2 folders on host2 but not Folder1 or Folder2 or Folder3
>
> --
> Au revoir,                             09 51 84 42 42
> Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06
>