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   { "sidebar-scroll-up",        OP_SIDEBAR_SCROLL_UP, NULL },
173   { "sidebar-scroll-down",      OP_SIDEBAR_SCROLL_DOWN, NULL },
174   { "sidebar-next",     OP_SIDEBAR_NEXT, NULL },
175   { "sidebar-prev",     OP_SIDEBAR_PREV, NULL },
176   { "sidebar-open", OP_SIDEBAR_OPEN, NULL },
177   { NULL,                       0,                              NULL }
178 };
179
180 struct binding_t OpPager[] = {
181   { "create-alias",     OP_CREATE_ALIAS,                "a" },
182   { "bounce-message",   OP_BOUNCE_MESSAGE,              "b" },
183   { "change-folder",    OP_MAIN_CHANGE_FOLDER,          "c" },
184   { "change-folder-readonly",   OP_MAIN_CHANGE_FOLDER_READONLY, "\033c" },
185 #ifdef USE_NNTP
186   { "change-newsgroup",         OP_MAIN_CHANGE_GROUP,           "i" },
187   { "change-newsgroup-readonly",OP_MAIN_CHANGE_GROUP_READONLY,  "\033i" },
188 #endif
189   { "copy-message",     OP_COPY_MESSAGE,                "C" },
190   { "decode-copy",      OP_DECODE_COPY,                 "\033C" },
191   { "delete-message",   OP_DELETE,                      "d" },
192   { "delete-thread",    OP_DELETE_THREAD,               "\004" },
193   { "delete-subthread", OP_DELETE_SUBTHREAD,            "\033d" },
194   { "edit",             OP_EDIT_MESSAGE,                "e" },
195   { "edit-type",        OP_EDIT_TYPE,                   "\005" },
196 #ifdef USE_NNTP
197   { "followup-message", OP_FOLLOWUP,                    "F" },
198   { "forward-to-group", OP_FORWARD_TO_GROUP,            "\033F" },
199 #endif
200   { "forward-message",  OP_FORWARD_MESSAGE,             "f" },
201   { "flag-message",     OP_FLAG_MESSAGE,                "\033f" },
202   { "group-reply",      OP_GROUP_REPLY,                 "g" },
203 #ifdef USE_IMAP
204   { "imap-fetch-mail",  OP_MAIN_IMAP_FETCH,             NULL },
205 #endif
206   { "display-toggle-weed",      OP_DISPLAY_HEADERS,             "h" },
207   { "next-undeleted",   OP_MAIN_NEXT_UNDELETED,         "j" },
208   { "next-entry",       OP_NEXT_ENTRY,                  "J" },
209   { "previous-undeleted",OP_MAIN_PREV_UNDELETED,        "k" },
210   { "previous-entry",   OP_PREV_ENTRY,                  "K" },
211   { "list-reply",       OP_LIST_REPLY,                  "L" },
212   { "redraw-screen",    OP_REDRAW,                      "\014" },
213   { "mail",             OP_MAIL,                        "m" },
214   { "mark-as-new",      OP_TOGGLE_NEW,                  "N" },
215   { "search-next",      OP_SEARCH_NEXT,                 "n" },
216   { "next-thread",      OP_MAIN_NEXT_THREAD,            "\016" },
217   { "next-subthread",   OP_MAIN_NEXT_SUBTHREAD,         "\033n" },
218   { "print-message",    OP_PRINT,                       "p" },
219 #ifdef USE_NNTP
220   { "post-message",     OP_POST,                        "P" },
221 #endif
222   { "previous-thread",  OP_MAIN_PREV_THREAD,            "\020" },
223   { "previous-subthread",OP_MAIN_PREV_SUBTHREAD,        "\033p" },
224   { "purge-message",    OP_PURGE_MESSAGE,               NULL },
225   { "quit",             OP_QUIT,                        "Q" },
226   { "exit",             OP_EXIT,                        "q" },
227   { "reply",            OP_REPLY,                       "r" },
228   { "recall-message",   OP_RECALL_MESSAGE,              "R" },
229   { "read-thread",      OP_MAIN_READ_THREAD,            "\022" },
230   { "read-subthread",   OP_MAIN_READ_SUBTHREAD,         "\033r" },
231   { "resend-message",   OP_RESEND,                      "\033e" },
232   { "save-message",     OP_SAVE,                        "s" },
233   { "skip-quoted",      OP_PAGER_SKIP_QUOTED,           "S" },
234   { "decode-save",      OP_DECODE_SAVE,                 "\033s" },
235   { "tag-message",      OP_TAG,                         "t" },
236   { "toggle-quoted",    OP_PAGER_HIDE_QUOTED,           "T" },
237   { "undelete-message", OP_UNDELETE,                    "u" },
238   { "undelete-subthread",OP_UNDELETE_SUBTHREAD,         "\033u" },
239   { "undelete-thread",  OP_UNDELETE_THREAD,             "\025" },
240   { "view-attachments", OP_VIEW_ATTACHMENTS,            "v" },
241   { "show-version",     OP_VERSION,                     "V" },
242   { "search-toggle",    OP_SEARCH_TOGGLE,               "\\" },
243   { "display-address",  OP_DISPLAY_ADDRESS,             "@" },
244   { "next-new",         OP_MAIN_NEXT_NEW,               NULL },
245   { "next-new-then-unread", 
246                         OP_MAIN_NEXT_NEW_THEN_UNREAD,   "\t" },
247   { "pipe-message",     OP_PIPE,                        "|" },
248   { "help",             OP_HELP,                        "?" },
249   { "next-page",        OP_NEXT_PAGE,                   " " },
250   { "previous-page",    OP_PREV_PAGE,                   "-" },
251   { "top",              OP_PAGER_TOP,                   "^" },
252   { "sync-mailbox",     OP_MAIN_SYNC_FOLDER,            "$" },
253   { "shell-escape",     OP_SHELL_ESCAPE,                "!" },
254   { "enter-command",    OP_ENTER_COMMAND,               ":" },
255   { "buffy-list",       OP_BUFFY_LIST,                  "." },
256   { "search",           OP_SEARCH,                      "/" },
257   { "search-reverse",   OP_SEARCH_REVERSE,              "\033/" },
258   { "search-opposite",  OP_SEARCH_OPPOSITE,             NULL },
259   { "next-line",        OP_NEXT_LINE,                   M_ENTER_S },
260   { "jump",             OP_JUMP,                        NULL },
261   { "next-unread",      OP_MAIN_NEXT_UNREAD,            NULL },
262   { "previous-new",     OP_MAIN_PREV_NEW,               NULL },
263   { "previous-new-then-unread",
264                         OP_MAIN_PREV_NEW_THEN_UNREAD,   NULL },
265   { "previous-unread",  OP_MAIN_PREV_UNREAD,            NULL },
266   { "half-up",          OP_HALF_UP,                     NULL },
267   { "half-down",        OP_HALF_DOWN,                   NULL },
268   { "previous-line",    OP_PREV_LINE,                   NULL },
269   { "bottom",           OP_PAGER_BOTTOM,                NULL },
270   { "parent-message",   OP_MAIN_PARENT_MESSAGE,         NULL },
271
272
273
274
275   { "check-traditional-pgp",    OP_CHECK_TRADITIONAL,   "\033P"   },
276   { "mail-key",         OP_MAIL_KEY,                    "\033k" },
277   { "extract-keys",     OP_EXTRACT_KEYS,                "\013" },
278   { "forget-passphrase",OP_FORGET_PASSPHRASE,           "\006" },
279   { "decrypt-copy",     OP_DECRYPT_COPY,                NULL },
280   { "decrypt-save",     OP_DECRYPT_SAVE,                NULL },
281
282
283   { "sidebar-scroll-up",        OP_SIDEBAR_SCROLL_UP, NULL },
284   { "sidebar-scroll-down",      OP_SIDEBAR_SCROLL_DOWN, NULL },
285   { "sidebar-next",     OP_SIDEBAR_NEXT, NULL },
286   { "sidebar-prev",     OP_SIDEBAR_PREV, NULL },
287   { "sidebar-open", OP_SIDEBAR_OPEN, NULL },
288   { NULL,               0,                              NULL }
289 };
290
291 struct binding_t OpAttach[] = {
292   { "bounce-message",   OP_BOUNCE_MESSAGE,              "b" },
293   { "display-toggle-weed",      OP_DISPLAY_HEADERS,     "h" },
294   { "edit-type",        OP_EDIT_TYPE,                   "\005" },
295 #ifdef USE_NNTP
296   { "followup-message", OP_FOLLOWUP,                    "F" },
297   { "forward-to-group", OP_FORWARD_TO_GROUP,            "\033F" },
298 #endif
299   { "print-entry",      OP_PRINT,                       "p" },
300   { "save-entry",       OP_SAVE,                        "s" },
301   { "pipe-entry",       OP_PIPE,                        "|" },
302   { "view-mailcap",     OP_ATTACH_VIEW_MAILCAP,         "m" },
303   { "reply",            OP_REPLY,                       "r" },
304   { "resend-message",   OP_RESEND,                      "\033e" },
305   { "group-reply",      OP_GROUP_REPLY,                 "g" },
306   { "list-reply",       OP_LIST_REPLY,                  "L" },
307   { "forward-message",  OP_FORWARD_MESSAGE,             "f" },
308   { "view-text",        OP_ATTACH_VIEW_TEXT,            "T" },
309   { "view-attach",      OP_VIEW_ATTACH,                 M_ENTER_S },
310   { "delete-entry",     OP_DELETE,                      "d" },
311   { "undelete-entry",   OP_UNDELETE,                    "u" },
312   { "collapse-parts",   OP_ATTACH_COLLAPSE,             "v" },
313
314   { "check-traditional-pgp",    OP_CHECK_TRADITIONAL,           "\033P"   },
315   { "extract-keys",             OP_EXTRACT_KEYS,                "\013" },
316   { "forget-passphrase",        OP_FORGET_PASSPHRASE,           "\006" },
317
318   { NULL,               0,                              NULL }
319 };
320
321 struct binding_t OpCompose[] = {
322   { "attach-file",      OP_COMPOSE_ATTACH_FILE,         "a" },
323   { "attach-message",   OP_COMPOSE_ATTACH_MESSAGE,      "A" },
324   { "attach-news-message",OP_COMPOSE_ATTACH_NEWS_MESSAGE,"\033a" },
325   { "edit-bcc",         OP_COMPOSE_EDIT_BCC,            "b" },
326   { "edit-cc",          OP_COMPOSE_EDIT_CC,             "c" },
327   { "copy-file",        OP_SAVE,                        "C" },
328   { "detach-file",      OP_DELETE,                      "D" },
329   { "toggle-disposition",OP_COMPOSE_TOGGLE_DISPOSITION, "\004" },
330   { "edit-description", OP_COMPOSE_EDIT_DESCRIPTION,    "d" },
331   { "edit-message",     OP_COMPOSE_EDIT_MESSAGE,        "e" },
332   { "edit-headers",     OP_COMPOSE_EDIT_HEADERS,        "E" },
333   { "edit-file",        OP_COMPOSE_EDIT_FILE,           "\030e" },
334   { "edit-encoding",    OP_COMPOSE_EDIT_ENCODING,       "\005" },
335   { "edit-from",        OP_COMPOSE_EDIT_FROM,           "\033f" },
336   { "edit-fcc",         OP_COMPOSE_EDIT_FCC,            "f" },
337   { "filter-entry",     OP_FILTER,                      "F" },
338   { "get-attachment",   OP_COMPOSE_GET_ATTACHMENT,      "G" },
339   { "display-toggle-weed",      OP_DISPLAY_HEADERS,             "h" },
340   { "ispell",           OP_COMPOSE_ISPELL,              "i" },
341   { "print-entry",      OP_PRINT,                       "l" },
342   { "edit-mime",        OP_COMPOSE_EDIT_MIME,           "m" },
343   { "new-mime",         OP_COMPOSE_NEW_MIME,            "n" },
344 #ifdef USE_NNTP
345   { "edit-newsgroups",  OP_COMPOSE_EDIT_NEWSGROUPS,     "N" },
346   { "edit-followup-to", OP_COMPOSE_EDIT_FOLLOWUP_TO,    "o" },
347   { "edit-x-comment-to",OP_COMPOSE_EDIT_X_COMMENT_TO,   "x" },
348 #endif
349   { "postpone-message", OP_COMPOSE_POSTPONE_MESSAGE,    "P" },
350   { "edit-reply-to",    OP_COMPOSE_EDIT_REPLY_TO,       "r" },
351   { "rename-file",      OP_COMPOSE_RENAME_FILE,         "R" },
352   { "edit-subject",     OP_COMPOSE_EDIT_SUBJECT,        "s" },
353   { "edit-to",          OP_COMPOSE_EDIT_TO,             "t" },
354   { "edit-type",        OP_EDIT_TYPE,                   "\024" },
355   { "write-fcc",        OP_COMPOSE_WRITE_MESSAGE,       "w" },
356   { "toggle-unlink",    OP_COMPOSE_TOGGLE_UNLINK,       "u" },
357   { "toggle-recode",    OP_COMPOSE_TOGGLE_RECODE,       NULL },
358   { "update-encoding",  OP_COMPOSE_UPDATE_ENCODING,     "U" },
359   { "view-attach",      OP_VIEW_ATTACH,                 M_ENTER_S },
360   { "send-message",     OP_COMPOSE_SEND_MESSAGE,        "y" },
361   { "pipe-entry",       OP_PIPE,                        "|" },
362
363   { "attach-key",       OP_COMPOSE_ATTACH_KEY,          "\033k" },
364   { "pgp-menu",         OP_COMPOSE_PGP_MENU,            "p"     },
365
366   { "forget-passphrase",OP_FORGET_PASSPHRASE,           "\006"  },
367
368   { "smime-menu",       OP_COMPOSE_SMIME_MENU,          "S"     },
369
370 #ifdef MIXMASTER
371   { "mix",              OP_COMPOSE_MIX,                 "M" },
372 #endif
373   
374   { NULL,               0,                              NULL }
375 };
376
377 struct binding_t OpPost[] = {
378   { "delete-entry",     OP_DELETE,      "d" },
379   { "undelete-entry",   OP_UNDELETE,    "u" },
380   { NULL,               0,              NULL }
381 };
382
383 struct binding_t OpAlias[] = {
384   { "delete-entry",     OP_DELETE,      "d" },
385   { "undelete-entry",   OP_UNDELETE,    "u" },
386   { NULL,               0,              NULL }
387 };
388   
389
390 /* The file browser */
391 struct binding_t OpBrowser[] = {
392   { "change-dir",       OP_CHANGE_DIRECTORY,    "c" },
393   { "display-filename", OP_BROWSER_TELL,        "@" },
394   { "enter-mask",       OP_ENTER_MASK,          "m" },
395   { "sort",             OP_SORT,                "o" },
396   { "sort-reverse",     OP_SORT_REVERSE,        "O" },
397   { "select-new",       OP_BROWSER_NEW_FILE,    "N" },
398   { "check-new",        OP_CHECK_NEW,           NULL },
399   { "toggle-mailboxes", OP_TOGGLE_MAILBOXES,    "\t" },
400 #ifdef USE_NNTP
401   { "reload-active",    OP_LOAD_ACTIVE,         "g"},
402   { "subscribe-pattern", OP_SUBSCRIBE_PATTERN,  "S" },
403   { "unsubscribe-pattern", OP_UNSUBSCRIBE_PATTERN, "U" },
404   { "catchup",          OP_CATCHUP,             "y" },
405   { "uncatchup",        OP_UNCATCHUP,           "Y" },
406 #endif
407   { "view-file",        OP_BROWSER_VIEW_FILE,   " " },
408   { "buffy-list",       OP_BUFFY_LIST,          "." },
409 #ifdef USE_IMAP
410   { "create-mailbox",   OP_CREATE_MAILBOX,      "C" },
411   { "delete-mailbox",   OP_DELETE_MAILBOX,      "d" },
412 #endif
413 #if defined USE_IMAP || defined USE_NNTP
414   { "subscribe",        OP_BROWSER_SUBSCRIBE,   "s" },
415   { "unsubscribe",      OP_BROWSER_UNSUBSCRIBE, "u" },
416 #endif
417 #ifdef USE_IMAP
418   { "toggle-subscribed", OP_BROWSER_TOGGLE_LSUB, "T" },
419 #endif
420   { NULL,               0,                      NULL }
421 };
422
423 /* External Query Menu */
424 struct binding_t OpQuery[] = {
425   { "create-alias",     OP_CREATE_ALIAS,        "a" },
426   { "mail",             OP_MAIL,                "m" },
427   { "query",            OP_QUERY,               "Q" },
428   { "query-append",     OP_QUERY_APPEND,        "A" },
429   { NULL,               0,                      NULL }
430 };
431
432 struct binding_t OpEditor[] = {
433   { "bol",              OP_EDITOR_BOL,                  "\001" },
434   { "backward-char",    OP_EDITOR_BACKWARD_CHAR,        "\002" },
435   { "backward-word",    OP_EDITOR_BACKWARD_WORD,        "\033b"},
436   { "capitalize-word",  OP_EDITOR_CAPITALIZE_WORD,      "\033c"},
437   { "downcase-word",    OP_EDITOR_DOWNCASE_WORD,        "\033l"},
438   { "upcase-word",      OP_EDITOR_UPCASE_WORD,          "\033u"},
439   { "delete-char",      OP_EDITOR_DELETE_CHAR,          "\004" },
440   { "eol",              OP_EDITOR_EOL,                  "\005" },
441   { "forward-char",     OP_EDITOR_FORWARD_CHAR,         "\006" },
442   { "forward-word",     OP_EDITOR_FORWARD_WORD,         "\033f"},
443   { "backspace",        OP_EDITOR_BACKSPACE,            "\010" },
444   { "kill-eol",         OP_EDITOR_KILL_EOL,             "\013" },
445   { "kill-eow",         OP_EDITOR_KILL_EOW,             "\033d"},
446   { "kill-line",        OP_EDITOR_KILL_LINE,            "\025" },
447   { "quote-char",       OP_EDITOR_QUOTE_CHAR,           "\026" },
448   { "kill-word",        OP_EDITOR_KILL_WORD,            "\027" },
449   { "complete",         OP_EDITOR_COMPLETE,             "\t"   },
450   { "complete-query",   OP_EDITOR_COMPLETE_QUERY,       "\024" },
451   { "buffy-cycle",      OP_EDITOR_BUFFY_CYCLE,          " "    },
452   { "history-up",       OP_EDITOR_HISTORY_UP,           NULL   },
453   { "history-down",     OP_EDITOR_HISTORY_DOWN,         NULL   },
454   { "transpose-chars",  OP_EDITOR_TRANSPOSE_CHARS,      NULL   },
455   { NULL,               0,                              NULL   }
456 };
457
458
459
460 struct binding_t OpPgp[] = {
461   { "verify-key",       OP_VERIFY_KEY,          "c" },
462   { "view-name",        OP_VIEW_ID,             "%" },
463   { NULL,               0,                              NULL }
464 };
465
466 /* Don't know an useful key binding yet. But. just in case, adding this already */
467 struct binding_t OpSmime[] = {
468   { NULL,       0,      NULL }
469 };
470
471 #ifdef MIXMASTER
472 struct binding_t OpMix[] = {
473   { "accept",           OP_MIX_USE,     M_ENTER_S },
474   { "append",           OP_MIX_APPEND,  "a"       },
475   { "insert",           OP_MIX_INSERT,  "i"       },
476   { "delete",           OP_MIX_DELETE,  "d"       },
477   { "chain-prev",       OP_MIX_CHAIN_PREV, "<left>" },
478   { "chain-next",       OP_MIX_CHAIN_NEXT, "<right>" },
479   { NULL,               0,              NULL }
480 };
481 #endif /* MIXMASTER */