[Dovecot] assert with zlib and (maybe) fts

Matthias Rieber ml-dovecot at zu-con.org
Wed Dec 17 18:49:27 EET 2008


Hi,

On Wed, 17 Dec 2008, Diederick van Dijk wrote:

> Matthias Rieber wrote:
>> Hi,
>> 
>> On Sun, 14 Dec 2008, Timo Sirainen wrote:
>> 
>>> On Wed, 2008-12-10 at 23:55 +0100, Matthias Rieber wrote:
>>>> Hi,
>>>> 
>>>> I compressed a folder with the following script:
>>>> 
>>>> ...
>>>> for i in *.*.*; do
>> [...]
>>>> done
>>> 
>>> You should also preserve the file's mtime there, otherwise the message's
>>> INTERNALDATE changes.
>> 
>> I change it, thanks.
>> 
>>> I'm not able to reproduce this. Could you run imap process via valgrind
>>> and show me what it logs? Like:
>> 
> <snip>
>
> Mathias,
>
> I'm a lazy person so I find your script very helpfull (meaning I don't have 
> to write it myself).
> Can you please post the adjustments to your script for preserving the 
> INTERNALDATE here ?

...
cat "$i" | bzip2 -9 > ../tmp/$i
touch -r "$i" "../tmp/$i"
if [ $? -eq 0 ]; then
...

This will set access and modifcation time of the file in tmp to the source 
reference file.

matthias



More information about the dovecot mailing list