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

Re: imap function of trash patch



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

On Wednesday, October 25 at 10:35 AM, quoth Jason Helfman:
> I really don't understand the description from
> http://cedricduval.free.fr/mutt/patches/index.html#trash
>
> I have it set this way:
>
> #folder-hook . '^imap://host/Inbox/Trash'
> #folder-hook . imap://host/Inbox/Trash 'unset trash'
>
> Neither way works. And yes, I uncomment when I am testing it out.

The description he has on his webpage is for how to turn off the trash 
feature whenever you're using imap. The simplest way to do that, of 
course, is to not use the patch ;), but since you're using the 
patch...

The syntax of a folder hook is:

    folder-hook pattern action

So what his example there is doing is saying "whenever we enter any 
folder whose name starts with imap://, turn off the trash". Your 
copying seems to be a bit off, though. His example looks like this:

    folder-hook ^imap:// 'unset trash'
    |           |        `--- action
    |           `------------ pattern
    `------------------------ folder-hook

To turn it back on again when you exit an imap folder, you'd want 
commands that look like this (the order is important):

    folder-hook . 'set trash=whateveryouwant'
    folder-hook ^imap:// 'unset trash'

Hope that helps,

~Kyle
- -- 
Men think epilepsy divine, merely because they do not understand it. 
But if they called everything divine which they do not understand, 
why, there would be no end of divine things.
                                                        -- Hippocrates
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFFP6zaBkIOoMqOI14RAiGxAJ9JCH+7FTRBtxYDVjwcLHKpXhCBKgCgkJo0
CLdzQBcfSx1D/bK7m45phnQ=
=+X8X
-----END PGP SIGNATURE-----