# Macros
#
+# KP_Enter -> Enter
+#macro generic,pager,editor <F79> <Enter>
+# KP_Home -> Home
+macro generic,pager,editor <F84> <Home>
+# KP_Up -> Up
+macro generic,pager,editor \1074 <Up>
+# KP_Next -> PageUp
+macro generic,pager,editor <F85> <PageUp>
+# KP_Left -> Left
+macro generic,pager,editor \1075 <Left>
+# KP_Right -> Right
+macro generic,pager,editor \1076 <Right>
+# KP_End -> End
+macro generic,pager,editor <F87> <End>
+# KP_Down -> Down
+macro generic,pager,editor \1077 <Down>
+# KP_Prev -> PageDown
+macro generic,pager,editor <F88> <PageDown>
+
macro index C \
<Home><change-folder><Enter> \
"Go to the first folder with unread messages"
<save-message>!<Enter> \
"Move current message to inbox"
-macro index,pager <Esc>h \
+macro index,pager,attach <Esc>h \
":auto_view text/html<Enter>" \
"View HTML attachments"
-macro index,pager <Esc>H \
+macro index,pager,attach <Esc>H \
":unauto_view text/html<Enter>" \
"Don't show HTML attachments"
<exit><Home><change-folder>=sent-mail<Enter> \
"Go to sent-mail"
+macro index,pager \cV "<show-version>" \
+ "Show version"
+
+macro index,pager V "v/text/html<Enter>V" \
+ "View the 1st html attachment in a web browser"
+macro attach V "<save-entry>~/tmp/_xxx.html<Enter>n<shell-escape>webbrowser -n ~/tmp/_xxx.html; exec rm ~/tmp/_xxx.html<Enter><exit>" \
+ "View html attachment in a web browser"
+
# Go to python mailbox
macro index Y \
<Home><change-folder>=lists/python<Enter> \
<exit><Home><change-folder>=lists/python<Enter> \
"Go to python"
-# Go to STCnet "Atlas"/STM mailboxes
-macro index \ca \
- <Home><change-folder>=stcnet<Enter> \
- "Go to stcnet inbox"
-macro pager,attach \ca \
- <exit><Home><change-folder>=stcnet<Enter> \
- "Go to stcnet inbox"
-macro index A \
- <Home><change-folder>=sent-stcnet<Enter> \
- "Go to sent-stcnet"
-macro pager,attach A \
- <exit><Home><change-folder>=sent-stcnet<Enter> \
- "Go to sent-stcnet"
-
# Recode base64 to 8bit, html to plain text, mustdie-1251 to koi8-r, etc.
macro index,pager \
<Esc>m "<pipe-message>mimedecode | less<Enter>" \