#endif
#include "buffy.h"
+#include "mutt.h"
+#include "version.h"
+#include "lib/debug.h"
#ifndef _MAKEDOC
#define DT_MASK 0x0f
#define DT_MAGIC 8 /* mailbox type */
#define DT_SYN 9 /* synonym for another variable */
#define DT_ADDR 10 /* e-mail address */
-#define DT_USER 11 /* user defined viar $user_ */
+#define DT_USER 11 /* user defined via $user_ */
+#define DT_SYS 12 /* pre-defined via $muttng_ */
#define DTYPE(x) ((x) & DT_MASK)
** rest of the string are expanded in the \fIC\fP locale (that is in US
** English).
*/
+#ifdef DEBUG
+ {"debug_level", DT_NUM, R_NONE, UL &DebugLevel, "0" },
+ /*
+ ** .pp
+ ** Availability: debug
+ **
+ ** .pp
+ ** This variable specifies the current debug level and
+ ** may be used to increase or decrease the verbosity level
+ ** during runtime. It overrides the level given with the
+ ** \fT-d\fP command line option.
+ **
+ ** .pp
+ ** Currently, this number must be >= 0 and <= 5 and muttng
+ ** must be started with \fT-d\fP to enable debugging at all;
+ ** enabling at runtime is not possible.
+ */
+#endif
{"default_hook", DT_STR, R_NONE, UL &DefaultHook, "~f %s !~P | (~P ~C %s)"},
/*
** .pp
** filtered message is read from the standard output.
*/
#if defined(DL_STANDALONE) && defined(USE_DOTLOCK)
- {"dotlock_program", DT_PATH, R_NONE, UL &MuttDotlock, BINDIR "/muttng_dotlock"},
+ {"dotlock_program", DT_PATH, R_NONE, UL &MuttDotlock, "$muttng_bindir/muttng_dotlock"},
/*
** .pp
** Availability: Standalone and Dotlock
** .pp
** This option allows you to edit the header of your outgoing messages
** along with the body of your message.
+ **
+ ** .pp
+ ** Which empty header fields to show is controlled by the
+ ** $$editor_headers option.
+ */
+#ifdef USE_NNTP
+ {"editor_headers", DT_STR, R_NONE, UL &EditorHeaders, "From: To: Cc: Bcc: Subject: Reply-To: Newsgroups: Followup-To: X-Comment-To:" },
+#else
+ {"editor_headers", DT_STR, R_NONE, UL &EditorHeaders, "From: To: Cc: Bcc: Subject: Reply-To:" },
+#endif
+ /*
+ ** .pp
+ ** If $$edit_headers is \fIset\fP, this space-separated list specifies
+ ** which \fInon-empty\fP header fields to edit in addition to
+ ** user-defined headers.
+ **
+ ** .pp
+ ** Note: if $$edit_headers had to be turned on by force because
+ ** $$strict_mailto is \fIunset\fP, this option has no effect.
*/
{"editor", DT_PATH, R_NONE, UL &Editor, "" },
/*
** This specifies the folder into which read mail in your ``$$spoolfile''
** folder will be appended.
*/
+ {"muttng_version", DT_SYS, R_NONE, 0, VERSION },
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and specifies muttng's
+ ** version string.\fP
+ */
+ {"muttng_revision", DT_SYS, R_NONE, 0, MUTT_REVISION },
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and specifies muttng's
+ ** subversion revision string.\fP
+ */
+ {"muttng_sysconfdir", DT_SYS, R_NONE, 0, SYSCONFDIR },
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and specifies the
+ ** directory containing the muttng system-wide configuration.\fP
+ */
+ {"muttng_bindir", DT_SYS, R_NONE, 0, BINDIR },
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and specifies the
+ ** directory containing the muttng binary.
+ */
+ {"muttng_docdir", DT_SYS, R_NONE, 0, PKGDOCDIR },
+ /*
+ ** .pp
+ ** \fIThis is a read-only system property and specifies the
+ ** directory containing the muttng documentation.\fP
+ */
+#if USE_HCACHE
+#if HAVE_QDBM
+ {"muttng_hcache_backend", DT_SYS, R_NONE, 0, "qdbm" },
+#elif HAVE_GDBM
+ {"muttng_hcache_backend", DT_SYS, R_NONE, 0, "gdbm" },
+#elif HAVE_DB4
+ {"muttng_hcache_backend", DT_SYS, R_NONE, 0, "db4" },
+#else
+ {"muttng_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
{"operating_system", DT_STR, R_NONE, UL &OperatingSystem, "" },
/*
** .pp