diff options
author | Thomas Zander <riggs@FreeBSD.org> | 2017-12-17 16:46:05 +0000 |
---|---|---|
committer | Thomas Zander <riggs@FreeBSD.org> | 2017-12-17 16:46:05 +0000 |
commit | 5d30a915d664844ddce4909f29e9138a5c9c05ea (patch) | |
tree | 46e493216e6f3b808789ae1269c8b74316721a2c /mail/mutt/files | |
parent | b611b96f0b677b2721b69b92f8d6c60bf1bd42a7 (diff) | |
download | ports-5d30a915d664844ddce4909f29e9138a5c9c05ea.tar.gz ports-5d30a915d664844ddce4909f29e9138a5c9c05ea.zip |
Update to upstream release 1.9.2
Detailed maintainer log:
- Update to mutt 1.9.2
- Bring ats date-conditional back as a local patch file
- Due to the patch not having versioning an update can break the port
if the hash of the file changes
- Update greeting patch to 1.9.1
PR: 224374
Submitted by: dereks@lifeofadishwasher.com (maintainer)
Differential Revision: https://reviews.freebsd.org/D13509
Notes
Notes:
svn path=/head/; revision=456559
Diffstat (limited to 'mail/mutt/files')
-rw-r--r-- | mail/mutt/files/patch-date-conditional | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/mail/mutt/files/patch-date-conditional b/mail/mutt/files/patch-date-conditional new file mode 100644 index 000000000000..9cbae9c3718a --- /dev/null +++ b/mail/mutt/files/patch-date-conditional @@ -0,0 +1,97 @@ +--- PATCHES.orig 2017-12-03 03:10:17 UTC ++++ PATCHES +@@ -0,0 +1 @@ ++patch-1.5.0.ats.date_conditional.1 +--- hdrline.c.orig 2017-12-03 03:10:17 UTC ++++ hdrline.c +@@ -428,6 +428,53 @@ hdr_format_str (char *dest, + const char *cp; + struct tm *tm; + time_t T; ++ int i = 0, invert = 0; ++ ++ if (optional && (op == '[' || op == '(')) { ++ char *is; ++ T = time(NULL); ++ T -= (op == '(') ? hdr->received : hdr->date_sent; ++ ++ is = (char *)prefix; ++ if( *is == '>' ) { ++ invert = 1; ++ ++is; ++ } ++ ++ while( *is && *is != '?' ) { ++ int t = strtol (is, &is, 10); ++ switch (*(is++)) { ++ case '?': ++ break; ++ case 'y': ++ t *= 365 * 24 * 60 * 60; ++ break; ++ case 'M': ++ t *= 30 * 24 * 60 * 60; ++ break; ++ case 'w': ++ t *= 7 * 24 * 60 * 60; ++ break; ++ case 'd': ++ t *= 24 * 60 * 60; ++ break; ++ case 'h': ++ t *= 60 * 60; ++ break; ++ case 'm': ++ t *= 60; ++ break; ++ } ++ i += t; ++ } ++ ++ if (i < 0) ++ i *= -1; ++ ++ if( (T > i || T < -1*i) ^ invert ) ++ optional = 0; ++ break; ++ } + + p = dest; + +--- muttlib.c.orig 2017-12-03 03:10:17 UTC ++++ muttlib.c +@@ -1335,7 +1335,16 @@ void mutt_FormatString (char *dest, /* + if (*src == '?') + { + flags |= MUTT_FORMAT_OPTIONAL; +- src++; ++ ch = *(++src); /* save the character to switch on */ ++ cp = prefix; ++ ++src; ++ count = 0; ++ while (count < sizeof (prefix) && *src != '?') ++ { ++ *cp++ = *src++; ++ count++; ++ } ++ *cp = 0; + } + else + { +@@ -1351,12 +1360,12 @@ void mutt_FormatString (char *dest, /* + count++; + } + *cp = 0; +- } + +- if (!*src) +- break; /* bad format */ ++ if (!*src) ++ break; /* bad format */ + +- ch = *src++; /* save the character to switch on */ ++ ch = *src++; /* save the character to switch on */ ++ } + + if (flags & MUTT_FORMAT_OPTIONAL) + { |