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

Robert Schetterer robert at schetterer.org
Thu Jul 19 16:31:18 EEST 2012


Am 19.07.2012 15:24, schrieb Ralf Hildebrandt:
> * 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"
> 

thats a beginn, i looking to a solution too

-- 
Best Regards
MfG Robert Schetterer





More information about the dovecot mailing list