<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH]: Updated compressed_folder and edit_threads patch for CVS



Hello Thomas,

 On Saturday, January 29, 2005 at 8:43:39 PM +0100, Thomas Glanzmann wrote:

> I adopted the compressed folder [...] patch
> http://wwwcip.informatik.uni-erlangen.de/~sithglan/mutt/patch-1.5.7.tg.compressed.1

    There is a little annoyance: This patch changes the folder's
timestamp in a Mutt inconsistent way. It changes mtime on each write.
This leads old 1999 archives to be dated 2005 after the faintest mail
flag change.

    I tried a muttrc workaround:

| open-hook \\.gz$ "gzip -cd '%f' > '%t' ; ret=$? ; touch --no-create 
--reference='%f' '%t' ; exit \$ret"
| close-hook \\.gz$ "gzip -c '%t' > '%f' ; ret=$? ; touch --no-create 
--reference='%t' '%f' ; exit \$ret"
| append-hook \\.gz$ "gzip -c '%t' >> '%f'"

    So that the timestamp is copied to temporary decompressed file, then
back to recompressed folder. That way, whatever operations the user
does, if Mutt decides to change mtime, it gets changed. If Mutt
preserves mtime, it is not changed.

    Perhaps something like that could go to documentation and example
Muttrc, if not to code.


Bye!    Alain.
-- 
When you want to reply to a mailing list, please avoid doing so with
Microsoft Exchange. This lacks necessary references and breaks threads.