rx_t *MailLists = NULL, *UnMailLists = NULL;
rx_t *SubscribedLists = NULL, *UnSubscribedLists = NULL;
-@static_package MAlias {
+@package MAlias {
/*
** .pp
** Specifies the format of the data displayed for the ``alias'' menu. The
*/
path_t alias_file = m_strdup("~/.madmutt/aliases");
+ /*
+ ** .pp
+ ** Specifies the filename of your signature, which is appended to all
+ ** outgoing messages. If the filename ends with a pipe (``\fT|\fP''), it is
+ ** assumed that filename is a shell command and input should be read from
+ ** its stdout.
+ */
+ path_t signature = m_strdup("~/.signature");
+
void alternates(rx_t rx) {
rx_list_remove(&UnAlternates, rx);
rx_list_add(&Alternates, rx);
#include <lib-lib/lib-lib.h>
#include <lib-lua/lib-lua.h>
+#include "alias.li"
#include <lib-mime/mime.h>
-int luaopen_MAlias(lua_State *L);
-
typedef struct alias_t {
struct alias_t *next;
char *name;
WHERE char *SidebarDelim;
WHERE char *SidebarNumberFormat;
WHERE char *SidebarBoundary;
-WHERE char *Signature;
WHERE char *SignOffString;
WHERE char *SimpleSearch;
** For example, Madmutt has the ability to highlight
** the signature in a different color in the builtin pager.
*/
- {"signature", DT_PATH, R_NONE, UL &Signature, "~/.signature"},
- /*
- ** .pp
- ** Specifies the filename of your signature, which is appended to all
- ** outgoing messages. If the filename ends with a pipe (``\fT|\fP''), it is
- ** assumed that filename is a shell command and input should be read from
- ** its stdout.
- */
{"signoff_string", DT_STR, R_NONE, UL &SignOffString, "" },
/*
** .pp
## sendmail_wait
## shell
## shorthost
+## signature
## spam_separator
## sysconfdir
## tmpdir
fprintf (f, "\n%s", SignOffString);
}
- if (Signature && (tmpfp = mutt_open_read (Signature, &thepid))) {
+ if (tmpfp = mutt_open_read(NONULL(MAlias.signature), &thepid)) {
if (option (OPTSIGDASHES))
fputs ("\n-- \n", f);
else if (SignOffString)
../lib-mime/mime.li \
../lib-lua/lua-token.h \
../lib-lua/madmutt.li \
- ../charset.li \
- ../buffy.li
+ ../alias.li \
+ ../buffy.li \
+ ../charset.li
+
../%: ; $(MAKE) -C $(@D) $(@F)