lib-mime lib-lib lib-lua lib-mx lib-crypt lib-hash lib-sys lib-ui \
pop imap $(NNTP_SUBDIR)
-BUILT_SOURCES = keymap_defs.h version.h charset.gperf
+BUILT_SOURCES = keymap_defs.h charset.gperf
DISTCLEANFILES = $(BUILT_SOURCES)
bin_PROGRAMS = madmutt madmutt_dotlock pgpringng pgpewrapng smime_keysng
pgpewrapng_LDADD =
pgpewrapng_DEPENDENCIES =
-CLEANFILES = stamp-doc-rc makedoc keymap_defs.h version.h Madmuttrc
+CLEANFILES = stamp-doc-rc makedoc keymap_defs.h Madmuttrc
ACLOCAL_AMFLAGS = -I m4
keymap_defs.h: OPS
$(srcdir)/gen_defs $^ > keymap_defs.h
-version.h:
- echo "#define MUTT_REVISION \"git\"" > version.h
-
install-exec-hook:
if test -f $(DESTDIR)$(bindir)/mutt.dotlock && test -f $(DESTDIR)$(bindir)/madmutt_dotlock ; then \
rm -f $(DESTDIR)$(bindir)/mutt.dotlock ; \
void mutt_version (void)
{
- mutt_message (mutt_make_version (1));
+ mutt_message (mutt_make_version());
}
void mutt_edit_content_type (HEADER * h, BODY * b, FILE * fp)
break;
case 'v':
- m_strcpy(buf, buflen, mutt_make_version (0));
+ m_strcpy(buf, buflen, mutt_make_version());
break;
case 0:
#include "buffy.h"
#include "mutt.h"
-#include "version.h"
#ifndef _MAKEDOC
#define DT_MASK 0x0f
** 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
break;
case 'v':
- m_strcpy(buf, buflen, mutt_make_version(0));
+ m_strcpy(buf, buflen, mutt_make_version());
break;
case 'V':
static void mutt_usage (void)
{
- puts (mutt_make_version (1));
+ puts (mutt_make_version());
puts
_("usage: madmutt [ -nRyzZ ] [ -e <cmd> ] [ -F <file> ] [ -m <type> ] [ -f <file> ]\n\
char buf[STRING];
#endif
- puts (mutt_make_version (1));
+ puts (mutt_make_version());
puts (_(Notice));
uname (&uts);
#include "alias.h"
#include "mutt.h"
#include "attach.h"
-#include "version.h"
/* Modified by blong to accept a "suggestion" for file name. If
* that file exists, then construct one with unique name but
sleep(MAX(s, SleepTime));
}
-const char *mutt_make_version (int full)
+const char *mutt_make_version(void)
{
static char vstring[STRING];
-
- if (full)
- snprintf (vstring, sizeof (vstring),
- "Madmutt/%s-r%s (based on Mutt 1.5.11)",
- MUTT_VERSION, MUTT_REVISION);
- else
- snprintf (vstring, sizeof (vstring), "Madmutt/%s-%s",
- MUTT_VERSION, MUTT_REVISION);
+ snprintf(vstring, sizeof (vstring), "Madmutt/%s", MUTT_VERSION);
return vstring;
}
const char *mutt_crypt_hook (address_t *);
char *mutt_make_date (char *, ssize_t);
-const char *mutt_make_version (int full);
+const char *mutt_make_version(void);
const char *mutt_fqdn (short);
os = (uname(&un) == -1) ? "UNIX" : un.sysname;
}
/* Add a vanity header */
- fprintf (fp, "User-Agent: %s (%s)\n", mutt_make_version (0), os);
+ fprintf (fp, "User-Agent: %s (%s)\n", mutt_make_version(), os);
}
return (ferror (fp) == 0 ? 0 : -1);