Andreas Krennmair:
[apps/madmutt.git] / functions.h
1 /*
2  * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
3  * 
4  *     This program is free software; you can redistribute it and/or modify
5  *     it under the terms of the GNU General Public License as published by
6  *     the Free Software Foundation; either version 2 of the License, or
7  *     (at your option) any later version.
8  * 
9  *     This program is distributed in the hope that it will be useful,
10  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *     GNU General Public License for more details.
13  * 
14  *     You should have received a copy of the GNU General Public License
15  *     along with this program; if not, write to the Free Software
16  *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
17  */ 
18
19 /*
20  * This file contains the structures needed to parse ``bind'' commands, as
21  * well as the default bindings for each menu.
22  *
23  * Notes:
24  *
25  * - If you want to bind \n or \r, use M_ENTER_S so that it will work
26  * correctly under both ncurses and S-Lang
27  *
28  * - If you need to bind a control char, use the octal value because the \cX
29  * construct does not work at this level.
30  *
31  */
32
33 struct binding_t OpGeneric[] = {
34   { "top-page",         OP_TOP_PAGE,            "H" },
35   { "next-entry",       OP_NEXT_ENTRY,          "j" },
36   { "previous-entry",   OP_PREV_ENTRY,          "k" },
37   { "bottom-page",      OP_BOTTOM_PAGE,         "L" },
38   { "refresh",          OP_REDRAW,              "\014" },
39   { "middle-page",      OP_MIDDLE_PAGE,         "M" },
40   { "search-next",      OP_SEARCH_NEXT,         "n" },
41   { "exit",             OP_EXIT,                "q" },
42   { "tag-entry",        OP_TAG,                 "t" },
43   { "next-page",        OP_NEXT_PAGE,           "z" },
44   { "previous-page",    OP_PREV_PAGE,           "Z" },
45   { "last-entry",       OP_LAST_ENTRY,          "*" },
46   { "first-entry",      OP_FIRST_ENTRY,         "=" },
47   { "enter-command",    OP_ENTER_COMMAND,       ":" },
48   { "next-line",        OP_NEXT_LINE,           ">" },
49   { "previous-line",    OP_PREV_LINE,           "<" },
50   { "half-up",          OP_HALF_UP,             "[" },
51   { "half-down",        OP_HALF_DOWN,           "]" },
52   { "help",             OP_HELP,                "?" },
53   { "tag-prefix",       OP_TAG_PREFIX,          ";" },
54   { "tag-prefix-cond",  OP_TAG_PREFIX_COND,     NULL },
55   { "end-cond",         OP_END_COND,            NULL },
56   { "shell-escape",     OP_SHELL_ESCAPE,        "!" },
57   { "select-entry",     OP_GENERIC_SELECT_ENTRY,M_ENTER_S },
58   { "search",           OP_SEARCH,              "/" },
59   { "search-reverse",   OP_SEARCH_REVERSE,      "\033/" },
60   { "search-opposite",  OP_SEARCH_OPPOSITE,     NULL },
61   { "jump",             OP_JUMP,                NULL },
62   { "current-top",      OP_CURRENT_TOP,         NULL },
63   { "current-middle",   OP_CURRENT_MIDDLE,      NULL },
64   { "current-bottom",   OP_CURRENT_BOTTOM,      NULL },
65   { "what-key",         OP_WHAT_KEY,            NULL },
66   { NULL,               0,                      NULL }
67 };
68
69 struct binding_t OpMain[] = {
70   { "create-alias",             OP_CREATE_ALIAS,                "a" },
71   { "bounce-message",           OP_BOUNCE_MESSAGE,              "b" },
72   { "change-folder",            OP_MAIN_CHANGE_FOLDER,          "c" },
73   { "change-folder-readonly",   OP_MAIN_CHANGE_FOLDER_READONLY, "\033c" },
74 #ifdef USE_NNTP
75   { "change-newsgroup",         OP_MAIN_CHANGE_GROUP,           "i" },
76   { "change-newsgroup-readonly",OP_MAIN_CHANGE_GROUP_READONLY,  "\033i" },
77 #endif
78   { "collapse-thread",          OP_MAIN_COLLAPSE_THREAD,        "\033v" },
79   { "collapse-all",             OP_MAIN_COLLAPSE_ALL,           "\033V" },
80   { "copy-message",             OP_COPY_MESSAGE,                "C" },
81   { "decode-copy",              OP_DECODE_COPY,                 "\033C" },
82   { "decode-save",              OP_DECODE_SAVE,                 "\033s" },
83   { "delete-message",           OP_DELETE,                      "d" },
84   { "delete-pattern",           OP_MAIN_DELETE_PATTERN,         "D" },
85   { "delete-thread",            OP_DELETE_THREAD,               "\004" },
86   { "delete-subthread",         OP_DELETE_SUBTHREAD,            "\033d" },
87   { "edit",                     OP_EDIT_MESSAGE,                "e" },
88   { "edit-type",                OP_EDIT_TYPE,                   "\005" },
89   { "forward-message",          OP_FORWARD_MESSAGE,             "f" },
90 #ifdef USE_NNTP
91   { "forward-to-group",         OP_FORWARD_TO_GROUP,            "\033F" },
92   { "followup-message",         OP_FOLLOWUP,                    "F" },
93   { "get-children",             OP_GET_CHILDREN,                NULL },
94   { "get-message",              OP_GET_MESSAGE,                 "\007" },
95   { "get-parent",               OP_GET_PARENT,                  "\033G" },
96   { "reconstruct-thread",       OP_RECONSTRUCT_THREAD,          NULL },
97 #endif
98   { "flag-message",             OP_FLAG_MESSAGE,                "\033f" },
99   { "group-reply",              OP_GROUP_REPLY,                 "g" },
100 #ifdef USE_POP
101   { "fetch-mail",               OP_MAIN_FETCH_MAIL,             "G" },
102 #endif
103 #ifdef USE_IMAP
104   { "imap-fetch-mail",          OP_MAIN_IMAP_FETCH,             NULL },
105 #endif
106   { "display-toggle-weed",              OP_DISPLAY_HEADERS,             "h" },
107   { "next-undeleted",           OP_MAIN_NEXT_UNDELETED,         "j" },
108   { "previous-undeleted",       OP_MAIN_PREV_UNDELETED,         "k" },
109   { "limit",                    OP_MAIN_LIMIT,                  "l" },
110   { "list-reply",               OP_LIST_REPLY,                  "L" },
111   { "mail",                     OP_MAIL,                        "m" },
112   { "toggle-new",               OP_TOGGLE_NEW,                  "N" },
113   { "toggle-write",             OP_TOGGLE_WRITE,                "%" },
114   { "next-thread",              OP_MAIN_NEXT_THREAD,            "\016" },
115   { "next-subthread",           OP_MAIN_NEXT_SUBTHREAD,         "\033n" },
116   { "purge-message",            OP_PURGE_MESSAGE,               NULL },
117   { "query",                    OP_QUERY,                       "Q" },
118   { "quit",                     OP_QUIT,                        "q" },
119   { "reply",                    OP_REPLY,                       "r" },
120   { "show-limit",               OP_MAIN_SHOW_LIMIT,             "\033l" },
121   { "sort-mailbox",             OP_SORT,                        "o" },
122   { "sort-reverse",             OP_SORT_REVERSE,                "O" },
123   { "print-message",            OP_PRINT,                       "p" },
124 #ifdef USE_NNTP
125   { "post-message",             OP_POST,                        "P" },
126 #endif
127   { "previous-thread",          OP_MAIN_PREV_THREAD,            "\020" },
128   { "previous-subthread",       OP_MAIN_PREV_SUBTHREAD,         "\033p" },
129   { "recall-message",           OP_RECALL_MESSAGE,              "R" },
130   { "read-thread",              OP_MAIN_READ_THREAD,            "\022" },
131   { "read-subthread",           OP_MAIN_READ_SUBTHREAD,         "\033r" },
132   { "resend-message",           OP_RESEND,                      "\033e" },
133   { "save-message",             OP_SAVE,                        "s" },
134   { "tag-pattern",              OP_MAIN_TAG_PATTERN,            "T" },
135   { "tag-subthread",            OP_TAG_SUBTHREAD,               NULL },
136   { "tag-thread",               OP_TAG_THREAD,                  "\033t" },
137   { "untag-pattern",            OP_MAIN_UNTAG_PATTERN,          "\024" },
138   { "undelete-message",         OP_UNDELETE,                    "u" },
139   { "undelete-pattern",         OP_MAIN_UNDELETE_PATTERN,       "U"},
140   { "undelete-subthread",       OP_UNDELETE_SUBTHREAD,          "\033u" },
141   { "undelete-thread",          OP_UNDELETE_THREAD,             "\025" },
142   { "view-attachments",         OP_VIEW_ATTACHMENTS,            "v" },
143   { "show-version",             OP_VERSION,                     "V" },
144   { "set-flag",                 OP_MAIN_SET_FLAG,               "w" },
145   { "clear-flag",               OP_MAIN_CLEAR_FLAG,             "W" },
146   { "toggle-read",              OP_TOGGLE_READ,                 "X" },
147 #ifdef USE_NNTP
148   { "catchup",                  OP_CATCHUP,                     "y" },
149 #endif
150   { "display-message",          OP_DISPLAY_MESSAGE,             M_ENTER_S },
151   { "buffy-list",               OP_BUFFY_LIST,                  "." },
152   { "sync-mailbox",             OP_MAIN_SYNC_FOLDER,            "$" },
153   { "display-address",          OP_DISPLAY_ADDRESS,             "@" },
154   { "pipe-message",             OP_PIPE,                        "|" },
155   { "next-new",                 OP_MAIN_NEXT_NEW,               NULL },
156   { "next-new-then-unread",     OP_MAIN_NEXT_NEW_THEN_UNREAD,   "\t" },
157   { "previous-new",             OP_MAIN_PREV_NEW,               NULL },
158   { "previous-new-then-unread", OP_MAIN_PREV_NEW_THEN_UNREAD,   "\033\t" },
159   { "next-unread",              OP_MAIN_NEXT_UNREAD,            NULL },
160   { "previous-unread",          OP_MAIN_PREV_UNREAD,            NULL },
161   { "parent-message",           OP_MAIN_PARENT_MESSAGE,         NULL },
162
163
164   { "extract-keys",             OP_EXTRACT_KEYS,                "\013" },
165   { "forget-passphrase",        OP_FORGET_PASSPHRASE,           "\006" },
166   { "check-traditional-pgp",    OP_CHECK_TRADITIONAL,           "\033P" },
167   { "mail-key",                 OP_MAIL_KEY,                    "\033k" },
168   { "decrypt-copy",             OP_DECRYPT_COPY,                NULL },
169   { "decrypt-save",             OP_DECRYPT_SAVE,                NULL },
170
171
172   { NULL,                       0,                              NULL }
173 };
174
175 struct binding_t OpPager[] = {
176   { "create-alias",     OP_CREATE_ALIAS,                "a" },
177   { "bounce-message",   OP_BOUNCE_MESSAGE,              "b" },
178   { "change-folder",    OP_MAIN_CHANGE_FOLDER,          "c" },
179   { "change-folder-readonly",   OP_MAIN_CHANGE_FOLDER_READONLY, "\033c" },
180 #ifdef USE_NNTP
181   { "change-newsgroup",         OP_MAIN_CHANGE_GROUP,           "i" },
182   { "change-newsgroup-readonly",OP_MAIN_CHANGE_GROUP_READONLY,  "\033i" },
183 #endif
184   { "copy-message",     OP_COPY_MESSAGE,                "C" },
185   { "decode-copy",      OP_DECODE_COPY,                 "\033C" },
186   { "delete-message",   OP_DELETE,                      "d" },
187   { "delete-thread",    OP_DELETE_THREAD,               "\004" },
188   { "delete-subthread", OP_DELETE_SUBTHREAD,            "\033d" },
189   { "edit",             OP_EDIT_MESSAGE,                "e" },
190   { "edit-type",        OP_EDIT_TYPE,                   "\005" },
191 #ifdef USE_NNTP
192   { "followup-message", OP_FOLLOWUP,                    "F" },
193   { "forward-to-group", OP_FORWARD_TO_GROUP,            "\033F" },
194 #endif
195   { "forward-message",  OP_FORWARD_MESSAGE,             "f" },
196   { "flag-message",     OP_FLAG_MESSAGE,                "\033f" },
197   { "group-reply",      OP_GROUP_REPLY,                 "g" },
198 #ifdef USE_IMAP
199   { "imap-fetch-mail",  OP_MAIN_IMAP_FETCH,             NULL },
200 #endif
201   { "display-toggle-weed",      OP_DISPLAY_HEADERS,             "h" },
202   { "next-undeleted",   OP_MAIN_NEXT_UNDELETED,         "j" },
203   { "next-entry",       OP_NEXT_ENTRY,                  "J" },
204   { "previous-undeleted",OP_MAIN_PREV_UNDELETED,        "k" },
205   { "previous-entry",   OP_PREV_ENTRY,                  "K" },
206   { "list-reply",       OP_LIST_REPLY,                  "L" },
207   { "redraw-screen",    OP_REDRAW,                      "\014" },
208   { "mail",             OP_MAIL,                        "m" },
209   { "mark-as-new",      OP_TOGGLE_NEW,                  "N" },
210   { "search-next",      OP_SEARCH_NEXT,                 "n" },
211   { "next-thread",      OP_MAIN_NEXT_THREAD,            "\016" },
212   { "next-subthread",   OP_MAIN_NEXT_SUBTHREAD,         "\033n" },
213   { "print-message",    OP_PRINT,                       "p" },
214 #ifdef USE_NNTP
215   { "post-message",     OP_POST,                        "P" },
216 #endif
217   { "previous-thread",  OP_MAIN_PREV_THREAD,            "\020" },
218   { "previous-subthread",OP_MAIN_PREV_SUBTHREAD,        "\033p" },
219   { "purge-message",    OP_PURGE_MESSAGE,               NULL },
220   { "quit",             OP_QUIT,                        "Q" },
221   { "exit",             OP_EXIT,                        "q" },
222   { "reply",            OP_REPLY,                       "r" },
223   { "recall-message",   OP_RECALL_MESSAGE,              "R" },
224   { "read-thread",      OP_MAIN_READ_THREAD,            "\022" },
225   { "read-subthread",   OP_MAIN_READ_SUBTHREAD,         "\033r" },
226   { "resend-message",   OP_RESEND,                      "\033e" },
227   { "save-message",     OP_SAVE,                        "s" },
228   { "skip-quoted",      OP_PAGER_SKIP_QUOTED,           "S" },
229   { "decode-save",      OP_DECODE_SAVE,                 "\033s" },
230   { "tag-message",      OP_TAG,                         "t" },
231   { "toggle-quoted",    OP_PAGER_HIDE_QUOTED,           "T" },
232   { "undelete-message", OP_UNDELETE,                    "u" },
233   { "undelete-subthread",OP_UNDELETE_SUBTHREAD,         "\033u" },
234   { "undelete-thread",  OP_UNDELETE_THREAD,             "\025" },
235   { "view-attachments", OP_VIEW_ATTACHMENTS,            "v" },
236   { "show-version",     OP_VERSION,                     "V" },
237   { "search-toggle",    OP_SEARCH_TOGGLE,               "\\" },
238   { "display-address",  OP_DISPLAY_ADDRESS,             "@" },
239   { "next-new",         OP_MAIN_NEXT_NEW,               NULL },
240   { "next-new-then-unread", 
241                         OP_MAIN_NEXT_NEW_THEN_UNREAD,   "\t" },
242   { "pipe-message",     OP_PIPE,                        "|" },
243   { "help",             OP_HELP,                        "?" },
244   { "next-page",        OP_NEXT_PAGE,                   " " },
245   { "previous-page",    OP_PREV_PAGE,                   "-" },
246   { "top",              OP_PAGER_TOP,                   "^" },
247   { "sync-mailbox",     OP_MAIN_SYNC_FOLDER,            "$" },
248   { "shell-escape",     OP_SHELL_ESCAPE,                "!" },
249   { "enter-command",    OP_ENTER_COMMAND,               ":" },
250   { "buffy-list",       OP_BUFFY_LIST,                  "." },
251   { "search",           OP_SEARCH,                      "/" },
252   { "search-reverse",   OP_SEARCH_REVERSE,              "\033/" },
253   { "search-opposite",  OP_SEARCH_OPPOSITE,             NULL },
254   { "next-line",        OP_NEXT_LINE,                   M_ENTER_S },
255   { "jump",             OP_JUMP,                        NULL },
256   { "next-unread",      OP_MAIN_NEXT_UNREAD,            NULL },
257   { "previous-new",     OP_MAIN_PREV_NEW,               NULL },
258   { "previous-new-then-unread",
259                         OP_MAIN_PREV_NEW_THEN_UNREAD,   NULL },
260   { "previous-unread",  OP_MAIN_PREV_UNREAD,            NULL },
261   { "half-up",          OP_HALF_UP,                     NULL },
262   { "half-down",        OP_HALF_DOWN,                   NULL },
263   { "previous-line",    OP_PREV_LINE,                   NULL },
264   { "bottom",           OP_PAGER_BOTTOM,                NULL },
265   { "parent-message",   OP_MAIN_PARENT_MESSAGE,         NULL },
266
267
268
269
270   { "check-traditional-pgp",    OP_CHECK_TRADITIONAL,   "\033P"   },
271   { "mail-key",         OP_MAIL_KEY,                    "\033k" },
272   { "extract-keys",     OP_EXTRACT_KEYS,                "\013" },
273   { "forget-passphrase",OP_FORGET_PASSPHRASE,           "\006" },
274   { "decrypt-copy",     OP_DECRYPT_COPY,                NULL },
275   { "decrypt-save",     OP_DECRYPT_SAVE,                NULL },
276
277
278   { NULL,               0,                              NULL }
279 };
280
281 struct binding_t OpAttach[] = {
282   { "bounce-message",   OP_BOUNCE_MESSAGE,              "b" },
283   { "display-toggle-weed",      OP_DISPLAY_HEADERS,     "h" },
284   { "edit-type",        OP_EDIT_TYPE,                   "\005" },
285 #ifdef USE_NNTP
286   { "followup-message", OP_FOLLOWUP,                    "F" },
287   { "forward-to-group", OP_FORWARD_TO_GROUP,            "\033F" },
288 #endif
289   { "print-entry",      OP_PRINT,                       "p" },
290   { "save-entry",       OP_SAVE,                        "s" },
291   { "pipe-entry",       OP_PIPE,                        "|" },
292   { "view-mailcap",     OP_ATTACH_VIEW_MAILCAP,         "m" },
293   { "reply",            OP_REPLY,                       "r" },
294   { "resend-message",   OP_RESEND,                      "\033e" },
295   { "group-reply",      OP_GROUP_REPLY,                 "g" },
296   { "list-reply",       OP_LIST_REPLY,                  "L" },
297   { "forward-message",  OP_FORWARD_MESSAGE,             "f" },
298   { "view-text",        OP_ATTACH_VIEW_TEXT,            "T" },
299   { "view-attach",      OP_VIEW_ATTACH,                 M_ENTER_S },
300   { "delete-entry",     OP_DELETE,                      "d" },
301   { "undelete-entry",   OP_UNDELETE,                    "u" },
302   { "collapse-parts",   OP_ATTACH_COLLAPSE,             "v" },
303
304   { "check-traditional-pgp",    OP_CHECK_TRADITIONAL,           "\033P"   },
305   { "extract-keys",             OP_EXTRACT_KEYS,                "\013" },
306   { "forget-passphrase",        OP_FORGET_PASSPHRASE,           "\006" },
307
308   { NULL,               0,                              NULL }
309 };
310
311 struct binding_t OpCompose[] = {
312   { "attach-file",      OP_COMPOSE_ATTACH_FILE,         "a" },
313   { "attach-message",   OP_COMPOSE_ATTACH_MESSAGE,      "A" },
314   { "attach-news-message",OP_COMPOSE_ATTACH_NEWS_MESSAGE,"\033a" },
315   { "edit-bcc",         OP_COMPOSE_EDIT_BCC,            "b" },
316   { "edit-cc",          OP_COMPOSE_EDIT_CC,             "c" },
317   { "copy-file",        OP_SAVE,                        "C" },
318   { "detach-file",      OP_DELETE,                      "D" },
319   { "toggle-disposition",OP_COMPOSE_TOGGLE_DISPOSITION, "\004" },
320   { "edit-description", OP_COMPOSE_EDIT_DESCRIPTION,    "d" },
321   { "edit-message",     OP_COMPOSE_EDIT_MESSAGE,        "e" },
322   { "edit-headers",     OP_COMPOSE_EDIT_HEADERS,        "E" },
323   { "edit-file",        OP_COMPOSE_EDIT_FILE,           "\030e" },
324   { "edit-encoding",    OP_COMPOSE_EDIT_ENCODING,       "\005" },
325   { "edit-from",        OP_COMPOSE_EDIT_FROM,           "\033f" },
326   { "edit-fcc",         OP_COMPOSE_EDIT_FCC,            "f" },
327   { "filter-entry",     OP_FILTER,                      "F" },
328   { "get-attachment",   OP_COMPOSE_GET_ATTACHMENT,      "G" },
329   { "display-toggle-weed",      OP_DISPLAY_HEADERS,             "h" },
330   { "ispell",           OP_COMPOSE_ISPELL,              "i" },
331   { "print-entry",      OP_PRINT,                       "l" },
332   { "edit-mime",        OP_COMPOSE_EDIT_MIME,           "m" },
333   { "new-mime",         OP_COMPOSE_NEW_MIME,            "n" },
334 #ifdef USE_NNTP
335   { "edit-newsgroups",  OP_COMPOSE_EDIT_NEWSGROUPS,     "N" },
336   { "edit-followup-to", OP_COMPOSE_EDIT_FOLLOWUP_TO,    "o" },
337   { "edit-x-comment-to",OP_COMPOSE_EDIT_X_COMMENT_TO,   "x" },
338 #endif
339   { "postpone-message", OP_COMPOSE_POSTPONE_MESSAGE,    "P" },
340   { "edit-reply-to",    OP_COMPOSE_EDIT_REPLY_TO,       "r" },
341   { "rename-file",      OP_COMPOSE_RENAME_FILE,         "R" },
342   { "edit-subject",     OP_COMPOSE_EDIT_SUBJECT,        "s" },
343   { "edit-to",          OP_COMPOSE_EDIT_TO,             "t" },
344   { "edit-type",        OP_EDIT_TYPE,                   "\024" },
345   { "write-fcc",        OP_COMPOSE_WRITE_MESSAGE,       "w" },
346   { "toggle-unlink",    OP_COMPOSE_TOGGLE_UNLINK,       "u" },
347   { "toggle-recode",    OP_COMPOSE_TOGGLE_RECODE,       NULL },
348   { "update-encoding",  OP_COMPOSE_UPDATE_ENCODING,     "U" },
349   { "view-attach",      OP_VIEW_ATTACH,                 M_ENTER_S },
350   { "send-message",     OP_COMPOSE_SEND_MESSAGE,        "y" },
351   { "pipe-entry",       OP_PIPE,                        "|" },
352
353   { "attach-key",       OP_COMPOSE_ATTACH_KEY,          "\033k" },
354   { "pgp-menu",         OP_COMPOSE_PGP_MENU,            "p"     },
355
356   { "forget-passphrase",OP_FORGET_PASSPHRASE,           "\006"  },
357
358   { "smime-menu",       OP_COMPOSE_SMIME_MENU,          "S"     },
359
360 #ifdef MIXMASTER
361   { "mix",              OP_COMPOSE_MIX,                 "M" },
362 #endif
363   
364   { NULL,               0,                              NULL }
365 };
366
367 struct binding_t OpPost[] = {
368   { "delete-entry",     OP_DELETE,      "d" },
369   { "undelete-entry",   OP_UNDELETE,    "u" },
370   { NULL,               0,              NULL }
371 };
372
373 struct binding_t OpAlias[] = {
374   { "delete-entry",     OP_DELETE,      "d" },
375   { "undelete-entry",   OP_UNDELETE,    "u" },
376   { NULL,               0,              NULL }
377 };
378   
379
380 /* The file browser */
381 struct binding_t OpBrowser[] = {
382   { "change-dir",       OP_CHANGE_DIRECTORY,    "c" },
383   { "display-filename", OP_BROWSER_TELL,        "@" },
384   { "enter-mask",       OP_ENTER_MASK,          "m" },
385   { "sort",             OP_SORT,                "o" },
386   { "sort-reverse",     OP_SORT_REVERSE,        "O" },
387   { "select-new",       OP_BROWSER_NEW_FILE,    "N" },
388   { "check-new",        OP_CHECK_NEW,           NULL },
389   { "toggle-mailboxes", OP_TOGGLE_MAILBOXES,    "\t" },
390 #ifdef USE_NNTP
391   { "reload-active",    OP_LOAD_ACTIVE,         "g"},
392   { "subscribe-pattern", OP_SUBSCRIBE_PATTERN,  "S" },
393   { "unsubscribe-pattern", OP_UNSUBSCRIBE_PATTERN, "U" },
394   { "catchup",          OP_CATCHUP,             "y" },
395   { "uncatchup",        OP_UNCATCHUP,           "Y" },
396 #endif
397   { "view-file",        OP_BROWSER_VIEW_FILE,   " " },
398   { "buffy-list",       OP_BUFFY_LIST,          "." },
399 #ifdef USE_IMAP
400   { "create-mailbox",   OP_CREATE_MAILBOX,      "C" },
401   { "delete-mailbox",   OP_DELETE_MAILBOX,      "d" },
402 #endif
403 #if defined USE_IMAP || defined USE_NNTP
404   { "subscribe",        OP_BROWSER_SUBSCRIBE,   "s" },
405   { "unsubscribe",      OP_BROWSER_UNSUBSCRIBE, "u" },
406 #endif
407 #ifdef USE_IMAP
408   { "toggle-subscribed", OP_BROWSER_TOGGLE_LSUB, "T" },
409 #endif
410   { NULL,               0,                      NULL }
411 };
412
413 /* External Query Menu */
414 struct binding_t OpQuery[] = {
415   { "create-alias",     OP_CREATE_ALIAS,        "a" },
416   { "mail",             OP_MAIL,                "m" },
417   { "query",            OP_QUERY,               "Q" },
418   { "query-append",     OP_QUERY_APPEND,        "A" },
419   { NULL,               0,                      NULL }
420 };
421
422 struct binding_t OpEditor[] = {
423   { "bol",              OP_EDITOR_BOL,                  "\001" },
424   { "backward-char",    OP_EDITOR_BACKWARD_CHAR,        "\002" },
425   { "backward-word",    OP_EDITOR_BACKWARD_WORD,        "\033b"},
426   { "capitalize-word",  OP_EDITOR_CAPITALIZE_WORD,      "\033c"},
427   { "downcase-word",    OP_EDITOR_DOWNCASE_WORD,        "\033l"},
428   { "upcase-word",      OP_EDITOR_UPCASE_WORD,          "\033u"},
429   { "delete-char",      OP_EDITOR_DELETE_CHAR,          "\004" },
430   { "eol",              OP_EDITOR_EOL,                  "\005" },
431   { "forward-char",     OP_EDITOR_FORWARD_CHAR,         "\006" },
432   { "forward-word",     OP_EDITOR_FORWARD_WORD,         "\033f"},
433   { "backspace",        OP_EDITOR_BACKSPACE,            "\010" },
434   { "kill-eol",         OP_EDITOR_KILL_EOL,             "\013" },
435   { "kill-eow",         OP_EDITOR_KILL_EOW,             "\033d"},
436   { "kill-line",        OP_EDITOR_KILL_LINE,            "\025" },
437   { "quote-char",       OP_EDITOR_QUOTE_CHAR,           "\026" },
438   { "kill-word",        OP_EDITOR_KILL_WORD,            "\027" },
439   { "complete",         OP_EDITOR_COMPLETE,             "\t"   },
440   { "complete-query",   OP_EDITOR_COMPLETE_QUERY,       "\024" },
441   { "buffy-cycle",      OP_EDITOR_BUFFY_CYCLE,          " "    },
442   { "history-up",       OP_EDITOR_HISTORY_UP,           NULL   },
443   { "history-down",     OP_EDITOR_HISTORY_DOWN,         NULL   },
444   { "transpose-chars",  OP_EDITOR_TRANSPOSE_CHARS,      NULL   },
445   { NULL,               0,                              NULL   }
446 };
447
448
449
450 struct binding_t OpPgp[] = {
451   { "verify-key",       OP_VERIFY_KEY,          "c" },
452   { "view-name",        OP_VIEW_ID,             "%" },
453   { NULL,               0,                              NULL }
454 };
455
456 /* Don't know an useful key binding yet. But. just in case, adding this already */
457 struct binding_t OpSmime[] = {
458   { NULL,       0,      NULL }
459 };
460
461 #ifdef MIXMASTER
462 struct binding_t OpMix[] = {
463   { "accept",           OP_MIX_USE,     M_ENTER_S },
464   { "append",           OP_MIX_APPEND,  "a"       },
465   { "insert",           OP_MIX_INSERT,  "i"       },
466   { "delete",           OP_MIX_DELETE,  "d"       },
467   { "chain-prev",       OP_MIX_CHAIN_PREV, "<left>" },
468   { "chain-next",       OP_MIX_CHAIN_NEXT, "<right>" },
469   { NULL,               0,              NULL }
470 };
471 #endif /* MIXMASTER */