On Tue, Jun 9, 2015 at 4:00 PM, Marcelo Laia <[email protected]> wrote:
> On 09/06/15 at 02:23pm, Michael Tatge wrote:
>> FWIW,
>>
>> I ended up with these two macros:
>>
>> # extract all attachments
>> macro index,pager X '<enter-command> set my_wk=$wait_key; unset
>> wait_key<enter>\
>> <pipe-message> ripmime --paranoid -i - -d ~/tmp/attachments<enter>\
>> <enter-command> set wait_key=$my_wk<enter>' "save all attachments"
>>
>> macro attach X '<exit><enter-command> set my_wk=$wait_key; unset 
>> wait_key<enter>\
>> <pipe-message> ripmime --paranoid -i - -d ~/tmp/attachments<enter>\
>> <enter-command> set wait_key=$my_wk<enter><display-message>\
>> <view-attachments>' "save all attachments"
>>
>
>
> Hi,
>
> What is the difference between these two macros?

Hello Marcelo, from my naive understanding (so I could be wrong), the
difference is just that you can use the second macro in the attach
menu. The reason it is different is that it needs to exit, the attach
menu (back to pager menu?), then do the real work, then go back to
attach menu.

I actually wonder if the two macros could share some more code. That
is, can the attach macro call the first macro?

Kind regards,

Xu

Reply via email to