X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=muttlib.c;h=4efa41b3be8db273828b18cda73111275b12d249;hp=7b291a14111d7fe72c477da18d7a4e076c207d0d;hb=50cf2c861c766ecec67a3a3d1925c3d74d7f618c;hpb=84336b1f31f4acefd0bf8500b8571c33669fd99f diff --git a/muttlib.c b/muttlib.c index 7b291a1..4efa41b 100644 --- a/muttlib.c +++ b/muttlib.c @@ -23,6 +23,7 @@ #include "attach.h" #include "reldate.h" +#include "version.h" #ifdef USE_IMAP #include "imap.h" @@ -1284,12 +1285,15 @@ time_t mutt_decrease_mtime (const char *f, struct stat *st) return mtime; } -const char *mutt_make_version (void) +const char *mutt_make_version (int full) { static char vstring[STRING]; - snprintf (vstring, sizeof (vstring), "Mutt-ng %s (based on Mutt 1.5.10/%s)", - MUTT_VERSION, ReleaseDate); + if (full) + snprintf (vstring, sizeof (vstring), "Mutt-ng %s (based " + "on Mutt 1.5.10/%s)", MUTT_VERSION, ReleaseDate); + else + snprintf (vstring, sizeof (vstring), "mutt-ng/%s", MUTT_VERSION); return vstring; }