- {"operating_system", DT_STR, R_NONE, UL &OperatingSystem, 0},
+ {"madmutt_version", DT_SYS, R_NONE, 0, VERSION },
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and specifies madmutt's
+ ** version string.\fP
+ */
+ {"madmutt_revision", DT_SYS, R_NONE, 0, MUTT_REVISION },
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and specifies madmutt's
+ ** subversion revision string.\fP
+ */
+ {"madmutt_sysconfdir", DT_SYS, R_NONE, 0, SYSCONFDIR },
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and specifies the
+ ** directory containing the madmutt system-wide configuration.\fP
+ */
+ {"madmutt_bindir", DT_SYS, R_NONE, 0, BINDIR },
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and specifies the
+ ** directory containing the madmutt binary.\fP
+ */
+ {"madmutt_docdir", DT_SYS, R_NONE, 0, PKGDOCDIR },
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and specifies the
+ ** directory containing the madmutt documentation.\fP
+ */
+#ifdef USE_HCACHE
+#if defined(HAVE_QDBM)
+ {"madmutt_hcache_backend", DT_SYS, R_NONE, 0, "qdbm" },
+#elif defined(HAVE_GDBM)
+ {"madmutt_hcache_backend", DT_SYS, R_NONE, 0, "gdbm" },
+#elif defined(HAVE_DB4)
+ {"madmutt_hcache_backend", DT_SYS, R_NONE, 0, "db4" },
+#else
+ {"madmutt_hcache_backend", DT_SYS, R_NONE, 0, "unknown" },
+#endif
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and specifies the
+ ** header chaching's database backend.\fP
+ */
+#endif
+ {"madmutt_folder_path", DT_SYS, R_NONE, 0, "" },
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and, at runtime,
+ ** specifies the full path or URI of the folder currently
+ ** open (if any).\fP
+ */
+ {"madmutt_folder_name", DT_SYS, R_NONE, 0, "" },
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and, at runtime,
+ ** specifies the actual name of the folder as far as it could
+ ** be detected.\fP
+ ** .pp
+ ** For detection, $$$folder is first taken into account
+ ** and simply stripped to form the result when a match is found. For
+ ** example, with $$$folder being \fTimap://host\fP and the folder is
+ ** \fTimap://host/INBOX/foo\fP, $$$madmutt_folder_name will be just
+ ** \fTINBOX/foo\fP.)
+ ** .pp
+ ** Second, if the initial portion of a name is not $$$folder,
+ ** the result will be everything after the last ``/''.
+ ** .pp
+ ** Third and last, the result will be just the name if neither
+ ** $$$folder nor a ``/'' were found in the name.
+ */
+ {"madmutt_pwd", DT_SYS, R_NONE, 0, "" },
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and, at runtime,
+ ** specifies the current working directory of the madmutt
+ ** binary.\fP
+ */
+ {"operating_system", DT_STR, R_NONE, UL &OperatingSystem, "" },
- {"alternates", parse_alternates, 0},
- {"unalternates", parse_unalternates, 0},
-#ifdef USE_SOCKET
- {"account-hook", mutt_parse_hook, M_ACCOUNTHOOK},
-#endif
- {"alias", parse_alias, 0},
- {"auto_view", parse_list, UL &AutoViewList},
- {"alternative_order", parse_list, UL &AlternativeOrderList},
- {"bind", mutt_parse_bind, 0},
- {"charset-hook", mutt_parse_hook, M_CHARSETHOOK},
-#ifdef HAVE_COLOR
- {"color", mutt_parse_color, 0},
- {"uncolor", mutt_parse_uncolor, 0},
-#endif
- {"exec", mutt_parse_exec, 0},
- {"fcc-hook", mutt_parse_hook, M_FCCHOOK},
- {"fcc-save-hook", mutt_parse_hook, M_FCCHOOK|M_SAVEHOOK},
- {"folder-hook", mutt_parse_hook, M_FOLDERHOOK},
-#ifdef USE_COMPRESSED
- {"open-hook", mutt_parse_hook, M_OPENHOOK},
- {"close-hook", mutt_parse_hook, M_CLOSEHOOK},
- {"append-hook", mutt_parse_hook, M_APPENDHOOK},
-#endif
- {"hdr_order", parse_list, UL &HeaderOrderList},
- {"ifdef", parse_ifdef, 1},
- {"ifndef", parse_ifdef, 0},
+ {"account-hook", mutt_parse_hook, M_ACCOUNTHOOK},
+ {"alias", parse_alias, 0},
+ {"alternates", parse_alternates, 0},
+ {"alternative_order", parse_list, UL &AlternativeOrderList},
+ {"append-hook", mutt_parse_hook, M_APPENDHOOK},
+ {"attachments", parse_attachments, 0 },
+ {"auto_view", parse_list, UL &AutoViewList},
+ {"bind", mutt_parse_bind, 0},
+ {"charset-hook", mutt_parse_hook, M_CHARSETHOOK},
+ {"close-hook", mutt_parse_hook, M_CLOSEHOOK},
+ {"color", mutt_parse_color, 0},
+ {"exec", mutt_parse_exec, 0},
+ {"fcc-hook", mutt_parse_hook, M_FCCHOOK},
+ {"fcc-save-hook", mutt_parse_hook, M_FCCHOOK|M_SAVEHOOK},
+ {"folder-hook", mutt_parse_hook, M_FOLDERHOOK},
+ {"hdr_order", parse_list, UL &HeaderOrderList},
+ {"open-hook", mutt_parse_hook, M_OPENHOOK},
+ {"unalternates", parse_unalternates, 0},
+ {"unattachments", parse_unattachments, 0},
+ {"uncolor", mutt_parse_uncolor, 0},
- {"ignore", parse_ignore, 0},
- {"lists", parse_lists, 0},
- {"macro", mutt_parse_macro, 0},
- {"mailboxes", buffy_parse_mailboxes, M_MAILBOXES},
- {"unmailboxes", buffy_parse_mailboxes, M_UNMAILBOXES},
- {"message-hook", mutt_parse_hook, M_MESSAGEHOOK},
- {"mbox-hook", mutt_parse_hook, M_MBOXHOOK},
- {"mime_lookup", parse_list, UL &MimeLookupList},
- {"unmime_lookup", parse_unlist, UL &MimeLookupList},
- {"mono", mutt_parse_mono, 0},
- {"my_hdr", parse_my_hdr, 0},
- {"pgp-hook", mutt_parse_hook, M_CRYPTHOOK},
- {"crypt-hook", mutt_parse_hook, M_CRYPTHOOK},
- {"push", mutt_parse_push, 0},
- {"reply-hook", mutt_parse_hook, M_REPLYHOOK},
- {"reset", parse_set, M_SET_RESET},
- {"save-hook", mutt_parse_hook, M_SAVEHOOK},
- {"score", mutt_parse_score, 0},
- {"send-hook", mutt_parse_hook, M_SENDHOOK},
- {"send2-hook", mutt_parse_hook, M_SEND2HOOK},
- {"set", parse_set, 0},
- {"source", parse_source, 0},
- {"spam", parse_spam_list, M_SPAM},
- {"nospam", parse_spam_list, M_NOSPAM},
- {"subscribe", parse_subscribe, 0},
- {"toggle", parse_set, M_SET_INV},
- {"unalias", parse_unalias, 0},
- {"unalternative_order", parse_unlist, UL &AlternativeOrderList},
- {"unauto_view", parse_unlist, UL &AutoViewList},
- {"unhdr_order", parse_unlist, UL &HeaderOrderList},
- {"unhook", mutt_parse_unhook, 0},
- {"unignore", parse_unignore, 0},
- {"unlists", parse_unlists, 0},
- {"unmono", mutt_parse_unmono, 0},
- {"unmy_hdr", parse_unmy_hdr, 0},
- {"unscore", mutt_parse_unscore, 0},
- {"unset", parse_set, M_SET_UNSET},
- {"unsubscribe", parse_unsubscribe, 0},
- {NULL}
+ {"crypt-hook", mutt_parse_hook, M_CRYPTHOOK},
+ {"ignore", parse_ignore, 0},
+ {"lists", parse_lists, 0},
+ {"macro", mutt_parse_macro, 0},
+ {"mailboxes", buffy_parse_mailboxes, M_MAILBOXES},
+ {"mbox-hook", mutt_parse_hook, M_MBOXHOOK},
+ {"message-hook", mutt_parse_hook, M_MESSAGEHOOK},
+ {"mime_lookup", parse_list, UL &MimeLookupList},
+ {"mono", mutt_parse_mono, 0},
+ {"my_hdr", parse_my_hdr, 0},
+ {"nospam", parse_spam_list, M_NOSPAM},
+ {"pgp-hook", mutt_parse_hook, M_CRYPTHOOK},
+ {"push", mutt_parse_push, 0},
+ {"reply-hook", mutt_parse_hook, M_REPLYHOOK},
+ {"reset", parse_set, M_SET_RESET},
+ {"save-hook", mutt_parse_hook, M_SAVEHOOK},
+ {"score", mutt_parse_score, 0},
+ {"send2-hook", mutt_parse_hook, M_SEND2HOOK},
+ {"send-hook", mutt_parse_hook, M_SENDHOOK},
+ {"set", parse_set, 0},
+ {"source", parse_source, 0},
+ {"spam", parse_spam_list, M_SPAM},
+ {"subscribe", parse_subscribe, 0},
+ {"toggle", parse_set, M_SET_INV},
+ {"unalias", parse_unalias, 0},
+ {"unalternative_order", parse_unlist, UL &AlternativeOrderList},
+ {"unauto_view", parse_unlist, UL &AutoViewList},
+ {"unhdr_order", parse_unlist, UL &HeaderOrderList},
+ {"unhook", mutt_parse_unhook, 0},
+ {"unignore", parse_unignore, 0},
+ {"unlists", parse_unlists, 0},
+ {"unmailboxes", buffy_parse_mailboxes, M_UNMAILBOXES},
+ {"unmime_lookup", parse_unlist, UL &MimeLookupList},
+ {"unmono", mutt_parse_unmono, 0},
+ {"unmy_hdr", parse_unmy_hdr, 0},
+ {"unscore", mutt_parse_unscore, 0},
+ {"unset", parse_set, M_SET_UNSET},
+ {"unsubscribe", parse_unsubscribe, 0},
+ {NULL, NULL, 0}