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

Re: delete duplicated mails



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday, September 23 at 02:20 PM, quoth Wilkinson, Alex:
>mmm, i liked the idea of this folder-hook so i tried it out.
>Is it meant to automagically delete duplicate threads ? If so
>the following folder-hook did sweet-fa for me :(

"sweet-fa"? That's a new one to me...

>   folder-hook . \
>        "set sort=reverse-threads ;\
>         set sort_aux=last-date-received ;\
>         set duplicate_threads=yes ;\
>         push '<collapse-all>' ;\
>         push '<delete-pattern>~=<enter>' ;\
>         set index_format='%3N %4C %Z %{%b %d} %-15.15F (%4c) %?M?%M> ?%s' ;\
>         set display_filter='t-prot -acelmtS -Mmutt --spass'"

Well, one problem I see is that delete-pattern only works on messages 
you can *see*. After you <collapse-all>, the pattern won't match 
anything that has been collapsed. So swap those two lines: delete 
things before you collapse-all.

~Kyle
- -- 
All we have to decide is what to do with the time that is given us.
                                                    -- Gandalf the Grey
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkjY7N8ACgkQBkIOoMqOI143DQCgi/i9h0++v4i+7+ri+Nn3Y6DK
x4oAoLUyjzhkSF/XqEkwtbj5VY7zg6Ut
=2r0Z
-----END PGP SIGNATURE-----