[Dovecot] Remove leading and trailing spaces from folder names?

Ralf Hildebrandt Ralf.Hildebrandt at charite.de
Thu Jul 19 16:24:55 EEST 2012


* Ralf Hildebrandt <Ralf.Hildebrandt at charite.de>:
> * Ralf Hildebrandt <Ralf.Hildebrandt at charite.de>:
> 
> > > use imapsync ?
> > 
> > No, that doesn't work, since Exchange doesn't accept the folder names.
> 
> OK, in some cases one can use 
> 
>    --regextrans2 "s/Sent$/Sent Items/g" \
>    --regextrans2 "s/Drafts$/Entw&APw-rfe/g" \
>    --regextrans2 "s/spam$/Junk-E-Mail/g" \
>    --regextrans2 "s/(.*) $/$1/g" \
> 
> but that cannot handle leading & trailing spaces in the foldernames

in intermediate foldernames... It can fix:

"INBOX.foo "
but can't fix
"INBOX. foo. bar"

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebrandt at charite.de | http://www.charite.de
	    



More information about the dovecot mailing list