W dniu 2015-05-28 o 23:23, Andrzej Popielewicz pisze:
* Xu Wang <xuwang...@gmail.com> [2015-05-27 22:27:00]:

Dear all,

I would like set a folder hook for postponed messages, which I hope is
run when I do "R" to change to the postponed folder.

Note that in my .muttrc I have:

set postponed="+[Gmail].Drafts"

but the hook does not seem to work. I tried many, including:

folder-hook 'Drafts' 'set editor = "vim"'

Is there a reason this is not matched by regex?

Kind regards,

Xu
For me works the following

folder-hook "imap.googlemail.com" set record ="=Sent"
folder-hook "imap.googlemail.com" set postponed = "=Drafts"

Andrzej
Well, In the first part of Your email You have claimed that preceeding hook does not work. This is why I supplied the example , which for sure works because I am using it. Your editor problem seemed to be another problem. Now it is clear , what You want.

So You want to achieve something like shown below

folder-hook "imap.googlemail.com/Drafts" set editor="vim"
folder-hook "imap.googlemail.com/Sent" set editor="pico"

Well, I am not sure if it is possible, try it out . If not ,one could try to "invent" new option

set postpone_editor="myeditor"

Andrzej

Reply via email to