[Dovecot] Add S=<size> to maildirfile
Hi,
in some old Maildir/ I have file without the S=<size> in file name.
Is possibile to add the size to the file name with some tools like doveadm?
Are there other methods to update these file?
Thanks
-- Alessio Cecchi is: @ ILS -> http://www.linux.it/~alessice/ on LinkedIn -> http://www.linkedin.com/in/alessice Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/ @ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
Am 18.10.2012 16:29, schrieb Alessio Cecchi:
Hi,
in some old Maildir/ I have file without the S=<size> in file name.
Is possibile to add the size to the file name with some tools like doveadm?
Are there other methods to update these file?
Thanks
perhaps this helps for ideas
http://wiki2.dovecot.org/HowTo/RefilterMail
perhaps you can use dsync also , but i am really not sure if this works
http://wiki2.dovecot.org/Tools/Dsync
however its easy to test
Best Regards MfG Robert Schetterer
sys4 AG Franziskanerstraße 15 Telefon +49 89 3090 4664 81669 München Telefax +49 89 3090 4666
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Joerg Heidrich
On 10/18/2012 11:22 AM, Robert Schetterer wrote:
Am 18.10.2012 16:29, schrieb Alessio Cecchi:
Hi,
in some old Maildir/ I have file without the S=<size> in file name.
Is possibile to add the size to the file name with some tools like doveadm?
Are there other methods to update these file?
Thanks
perhaps this helps for ideas
http://wiki2.dovecot.org/HowTo/RefilterMail
perhaps you can use dsync also , but i am really not sure if this works
http://wiki2.dovecot.org/Tools/Dsync
however its easy to test
Dsync would be the best option, I believe. It should work moving from maildir to maildir, but if necessary, you could also convert it to another format and then put it back to maildir.
Jack
Il 18/10/2012 18:49, Jack Bates ha scritto:
On 10/18/2012 11:22 AM, Robert Schetterer wrote:
Am 18.10.2012 16:29, schrieb Alessio Cecchi:
Hi,
in some old Maildir/ I have file without the S=<size> in file name.
Is possibile to add the size to the file name with some tools like doveadm?
Are there other methods to update these file?
Thanks
perhaps this helps for ideas
http://wiki2.dovecot.org/HowTo/RefilterMail
perhaps you can use dsync also , but i am really not sure if this works
http://wiki2.dovecot.org/Tools/Dsync
however its easy to test
Dsync would be the best option, I believe. It should work moving from maildir to maildir, but if necessary, you could also convert it to another format and then put it back to maildir.
Jack
Dsync could be a good idea but I need to "sync" maildir to the same maildir and I don't think can be done this.
My situation is a Maildir/cur/ with old email files without S=size and, in the same Maildir/cur/, some files with S=size.
Can doveadm do this?
-- Alessio Cecchi is: @ ILS -> http://www.linux.it/~alessice/ on LinkedIn -> http://www.linkedin.com/in/alessice Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/ @ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
On 19.10.2012, at 19.12, Alessio Cecchi wrote:
in some old Maildir/ I have file without the S=<size> in file name.
Is possibile to add the size to the file name with some tools like doveadm?
Not directly.
Are there other methods to update these file?
A script that renames the files and updates dovecot-uidlist. No such script exists as far as I know.
You could also switch from Maildir++ quota to dict-file quota and this wouldn't be a problem.
Dsync could be a good idea but I need to "sync" maildir to the same maildir and I don't think can be done this.
You could sync to another maildir, rm -rf the original, sync back to original.
My situation is a Maildir/cur/ with old email files without S=size and, in the same Maildir/cur/, some files with S=size.
Can doveadm do this?
No.
participants (4)
-
Alessio Cecchi
-
Jack Bates
-
Robert Schetterer
-
Timo Sirainen