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