Rocco Rutte:
[apps/madmutt.git] / functions.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
4  *
5  * This file is part of mutt-ng, see http://www.muttng.org/.
6  * It's licensed under the GNU General Public License,
7  * please see the file GPL in the top level source directory.
8  */
9
10 /*
11  * This file contains the structures needed to parse ``bind'' commands, as
12  * well as the default bindings for each menu.
13  *
14  * Notes:
15  *
16  * - If you want to bind \n or \r, use M_ENTER_S so that it will work
17  * correctly under both ncurses and S-Lang
18  *
19  * - If you need to bind a control char, use the octal value because the \cX
20  * construct does not work at this level.
21  *
22  */
23
24 struct binding_t OpGeneric[] = {
25   {"top-page", OP_TOP_PAGE, "H"},
26   {"next-entry", OP_NEXT_ENTRY, "j"},
27   {"previous-entry", OP_PREV_ENTRY, "k"},
28   {"bottom-page", OP_BOTTOM_PAGE, "L"},
29   {"refresh", OP_REDRAW, "\014"},
30   {"middle-page", OP_MIDDLE_PAGE, "M"},
31   {"search-next", OP_SEARCH_NEXT, "n"},
32   {"exit", OP_EXIT, "q"},
33   {"tag-entry", OP_TAG, "t"},
34   {"next-page", OP_NEXT_PAGE, "z"},
35   {"previous-page", OP_PREV_PAGE, "Z"},
36   {"last-entry", OP_LAST_ENTRY, "*"},
37   {"first-entry", OP_FIRST_ENTRY, "="},
38   {"enter-command", OP_ENTER_COMMAND, ":"},
39   {"next-line", OP_NEXT_LINE, ">"},
40   {"previous-line", OP_PREV_LINE, "<"},
41   {"half-up", OP_HALF_UP, "["},
42   {"half-down", OP_HALF_DOWN, "]"},
43   {"help", OP_HELP, "?"},
44   {"tag-prefix", OP_TAG_PREFIX, ";"},
45   {"tag-prefix-cond", OP_TAG_PREFIX_COND, NULL},
46   {"end-cond", OP_END_COND, NULL},
47   {"shell-escape", OP_SHELL_ESCAPE, "!"},
48   {"select-entry", OP_GENERIC_SELECT_ENTRY, M_ENTER_S},
49   {"search", OP_SEARCH, "/"},
50   {"search-reverse", OP_SEARCH_REVERSE, "\033/"},
51   {"search-opposite", OP_SEARCH_OPPOSITE, NULL},
52   {"jump", OP_JUMP, NULL},
53   {"current-top", OP_CURRENT_TOP, NULL},
54   {"current-middle", OP_CURRENT_MIDDLE, NULL},
55   {"current-bottom", OP_CURRENT_BOTTOM, NULL},
56   {"what-key", OP_WHAT_KEY, NULL},
57   {NULL, 0, NULL}
58 };
59
60 struct binding_t OpMain[] = {
61   {"create-alias", OP_CREATE_ALIAS, "a"},
62   {"bounce-message", OP_BOUNCE_MESSAGE, "b"},
63   {"break-thread", OP_MAIN_BREAK_THREAD, "#"},
64   {"change-folder", OP_MAIN_CHANGE_FOLDER, "c"},
65   {"change-folder-readonly", OP_MAIN_CHANGE_FOLDER_READONLY, "\033c"},
66 #ifdef USE_NNTP
67   {"change-newsgroup", OP_MAIN_CHANGE_GROUP, "i"},
68   {"change-newsgroup-readonly", OP_MAIN_CHANGE_GROUP_READONLY, "\033i"},
69 #endif
70   {"collapse-thread", OP_MAIN_COLLAPSE_THREAD, "\033v"},
71   {"collapse-all", OP_MAIN_COLLAPSE_ALL, "\033V"},
72   {"copy-message", OP_COPY_MESSAGE, "C"},
73   {"decode-copy", OP_DECODE_COPY, "\033C"},
74   {"decode-save", OP_DECODE_SAVE, "\033s"},
75   {"delete-message", OP_DELETE, "d"},
76   {"delete-pattern", OP_MAIN_DELETE_PATTERN, "D"},
77   {"delete-thread", OP_DELETE_THREAD, "\004"},
78   {"delete-subthread", OP_DELETE_SUBTHREAD, "\033d"},
79   {"edit", OP_EDIT_MESSAGE, "e"},
80   {"edit-type", OP_EDIT_TYPE, "\005"},
81   {"forward-message", OP_FORWARD_MESSAGE, "f"},
82 #ifdef USE_NNTP
83   {"forward-to-group", OP_FORWARD_TO_GROUP, "\033F"},
84   {"followup-message", OP_FOLLOWUP, "F"},
85   {"get-children", OP_GET_CHILDREN, NULL},
86   {"get-message", OP_GET_MESSAGE, "\007"},
87   {"get-parent", OP_GET_PARENT, "\033G"},
88   {"reconstruct-thread", OP_RECONSTRUCT_THREAD, NULL},
89 #endif
90   {"flag-message", OP_FLAG_MESSAGE, "\033f"},
91   {"group-reply", OP_GROUP_REPLY, "g"},
92 #ifdef USE_POP
93   {"fetch-mail", OP_MAIN_FETCH_MAIL, "G"},
94 #endif
95 #ifdef USE_IMAP
96   {"imap-fetch-mail", OP_MAIN_IMAP_FETCH, NULL},
97 #endif
98   {"display-toggle-weed", OP_DISPLAY_HEADERS, "h"},
99   {"next-undeleted", OP_MAIN_NEXT_UNDELETED, "j"},
100   {"previous-undeleted", OP_MAIN_PREV_UNDELETED, "k"},
101   {"limit", OP_MAIN_LIMIT, "l"},
102   {"link-threads", OP_MAIN_LINK_THREADS, "&"},
103   {"list-reply", OP_LIST_REPLY, "L"},
104   {"mail", OP_MAIL, "m"},
105   {"toggle-new", OP_TOGGLE_NEW, "N"},
106   {"toggle-write", OP_TOGGLE_WRITE, "%"},
107   {"next-thread", OP_MAIN_NEXT_THREAD, "\016"},
108   {"next-subthread", OP_MAIN_NEXT_SUBTHREAD, "\033n"},
109   {"purge-message", OP_PURGE_MESSAGE, NULL},
110   {"query", OP_QUERY, "Q"},
111   {"quit", OP_QUIT, "q"},
112   {"reply", OP_REPLY, "r"},
113   {"show-limit", OP_MAIN_SHOW_LIMIT, "\033l"},
114   {"sort-mailbox", OP_SORT, "o"},
115   {"sort-reverse", OP_SORT_REVERSE, "O"},
116   {"print-message", OP_PRINT, "p"},
117 #ifdef USE_NNTP
118   {"post-message", OP_POST, "P"},
119 #endif
120   {"previous-thread", OP_MAIN_PREV_THREAD, "\020"},
121   {"previous-subthread", OP_MAIN_PREV_SUBTHREAD, "\033p"},
122   {"recall-message", OP_RECALL_MESSAGE, "R"},
123   {"read-thread", OP_MAIN_READ_THREAD, "\022"},
124   {"read-subthread", OP_MAIN_READ_SUBTHREAD, "\033r"},
125   {"resend-message", OP_RESEND, "\033e"},
126   {"save-message", OP_SAVE, "s"},
127   {"tag-pattern", OP_MAIN_TAG_PATTERN, "T"},
128   {"tag-subthread", OP_TAG_SUBTHREAD, NULL},
129   {"tag-thread", OP_TAG_THREAD, "\033t"},
130   {"untag-pattern", OP_MAIN_UNTAG_PATTERN, "\024"},
131   {"undelete-message", OP_UNDELETE, "u"},
132   {"undelete-pattern", OP_MAIN_UNDELETE_PATTERN, "U"},
133   {"undelete-subthread", OP_UNDELETE_SUBTHREAD, "\033u"},
134   {"undelete-thread", OP_UNDELETE_THREAD, "\025"},
135   {"view-attachments", OP_VIEW_ATTACHMENTS, "v"},
136   {"show-version", OP_VERSION, "V"},
137   {"set-flag", OP_MAIN_SET_FLAG, "w"},
138   {"clear-flag", OP_MAIN_CLEAR_FLAG, "W"},
139   {"toggle-read", OP_TOGGLE_READ, "X"},
140 #ifdef USE_NNTP
141   {"catchup", OP_CATCHUP, "y"},
142 #endif
143   {"display-message", OP_DISPLAY_MESSAGE, M_ENTER_S},
144   {"buffy-list", OP_BUFFY_LIST, "."},
145   {"sync-mailbox", OP_MAIN_SYNC_FOLDER, "$"},
146   {"display-address", OP_DISPLAY_ADDRESS, "@"},
147   {"pipe-message", OP_PIPE, "|"},
148   {"next-new", OP_MAIN_NEXT_NEW, NULL},
149   {"next-new-then-unread", OP_MAIN_NEXT_NEW_THEN_UNREAD, "\t"},
150   {"previous-new", OP_MAIN_PREV_NEW, NULL},
151   {"previous-new-then-unread", OP_MAIN_PREV_NEW_THEN_UNREAD, "\033\t"},
152   {"next-unread", OP_MAIN_NEXT_UNREAD, NULL},
153   {"previous-unread", OP_MAIN_PREV_UNREAD, NULL},
154   {"parent-message", OP_MAIN_PARENT_MESSAGE, NULL},
155
156
157   {"extract-keys", OP_EXTRACT_KEYS, "\013"},
158   {"forget-passphrase", OP_FORGET_PASSPHRASE, "\006"},
159   {"check-traditional-pgp", OP_CHECK_TRADITIONAL, "\033P"},
160   {"mail-key", OP_MAIL_KEY, "\033k"},
161   {"decrypt-copy", OP_DECRYPT_COPY, NULL},
162   {"decrypt-save", OP_DECRYPT_SAVE, NULL},
163
164
165   {"sidebar-scroll-up", OP_SIDEBAR_SCROLL_UP, NULL},
166   {"sidebar-scroll-down", OP_SIDEBAR_SCROLL_DOWN, NULL},
167   {"sidebar-next", OP_SIDEBAR_NEXT, NULL},
168   {"sidebar-prev", OP_SIDEBAR_PREV, NULL},
169   {"sidebar-next-new", OP_SIDEBAR_NEXT_NEW, NULL},
170   {"sidebar-prev-new", OP_SIDEBAR_PREV_NEW, NULL},
171   {"sidebar-open", OP_SIDEBAR_OPEN, NULL},
172   {NULL, 0, NULL}
173 };
174
175 struct binding_t OpPager[] = {
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 #ifdef USE_NNTP
182   {"change-newsgroup", OP_MAIN_CHANGE_GROUP, "i"},
183   {"change-newsgroup-readonly", OP_MAIN_CHANGE_GROUP_READONLY, "\033i"},
184 #endif
185   {"copy-message", OP_COPY_MESSAGE, "C"},
186   {"decode-copy", OP_DECODE_COPY, "\033C"},
187   {"delete-message", OP_DELETE, "d"},
188   {"delete-thread", OP_DELETE_THREAD, "\004"},
189   {"delete-subthread", OP_DELETE_SUBTHREAD, "\033d"},
190   {"edit", OP_EDIT_MESSAGE, "e"},
191   {"edit-type", OP_EDIT_TYPE, "\005"},
192 #ifdef USE_NNTP
193   {"followup-message", OP_FOLLOWUP, "F"},
194   {"forward-to-group", OP_FORWARD_TO_GROUP, "\033F"},
195 #endif
196   {"forward-message", OP_FORWARD_MESSAGE, "f"},
197   {"flag-message", OP_FLAG_MESSAGE, "\033f"},
198   {"group-reply", OP_GROUP_REPLY, "g"},
199 #ifdef USE_IMAP
200   {"imap-fetch-mail", OP_MAIN_IMAP_FETCH, NULL},
201 #endif
202   {"display-toggle-weed", OP_DISPLAY_HEADERS, "h"},
203   {"next-undeleted", OP_MAIN_NEXT_UNDELETED, "j"},
204   {"next-entry", OP_NEXT_ENTRY, "J"},
205   {"previous-undeleted", OP_MAIN_PREV_UNDELETED, "k"},
206   {"previous-entry", OP_PREV_ENTRY, "K"},
207   {"link-threads", OP_MAIN_LINK_THREADS, "&"},
208   {"list-reply", OP_LIST_REPLY, "L"},
209   {"redraw-screen", OP_REDRAW, "\014"},
210   {"mail", OP_MAIL, "m"},
211   {"mark-as-new", OP_TOGGLE_NEW, "N"},
212   {"search-next", OP_SEARCH_NEXT, "n"},
213   {"next-thread", OP_MAIN_NEXT_THREAD, "\016"},
214   {"next-subthread", OP_MAIN_NEXT_SUBTHREAD, "\033n"},
215   {"print-message", OP_PRINT, "p"},
216 #ifdef USE_NNTP
217   {"post-message", OP_POST, "P"},
218 #endif
219   {"previous-thread", OP_MAIN_PREV_THREAD, "\020"},
220   {"previous-subthread", OP_MAIN_PREV_SUBTHREAD, "\033p"},
221   {"purge-message", OP_PURGE_MESSAGE, NULL},
222   {"quit", OP_QUIT, "Q"},
223   {"exit", OP_EXIT, "q"},
224   {"reply", OP_REPLY, "r"},
225   {"recall-message", OP_RECALL_MESSAGE, "R"},
226   {"read-thread", OP_MAIN_READ_THREAD, "\022"},
227   {"read-subthread", OP_MAIN_READ_SUBTHREAD, "\033r"},
228   {"resend-message", OP_RESEND, "\033e"},
229   {"save-message", OP_SAVE, "s"},
230   {"skip-quoted", OP_PAGER_SKIP_QUOTED, "S"},
231   {"decode-save", OP_DECODE_SAVE, "\033s"},
232   {"tag-message", OP_TAG, "t"},
233   {"toggle-quoted", OP_PAGER_HIDE_QUOTED, "T"},
234   {"undelete-message", OP_UNDELETE, "u"},
235   {"undelete-subthread", OP_UNDELETE_SUBTHREAD, "\033u"},
236   {"undelete-thread", OP_UNDELETE_THREAD, "\025"},
237   {"view-attachments", OP_VIEW_ATTACHMENTS, "v"},
238   {"show-version", OP_VERSION, "V"},
239   {"search-toggle", OP_SEARCH_TOGGLE, "\\"},
240   {"display-address", OP_DISPLAY_ADDRESS, "@"},
241   {"next-new", OP_MAIN_NEXT_NEW, NULL},
242   {"next-new-then-unread",
243    OP_MAIN_NEXT_NEW_THEN_UNREAD, "\t"},
244   {"pipe-message", OP_PIPE, "|"},
245   {"help", OP_HELP, "?"},
246   {"next-page", OP_NEXT_PAGE, " "},
247   {"previous-page", OP_PREV_PAGE, "-"},
248   {"top", OP_PAGER_TOP, "^"},
249   {"sync-mailbox", OP_MAIN_SYNC_FOLDER, "$"},
250   {"shell-escape", OP_SHELL_ESCAPE, "!"},
251   {"enter-command", OP_ENTER_COMMAND, ":"},
252   {"buffy-list", OP_BUFFY_LIST, "."},
253   {"search", OP_SEARCH, "/"},
254   {"search-reverse", OP_SEARCH_REVERSE, "\033/"},
255   {"search-opposite", OP_SEARCH_OPPOSITE, NULL},
256   {"next-line", OP_NEXT_LINE, M_ENTER_S},
257   {"jump", OP_JUMP, NULL},
258   {"next-unread", OP_MAIN_NEXT_UNREAD, NULL},
259   {"previous-new", OP_MAIN_PREV_NEW, NULL},
260   {"previous-new-then-unread",
261    OP_MAIN_PREV_NEW_THEN_UNREAD, NULL},
262   {"previous-unread", OP_MAIN_PREV_UNREAD, NULL},
263   {"half-up", OP_HALF_UP, NULL},
264   {"half-down", OP_HALF_DOWN, NULL},
265   {"previous-line", OP_PREV_LINE, NULL},
266   {"bottom", OP_PAGER_BOTTOM, NULL},
267   {"parent-message", OP_MAIN_PARENT_MESSAGE, NULL},
268
269
270
271
272   {"check-traditional-pgp", OP_CHECK_TRADITIONAL, "\033P"},
273   {"mail-key", OP_MAIL_KEY, "\033k"},
274   {"extract-keys", OP_EXTRACT_KEYS, "\013"},
275   {"forget-passphrase", OP_FORGET_PASSPHRASE, "\006"},
276   {"decrypt-copy", OP_DECRYPT_COPY, NULL},
277   {"decrypt-save", OP_DECRYPT_SAVE, NULL},
278
279
280   {"sidebar-scroll-up", OP_SIDEBAR_SCROLL_UP, NULL},
281   {"sidebar-scroll-down", OP_SIDEBAR_SCROLL_DOWN, NULL},
282   {"sidebar-next", OP_SIDEBAR_NEXT, NULL},
283   {"sidebar-prev", OP_SIDEBAR_PREV, NULL},
284   {"sidebar-next-new", OP_SIDEBAR_NEXT_NEW, NULL},
285   {"sidebar-prev-new", OP_SIDEBAR_PREV_NEW, NULL},
286   {"sidebar-open", OP_SIDEBAR_OPEN, NULL},
287   {NULL, 0, NULL}
288 };
289
290 struct binding_t OpAttach[] = {
291   {"bounce-message", OP_BOUNCE_MESSAGE, "b"},
292   {"display-toggle-weed", OP_DISPLAY_HEADERS, "h"},
293   {"edit-type", OP_EDIT_TYPE, "\005"},
294 #ifdef USE_NNTP
295   {"followup-message", OP_FOLLOWUP, "F"},
296   {"forward-to-group", OP_FORWARD_TO_GROUP, "\033F"},
297 #endif
298   {"print-entry", OP_PRINT, "p"},
299   {"save-entry", OP_SAVE, "s"},
300   {"pipe-entry", OP_PIPE, "|"},
301   {"view-mailcap", OP_ATTACH_VIEW_MAILCAP, "m"},
302   {"reply", OP_REPLY, "r"},
303   {"resend-message", OP_RESEND, "\033e"},
304   {"group-reply", OP_GROUP_REPLY, "g"},
305   {"list-reply", OP_LIST_REPLY, "L"},
306   {"forward-message", OP_FORWARD_MESSAGE, "f"},
307   {"view-text", OP_ATTACH_VIEW_TEXT, "T"},
308   {"view-attach", OP_VIEW_ATTACH, M_ENTER_S},
309   {"delete-entry", OP_DELETE, "d"},
310   {"undelete-entry", OP_UNDELETE, "u"},
311   {"collapse-parts", OP_ATTACH_COLLAPSE, "v"},
312
313   {"check-traditional-pgp", OP_CHECK_TRADITIONAL, "\033P"},
314   {"extract-keys", OP_EXTRACT_KEYS, "\013"},
315   {"forget-passphrase", OP_FORGET_PASSPHRASE, "\006"},
316
317   {NULL, 0, NULL}
318 };
319
320 struct binding_t OpCompose[] = {
321   {"attach-file", OP_COMPOSE_ATTACH_FILE, "a"},
322   {"attach-message", OP_COMPOSE_ATTACH_MESSAGE, "A"},
323   {"attach-news-message", OP_COMPOSE_ATTACH_NEWS_MESSAGE, "\033a"},
324   {"edit-bcc", OP_COMPOSE_EDIT_BCC, "b"},
325   {"edit-cc", OP_COMPOSE_EDIT_CC, "c"},
326   {"copy-file", OP_SAVE, "C"},
327   {"detach-file", OP_DELETE, "D"},
328   {"toggle-disposition", OP_COMPOSE_TOGGLE_DISPOSITION, "\004"},
329   {"edit-description", OP_COMPOSE_EDIT_DESCRIPTION, "d"},
330   {"edit-message", OP_COMPOSE_EDIT_MESSAGE, "e"},
331   {"edit-headers", OP_COMPOSE_EDIT_HEADERS, "E"},
332   {"edit-file", OP_COMPOSE_EDIT_FILE, "\030e"},
333   {"edit-encoding", OP_COMPOSE_EDIT_ENCODING, "\005"},
334   {"edit-from", OP_COMPOSE_EDIT_FROM, "\033f"},
335   {"edit-fcc", OP_COMPOSE_EDIT_FCC, "f"},
336   {"filter-entry", OP_FILTER, "F"},
337   {"get-attachment", OP_COMPOSE_GET_ATTACHMENT, "G"},
338   {"display-toggle-weed", OP_DISPLAY_HEADERS, "h"},
339   {"ispell", OP_COMPOSE_ISPELL, "i"},
340   {"print-entry", OP_PRINT, "l"},
341   {"edit-mime", OP_COMPOSE_EDIT_MIME, "m"},
342   {"new-mime", OP_COMPOSE_NEW_MIME, "n"},
343 #ifdef USE_NNTP
344   {"edit-newsgroups", OP_COMPOSE_EDIT_NEWSGROUPS, "N"},
345   {"edit-followup-to", OP_COMPOSE_EDIT_FOLLOWUP_TO, "o"},
346   {"edit-x-comment-to", OP_COMPOSE_EDIT_X_COMMENT_TO, "x"},
347 #endif
348   {"postpone-message", OP_COMPOSE_POSTPONE_MESSAGE, "P"},
349   {"edit-reply-to", OP_COMPOSE_EDIT_REPLY_TO, "r"},
350   {"rename-file", OP_COMPOSE_RENAME_FILE, "R"},
351   {"edit-subject", OP_COMPOSE_EDIT_SUBJECT, "s"},
352   {"edit-to", OP_COMPOSE_EDIT_TO, "t"},
353   {"edit-type", OP_EDIT_TYPE, "\024"},
354   {"write-fcc", OP_COMPOSE_WRITE_MESSAGE, "w"},
355   {"toggle-unlink", OP_COMPOSE_TOGGLE_UNLINK, "u"},
356   {"toggle-recode", OP_COMPOSE_TOGGLE_RECODE, NULL},
357   {"update-encoding", OP_COMPOSE_UPDATE_ENCODING, "U"},
358   {"view-attach", OP_VIEW_ATTACH, M_ENTER_S},
359   {"send-message", OP_COMPOSE_SEND_MESSAGE, "y"},
360   {"pipe-entry", OP_PIPE, "|"},
361
362   {"attach-key", OP_COMPOSE_ATTACH_KEY, "\033k"},
363   {"pgp-menu", OP_COMPOSE_PGP_MENU, "p"},
364
365   {"forget-passphrase", OP_FORGET_PASSPHRASE, "\006"},
366
367   {"smime-menu", OP_COMPOSE_SMIME_MENU, "S"},
368
369 #ifdef MIXMASTER
370   {"mix", OP_COMPOSE_MIX, "M"},
371 #endif
372
373   {NULL, 0, NULL}
374 };
375
376 struct binding_t OpPost[] = {
377   {"delete-entry", OP_DELETE, "d"},
378   {"undelete-entry", OP_UNDELETE, "u"},
379   {NULL, 0, NULL}
380 };
381
382 struct binding_t OpAlias[] = {
383   {"delete-entry", OP_DELETE, "d"},
384   {"undelete-entry", OP_UNDELETE, "u"},
385   {NULL, 0, NULL}
386 };
387
388
389 /* The file browser */
390 struct binding_t OpBrowser[] = {
391   {"change-dir", OP_CHANGE_DIRECTORY, "c"},
392   {"display-filename", OP_BROWSER_TELL, "@"},
393   {"enter-mask", OP_ENTER_MASK, "m"},
394   {"sort", OP_SORT, "o"},
395   {"sort-reverse", OP_SORT_REVERSE, "O"},
396   {"select-new", OP_BROWSER_NEW_FILE, "N"},
397   {"check-new", OP_CHECK_NEW, NULL},
398   {"toggle-mailboxes", OP_TOGGLE_MAILBOXES, "\t"},
399 #ifdef USE_NNTP
400   {"reload-active", OP_LOAD_ACTIVE, "g"},
401   {"subscribe-pattern", OP_SUBSCRIBE_PATTERN, "S"},
402   {"unsubscribe-pattern", OP_UNSUBSCRIBE_PATTERN, "U"},
403   {"catchup", OP_CATCHUP, "y"},
404   {"uncatchup", OP_UNCATCHUP, "Y"},
405 #endif
406   {"view-file", OP_BROWSER_VIEW_FILE, " "},
407   {"buffy-list", OP_BUFFY_LIST, "."},
408 #ifdef USE_IMAP
409   {"create-mailbox", OP_CREATE_MAILBOX, "C"},
410   {"delete-mailbox", OP_DELETE_MAILBOX, "d"},
411   {"rename-mailbox", OP_RENAME_MAILBOX, "r"},
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
467
468 /* When using the GPGME based backend we have some useful functions
469    for the SMIME menu.  */
470 struct binding_t OpSmime[] = {
471 #ifdef CRYPT_BACKEND_GPGME
472   {"verify-key", OP_VERIFY_KEY, "c"},
473   {"view-name", OP_VIEW_ID, "%"},
474 #endif
475   {NULL, 0, NULL}
476 };
477
478
479
480 #ifdef MIXMASTER
481 struct binding_t OpMix[] = {
482   {"accept", OP_MIX_USE, M_ENTER_S},
483   {"append", OP_MIX_APPEND, "a"},
484   {"insert", OP_MIX_INSERT, "i"},
485   {"delete", OP_MIX_DELETE, "d"},
486   {"chain-prev", OP_MIX_CHAIN_PREV, "<left>"},
487   {"chain-next", OP_MIX_CHAIN_NEXT, "<right>"},
488   {NULL, 0, NULL}
489 };
490 #endif /* MIXMASTER */