]> git.llucax.com Git - software/mutt-debian.git/blob - functions.h
removing an article form the Description of mutt-patched to make lintian happy
[software/mutt-debian.git] / functions.h
1 /*
2  * Copyright (C) 1996-2000,2002 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 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  * - The magic "map:" comments define how the map will be called in the
32  * manual. Lines starting with "**" will be included in the manual.
33  *
34  */
35
36 #ifdef _MAKEDOC
37 # include "config.h"
38 # include "doc/makedoc-defs.h"
39 #endif
40
41 struct binding_t OpGeneric[] = { /* map: generic */
42   /*
43   ** <para>
44   ** The <emphasis>generic</emphasis> menu is not a real menu, but specifies common functions
45   ** (such as movement) available in all menus except for <emphasis>pager</emphasis> and
46   ** <emphasis>editor</emphasis>.  Changing settings for this menu will affect the default
47   ** bindings for all menus (except as noted).
48   ** </para>
49   */
50   { "top-page",         OP_TOP_PAGE,            "H" },
51   { "next-entry",       OP_NEXT_ENTRY,          "j" },
52   { "previous-entry",   OP_PREV_ENTRY,          "k" },
53   { "bottom-page",      OP_BOTTOM_PAGE,         "L" },
54   { "refresh",          OP_REDRAW,              "\014" },
55   { "middle-page",      OP_MIDDLE_PAGE,         "M" },
56   { "search-next",      OP_SEARCH_NEXT,         "n" },
57   { "exit",             OP_EXIT,                "q" },
58   { "tag-entry",        OP_TAG,                 "t" },
59   { "next-page",        OP_NEXT_PAGE,           "z" },
60   { "previous-page",    OP_PREV_PAGE,           "Z" },
61   { "last-entry",       OP_LAST_ENTRY,          "*" },
62   { "first-entry",      OP_FIRST_ENTRY,         "=" },
63   { "enter-command",    OP_ENTER_COMMAND,       ":" },
64   { "next-line",        OP_NEXT_LINE,           ">" },
65   { "previous-line",    OP_PREV_LINE,           "<" },
66   { "half-up",          OP_HALF_UP,             "[" },
67   { "half-down",        OP_HALF_DOWN,           "]" },
68   { "help",             OP_HELP,                "?" },
69   { "tag-prefix",       OP_TAG_PREFIX,          ";" },
70   { "tag-prefix-cond",  OP_TAG_PREFIX_COND,     NULL },
71   { "end-cond",         OP_END_COND,            NULL },
72   { "shell-escape",     OP_SHELL_ESCAPE,        "!" },
73   { "select-entry",     OP_GENERIC_SELECT_ENTRY,M_ENTER_S },
74   { "search",           OP_SEARCH,              "/" },
75   { "search-reverse",   OP_SEARCH_REVERSE,      "\033/" },
76   { "search-opposite",  OP_SEARCH_OPPOSITE,     NULL },
77   { "jump",             OP_JUMP,                NULL },
78   { "current-top",      OP_CURRENT_TOP,         NULL },
79   { "current-middle",   OP_CURRENT_MIDDLE,      NULL },
80   { "current-bottom",   OP_CURRENT_BOTTOM,      NULL },
81   { "what-key",         OP_WHAT_KEY,            NULL },
82   { NULL,               0,                      NULL }
83 };
84
85 struct binding_t OpMain[] = { /* map: index */
86   { "create-alias",             OP_CREATE_ALIAS,                "a" },
87   { "bounce-message",           OP_BOUNCE_MESSAGE,              "b" },
88   { "break-thread",             OP_MAIN_BREAK_THREAD,           "#" },
89   { "change-folder",            OP_MAIN_CHANGE_FOLDER,          "c" },
90   { "change-folder-readonly",   OP_MAIN_CHANGE_FOLDER_READONLY, "\033c" },
91   { "next-unread-mailbox",      OP_MAIN_NEXT_UNREAD_MAILBOX,    NULL },
92   { "collapse-thread",          OP_MAIN_COLLAPSE_THREAD,        "\033v" },
93   { "collapse-all",             OP_MAIN_COLLAPSE_ALL,           "\033V" },
94   { "copy-message",             OP_COPY_MESSAGE,                "C" },
95   { "decode-copy",              OP_DECODE_COPY,                 "\033C" },
96   { "decode-save",              OP_DECODE_SAVE,                 "\033s" },
97   { "delete-message",           OP_DELETE,                      "d" },
98   { "delete-pattern",           OP_MAIN_DELETE_PATTERN,         "D" },
99   { "delete-thread",            OP_DELETE_THREAD,               "\004" },
100   { "delete-subthread",         OP_DELETE_SUBTHREAD,            "\033d" },
101   { "edit",                     OP_EDIT_MESSAGE,                "e" },
102   { "edit-type",                OP_EDIT_TYPE,                   "\005" },
103   { "forward-message",          OP_FORWARD_MESSAGE,             "f" },
104   { "flag-message",             OP_FLAG_MESSAGE,                "F" },
105   { "group-reply",              OP_GROUP_REPLY,                 "g" },
106 #ifdef USE_POP
107   { "fetch-mail",               OP_MAIN_FETCH_MAIL,             "G" },
108 #endif
109 #ifdef USE_IMAP
110   { "imap-fetch-mail",          OP_MAIN_IMAP_FETCH,             NULL },
111   { "imap-logout-all",          OP_MAIN_IMAP_LOGOUT_ALL,        NULL },
112 #endif
113   { "display-toggle-weed",              OP_DISPLAY_HEADERS,             "h" },
114   { "next-undeleted",           OP_MAIN_NEXT_UNDELETED,         "j" },
115   { "previous-undeleted",       OP_MAIN_PREV_UNDELETED,         "k" },
116   { "limit",                    OP_MAIN_LIMIT,                  "l" },
117   { "link-threads",             OP_MAIN_LINK_THREADS,           "&" },
118   { "list-reply",               OP_LIST_REPLY,                  "L" },
119   { "mail",                     OP_MAIL,                        "m" },
120   { "toggle-new",               OP_TOGGLE_NEW,                  "N" },
121   { "toggle-write",             OP_TOGGLE_WRITE,                "%" },
122   { "next-thread",              OP_MAIN_NEXT_THREAD,            "\016" },
123   { "next-subthread",           OP_MAIN_NEXT_SUBTHREAD,         "\033n" },
124   { "query",                    OP_QUERY,                       "Q" },
125   { "quit",                     OP_QUIT,                        "q" },
126   { "reply",                    OP_REPLY,                       "r" },
127   { "show-limit",               OP_MAIN_SHOW_LIMIT,             "\033l" },
128   { "sort-mailbox",             OP_SORT,                        "o" },
129   { "sort-reverse",             OP_SORT_REVERSE,                "O" },
130   { "print-message",            OP_PRINT,                       "p" },
131   { "previous-thread",          OP_MAIN_PREV_THREAD,            "\020" },
132   { "previous-subthread",       OP_MAIN_PREV_SUBTHREAD,         "\033p" },
133   { "recall-message",           OP_RECALL_MESSAGE,              "R" },
134   { "read-thread",              OP_MAIN_READ_THREAD,            "\022" },
135   { "read-subthread",           OP_MAIN_READ_SUBTHREAD,         "\033r" },
136   { "resend-message",           OP_RESEND,                      "\033e" },
137   { "save-message",             OP_SAVE,                        "s" },
138   { "tag-pattern",              OP_MAIN_TAG_PATTERN,            "T" },
139   { "tag-subthread",            OP_TAG_SUBTHREAD,               NULL },
140   { "tag-thread",               OP_TAG_THREAD,                  "\033t" },
141   { "untag-pattern",            OP_MAIN_UNTAG_PATTERN,          "\024" },
142   { "undelete-message",         OP_UNDELETE,                    "u" },
143   { "undelete-pattern",         OP_MAIN_UNDELETE_PATTERN,       "U"},
144   { "undelete-subthread",       OP_UNDELETE_SUBTHREAD,          "\033u" },
145   { "undelete-thread",          OP_UNDELETE_THREAD,             "\025" },
146   { "view-attachments",         OP_VIEW_ATTACHMENTS,            "v" },
147   { "show-version",             OP_VERSION,                     "V" },
148   { "set-flag",                 OP_MAIN_SET_FLAG,               "w" },
149   { "clear-flag",               OP_MAIN_CLEAR_FLAG,             "W" },
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,         "P" },
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[] = { /* map: pager */
176   { "break-thread",     OP_MAIN_BREAK_THREAD,           "#" },
177   { "create-alias",     OP_CREATE_ALIAS,                "a" },
178   { "bounce-message",   OP_BOUNCE_MESSAGE,              "b" },
179   { "change-folder",    OP_MAIN_CHANGE_FOLDER,          "c" },
180   { "change-folder-readonly",   OP_MAIN_CHANGE_FOLDER_READONLY, "\033c" },
181   { "next-unread-mailbox",      OP_MAIN_NEXT_UNREAD_MAILBOX, NULL },
182   { "copy-message",     OP_COPY_MESSAGE,                "C" },
183   { "decode-copy",      OP_DECODE_COPY,                 "\033C" },
184   { "delete-message",   OP_DELETE,                      "d" },
185   { "delete-thread",    OP_DELETE_THREAD,               "\004" },
186   { "delete-subthread", OP_DELETE_SUBTHREAD,            "\033d" },
187   { "set-flag",         OP_MAIN_SET_FLAG,               "w" },
188   { "clear-flag",       OP_MAIN_CLEAR_FLAG,             "W" },
189   { "edit",             OP_EDIT_MESSAGE,                "e" },
190   { "edit-type",        OP_EDIT_TYPE,                   "\005" },
191   { "forward-message",  OP_FORWARD_MESSAGE,             "f" },
192   { "flag-message",     OP_FLAG_MESSAGE,                "F" },
193   { "group-reply",      OP_GROUP_REPLY,                 "g" },
194 #ifdef USE_IMAP
195   { "imap-fetch-mail",  OP_MAIN_IMAP_FETCH,             NULL },
196   { "imap-logout-all",  OP_MAIN_IMAP_LOGOUT_ALL,        NULL },
197 #endif
198   { "display-toggle-weed",      OP_DISPLAY_HEADERS,             "h" },
199   { "next-undeleted",   OP_MAIN_NEXT_UNDELETED,         "j" },
200   { "next-entry",       OP_NEXT_ENTRY,                  "J" },
201   { "previous-undeleted",OP_MAIN_PREV_UNDELETED,        "k" },
202   { "previous-entry",   OP_PREV_ENTRY,                  "K" },
203   { "link-threads",     OP_MAIN_LINK_THREADS,           "&" },
204   { "list-reply",       OP_LIST_REPLY,                  "L" },
205   { "redraw-screen",    OP_REDRAW,                      "\014" },
206   { "mail",             OP_MAIL,                        "m" },
207   { "mark-as-new",      OP_TOGGLE_NEW,                  "N" },
208   { "search-next",      OP_SEARCH_NEXT,                 "n" },
209   { "next-thread",      OP_MAIN_NEXT_THREAD,            "\016" },
210   { "next-subthread",   OP_MAIN_NEXT_SUBTHREAD,         "\033n" },
211   { "sort-mailbox",     OP_SORT,                        "o" },
212   { "sort-reverse",     OP_SORT_REVERSE,                "O" },
213   { "print-message",    OP_PRINT,                       "p" },
214   { "previous-thread",  OP_MAIN_PREV_THREAD,            "\020" },
215   { "previous-subthread",OP_MAIN_PREV_SUBTHREAD,        "\033p" },
216   { "quit",             OP_QUIT,                        "Q" },
217   { "exit",             OP_EXIT,                        "q" },
218   { "reply",            OP_REPLY,                       "r" },
219   { "recall-message",   OP_RECALL_MESSAGE,              "R" },
220   { "read-thread",      OP_MAIN_READ_THREAD,            "\022" },
221   { "read-subthread",   OP_MAIN_READ_SUBTHREAD,         "\033r" },
222   { "resend-message",   OP_RESEND,                      "\033e" },
223   { "save-message",     OP_SAVE,                        "s" },
224   { "skip-quoted",      OP_PAGER_SKIP_QUOTED,           "S" },
225   { "decode-save",      OP_DECODE_SAVE,                 "\033s" },
226   { "tag-message",      OP_TAG,                         "t" },
227   { "toggle-quoted",    OP_PAGER_HIDE_QUOTED,           "T" },
228   { "undelete-message", OP_UNDELETE,                    "u" },
229   { "undelete-subthread",OP_UNDELETE_SUBTHREAD,         "\033u" },
230   { "undelete-thread",  OP_UNDELETE_THREAD,             "\025" },
231   { "view-attachments", OP_VIEW_ATTACHMENTS,            "v" },
232   { "show-version",     OP_VERSION,                     "V" },
233   { "search-toggle",    OP_SEARCH_TOGGLE,               "\\" },
234   { "display-address",  OP_DISPLAY_ADDRESS,             "@" },
235   { "next-new",         OP_MAIN_NEXT_NEW,               NULL },
236   { "next-new-then-unread", 
237                         OP_MAIN_NEXT_NEW_THEN_UNREAD,   "\t" },
238   { "pipe-message",     OP_PIPE,                        "|" },
239   { "help",             OP_HELP,                        "?" },
240   { "next-page",        OP_NEXT_PAGE,                   " " },
241   { "previous-page",    OP_PREV_PAGE,                   "-" },
242   { "top",              OP_PAGER_TOP,                   "^" },
243   { "sync-mailbox",     OP_MAIN_SYNC_FOLDER,            "$" },
244   { "shell-escape",     OP_SHELL_ESCAPE,                "!" },
245   { "enter-command",    OP_ENTER_COMMAND,               ":" },
246   { "buffy-list",       OP_BUFFY_LIST,                  "." },
247   { "search",           OP_SEARCH,                      "/" },
248   { "search-reverse",   OP_SEARCH_REVERSE,              "\033/" },
249   { "search-opposite",  OP_SEARCH_OPPOSITE,             NULL },
250   { "next-line",        OP_NEXT_LINE,                   M_ENTER_S },
251   { "jump",             OP_JUMP,                        NULL },
252   { "next-unread",      OP_MAIN_NEXT_UNREAD,            NULL },
253   { "previous-new",     OP_MAIN_PREV_NEW,               NULL },
254   { "previous-new-then-unread",
255                         OP_MAIN_PREV_NEW_THEN_UNREAD,   NULL },
256   { "previous-unread",  OP_MAIN_PREV_UNREAD,            NULL },
257   { "half-up",          OP_HALF_UP,                     NULL },
258   { "half-down",        OP_HALF_DOWN,                   NULL },
259   { "previous-line",    OP_PREV_LINE,                   NULL },
260   { "bottom",           OP_PAGER_BOTTOM,                NULL },
261   { "parent-message",   OP_MAIN_PARENT_MESSAGE,         "P" },
262
263
264
265
266   { "check-traditional-pgp",    OP_CHECK_TRADITIONAL,   "\033P"   },
267   { "mail-key",         OP_MAIL_KEY,                    "\033k" },
268   { "extract-keys",     OP_EXTRACT_KEYS,                "\013" },
269   { "forget-passphrase",OP_FORGET_PASSPHRASE,           "\006" },
270   { "decrypt-copy",     OP_DECRYPT_COPY,                NULL },
271   { "decrypt-save",     OP_DECRYPT_SAVE,                NULL },
272
273   { "what-key",         OP_WHAT_KEY,            NULL },
274
275   { NULL,               0,                              NULL }
276 };
277
278 struct binding_t OpAttach[] = { /* map: attachment */
279   { "bounce-message",   OP_BOUNCE_MESSAGE,              "b" },
280   { "display-toggle-weed",      OP_DISPLAY_HEADERS,     "h" },
281   { "edit-type",        OP_EDIT_TYPE,                   "\005" },
282   { "print-entry",      OP_PRINT,                       "p" },
283   { "save-entry",       OP_SAVE,                        "s" },
284   { "pipe-entry",       OP_PIPE,                        "|" },
285   { "view-mailcap",     OP_ATTACH_VIEW_MAILCAP,         "m" },
286   { "reply",            OP_REPLY,                       "r" },
287   { "resend-message",   OP_RESEND,                      "\033e" },
288   { "group-reply",      OP_GROUP_REPLY,                 "g" },
289   { "list-reply",       OP_LIST_REPLY,                  "L" },
290   { "forward-message",  OP_FORWARD_MESSAGE,             "f" },
291   { "view-text",        OP_ATTACH_VIEW_TEXT,            "T" },
292   { "view-attach",      OP_VIEW_ATTACH,                 M_ENTER_S },
293   { "delete-entry",     OP_DELETE,                      "d" },
294   { "undelete-entry",   OP_UNDELETE,                    "u" },
295   { "collapse-parts",   OP_ATTACH_COLLAPSE,             "v" },
296
297   { "check-traditional-pgp",    OP_CHECK_TRADITIONAL,           "\033P"   },
298   { "extract-keys",             OP_EXTRACT_KEYS,                "\013" },
299   { "forget-passphrase",        OP_FORGET_PASSPHRASE,           "\006" },
300
301   { NULL,               0,                              NULL }
302 };
303
304 struct binding_t OpCompose[] = { /* map: compose */
305   { "attach-file",      OP_COMPOSE_ATTACH_FILE,         "a" },
306   { "attach-message",   OP_COMPOSE_ATTACH_MESSAGE,      "A" },
307   { "edit-bcc",         OP_COMPOSE_EDIT_BCC,            "b" },
308   { "edit-cc",          OP_COMPOSE_EDIT_CC,             "c" },
309   { "copy-file",        OP_SAVE,                        "C" },
310   { "detach-file",      OP_DELETE,                      "D" },
311   { "toggle-disposition",OP_COMPOSE_TOGGLE_DISPOSITION, "\004" },
312   { "edit-description", OP_COMPOSE_EDIT_DESCRIPTION,    "d" },
313   { "edit-message",     OP_COMPOSE_EDIT_MESSAGE,        "e" },
314   { "edit-headers",     OP_COMPOSE_EDIT_HEADERS,        "E" },
315   { "edit-file",        OP_COMPOSE_EDIT_FILE,           "\030e" },
316   { "edit-encoding",    OP_COMPOSE_EDIT_ENCODING,       "\005" },
317   { "edit-from",        OP_COMPOSE_EDIT_FROM,           "\033f" },
318   { "edit-fcc",         OP_COMPOSE_EDIT_FCC,            "f" },
319   { "filter-entry",     OP_FILTER,                      "F" },
320   { "get-attachment",   OP_COMPOSE_GET_ATTACHMENT,      "G" },
321   { "display-toggle-weed",      OP_DISPLAY_HEADERS,             "h" },
322   { "ispell",           OP_COMPOSE_ISPELL,              "i" },
323   { "print-entry",      OP_PRINT,                       "l" },
324   { "edit-mime",        OP_COMPOSE_EDIT_MIME,           "m" },
325   { "new-mime",         OP_COMPOSE_NEW_MIME,            "n" },
326   { "postpone-message", OP_COMPOSE_POSTPONE_MESSAGE,    "P" },
327   { "edit-reply-to",    OP_COMPOSE_EDIT_REPLY_TO,       "r" },
328   { "rename-file",      OP_COMPOSE_RENAME_FILE,         "R" },
329   { "edit-subject",     OP_COMPOSE_EDIT_SUBJECT,        "s" },
330   { "edit-to",          OP_COMPOSE_EDIT_TO,             "t" },
331   { "edit-type",        OP_EDIT_TYPE,                   "\024" },
332   { "write-fcc",        OP_COMPOSE_WRITE_MESSAGE,       "w" },
333   { "toggle-unlink",    OP_COMPOSE_TOGGLE_UNLINK,       "u" },
334   { "toggle-recode",    OP_COMPOSE_TOGGLE_RECODE,       NULL },
335   { "update-encoding",  OP_COMPOSE_UPDATE_ENCODING,     "U" },
336   { "view-attach",      OP_VIEW_ATTACH,                 M_ENTER_S },
337   { "send-message",     OP_COMPOSE_SEND_MESSAGE,        "y" },
338   { "pipe-entry",       OP_PIPE,                        "|" },
339
340   { "attach-key",       OP_COMPOSE_ATTACH_KEY,          "\033k" },
341   { "pgp-menu",         OP_COMPOSE_PGP_MENU,            "p"     },
342
343   { "forget-passphrase",OP_FORGET_PASSPHRASE,           "\006"  },
344
345   { "smime-menu",       OP_COMPOSE_SMIME_MENU,          "S"     },
346
347 #ifdef MIXMASTER
348   { "mix",              OP_COMPOSE_MIX,                 "M" },
349 #endif
350   
351   { NULL,               0,                              NULL }
352 };
353
354 struct binding_t OpPost[] = { /* map: postpone */
355   { "delete-entry",     OP_DELETE,      "d" },
356   { "undelete-entry",   OP_UNDELETE,    "u" },
357   { NULL,               0,              NULL }
358 };
359
360 struct binding_t OpAlias[] = { /* map: alias */
361   { "delete-entry",     OP_DELETE,      "d" },
362   { "undelete-entry",   OP_UNDELETE,    "u" },
363   { NULL,               0,              NULL }
364 };
365   
366
367 /* The file browser */
368 struct binding_t OpBrowser[] = { /* map: browser */
369   { "change-dir",       OP_CHANGE_DIRECTORY,    "c" },
370   { "display-filename", OP_BROWSER_TELL,        "@" },
371   { "enter-mask",       OP_ENTER_MASK,          "m" },
372   { "sort",             OP_SORT,                "o" },
373   { "sort-reverse",     OP_SORT_REVERSE,        "O" },
374   { "select-new",       OP_BROWSER_NEW_FILE,    "N" },
375   { "check-new",        OP_CHECK_NEW,           NULL },
376   { "toggle-mailboxes", OP_TOGGLE_MAILBOXES,    "\t" },
377   { "view-file",        OP_BROWSER_VIEW_FILE,   " " },
378   { "buffy-list",       OP_BUFFY_LIST,          "." },
379 #ifdef USE_IMAP
380   { "create-mailbox",   OP_CREATE_MAILBOX,      "C" },
381   { "delete-mailbox",   OP_DELETE_MAILBOX,      "d" },
382   { "rename-mailbox",   OP_RENAME_MAILBOX,      "r" },
383   { "subscribe",        OP_BROWSER_SUBSCRIBE,   "s" },
384   { "unsubscribe",      OP_BROWSER_UNSUBSCRIBE, "u" },
385   { "toggle-subscribed", OP_BROWSER_TOGGLE_LSUB, "T" },
386 #endif
387   { NULL,               0,                      NULL }
388 };
389
390 /* External Query Menu */
391 struct binding_t OpQuery[] = { /* map: query */
392   { "create-alias",     OP_CREATE_ALIAS,        "a" },
393   { "mail",             OP_MAIL,                "m" },
394   { "query",            OP_QUERY,               "Q" },
395   { "query-append",     OP_QUERY_APPEND,        "A" },
396   { NULL,               0,                      NULL }
397 };
398
399 struct binding_t OpEditor[] = { /* map: editor */
400   { "bol",              OP_EDITOR_BOL,                  "\001" },
401   { "backward-char",    OP_EDITOR_BACKWARD_CHAR,        "\002" },
402   { "backward-word",    OP_EDITOR_BACKWARD_WORD,        "\033b"},
403   { "capitalize-word",  OP_EDITOR_CAPITALIZE_WORD,      "\033c"},
404   { "downcase-word",    OP_EDITOR_DOWNCASE_WORD,        "\033l"},
405   { "upcase-word",      OP_EDITOR_UPCASE_WORD,          "\033u"},
406   { "delete-char",      OP_EDITOR_DELETE_CHAR,          "\004" },
407   { "eol",              OP_EDITOR_EOL,                  "\005" },
408   { "forward-char",     OP_EDITOR_FORWARD_CHAR,         "\006" },
409   { "forward-word",     OP_EDITOR_FORWARD_WORD,         "\033f"},
410   { "backspace",        OP_EDITOR_BACKSPACE,            "\010" },
411   { "kill-eol",         OP_EDITOR_KILL_EOL,             "\013" },
412   { "kill-eow",         OP_EDITOR_KILL_EOW,             "\033d"},
413   { "kill-line",        OP_EDITOR_KILL_LINE,            "\025" },
414   { "quote-char",       OP_EDITOR_QUOTE_CHAR,           "\026" },
415   { "kill-word",        OP_EDITOR_KILL_WORD,            "\027" },
416   { "complete",         OP_EDITOR_COMPLETE,             "\t"   },
417   { "complete-query",   OP_EDITOR_COMPLETE_QUERY,       "\024" },
418   { "buffy-cycle",      OP_EDITOR_BUFFY_CYCLE,          " "    },
419   { "history-up",       OP_EDITOR_HISTORY_UP,           NULL   },
420   { "history-down",     OP_EDITOR_HISTORY_DOWN,         NULL   },
421   { "transpose-chars",  OP_EDITOR_TRANSPOSE_CHARS,      NULL   },
422   { NULL,               0,                              NULL   }
423 };
424
425
426
427 struct binding_t OpPgp[] = { /* map: pgp */
428   { "verify-key",       OP_VERIFY_KEY,          "c" },
429   { "view-name",        OP_VIEW_ID,             "%" },
430   { NULL,               0,                              NULL }
431 };
432
433
434
435 /* When using the GPGME based backend we have some useful functions
436    for the SMIME menu.  */
437 struct binding_t OpSmime[] = { /* map: smime */
438 #ifdef CRYPT_BACKEND_GPGME
439   { "verify-key",    OP_VERIFY_KEY,             "c" },
440   { "view-name",     OP_VIEW_ID,                "%" },
441 #endif
442   { NULL,       0,      NULL }
443 };
444
445
446
447 #ifdef MIXMASTER
448 struct binding_t OpMix[] = { /* map: mixmaster */
449   { "accept",           OP_MIX_USE,     M_ENTER_S },
450   { "append",           OP_MIX_APPEND,  "a"       },
451   { "insert",           OP_MIX_INSERT,  "i"       },
452   { "delete",           OP_MIX_DELETE,  "d"       },
453   { "chain-prev",       OP_MIX_CHAIN_PREV, "<left>" },
454   { "chain-next",       OP_MIX_CHAIN_NEXT, "<right>" },
455   { NULL,               0,              NULL }
456 };
457 #endif /* MIXMASTER */