#include "buffy.h"
#include "mutt.h"
-#include "version.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_SYS 11 /* pre-defined via $madmutt_ */
#define DTYPE(x) ((x) & DT_MASK)
** is viewed it is passed as standard input to $$display_filter, and the
** filtered message is read from the standard output.
*/
- {"dotlock_program", DT_PATH, R_NONE, UL &MuttDotlock, "$madmutt_bindir/muttng_dotlock"},
- /*
- ** .pp
- ** Contains the path of the \fTmadmutt_dotlock(1)\fP binary to be used by
- ** Madmutt.
- */
{"dsn_notify", DT_STR, R_NONE, UL &DsnNotify, ""},
/*
** .pp
** This specifies the folder into which read mail in your ``$$spoolfile''
** folder will be appended.
*/
- {"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, "" },
/*
** .pp
** \fTiso-8859-2\fP, \fTkoi8-r\fP or \fTiso-2022-jp\fP) either
** instead of or after \fTiso-8859-1\fP.
*/
- {"sendmail", DT_PATH, R_NONE, UL &Sendmail, SENDMAIL " -oem -oi"},
- /*
- ** .pp
- ** Specifies the program and arguments used to deliver mail sent by Madmutt.
- ** Madmutt expects that the specified program interprets additional
- ** arguments as recipient addresses.
- */
{"sendmail_wait", DT_NUM, R_NONE, UL &SendmailWait, "0" },
/*
** .pp
** process will be put in a temporary file. If there is some error, you
** will be informed as to where to find the output.
*/
- {"shell", DT_PATH, R_NONE, UL &Shell, "" },
- /*
- ** .pp
- ** Command to use when spawning a subshell. By default, the user's login
- ** shell from \fT/etc/passwd\fP is used.
- */
#ifdef USE_NNTP
{"nntp_save_unsubscribed", DT_BOOL, R_NONE, OPTSAVEUNSUB, "no" },
/*