aboutsummaryrefslogtreecommitdiff
path: root/mail/mutt/files/extra-patch-smartdate
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mutt/files/extra-patch-smartdate')
-rw-r--r--mail/mutt/files/extra-patch-smartdate22
1 files changed, 11 insertions, 11 deletions
diff --git a/mail/mutt/files/extra-patch-smartdate b/mail/mutt/files/extra-patch-smartdate
index 5e82a8d189b7..5b17f3c79c4a 100644
--- a/mail/mutt/files/extra-patch-smartdate
+++ b/mail/mutt/files/extra-patch-smartdate
@@ -1,6 +1,6 @@
---- hdrline.c.orig 2018-11-29 23:19:39 UTC
+--- hdrline.c.orig 2019-05-26 19:28:51 UTC
+++ hdrline.c
-@@ -249,6 +249,89 @@ static char *apply_subject_mods (ENVELOP
+@@ -249,6 +249,89 @@ static char *apply_subject_mods (ENVELOPE *env)
* %Y = `x-label:' field (if present, tree unfolded, and != parent's x-label)
* %Z = status flags */
@@ -92,9 +92,9 @@
size_t destlen,
@@ -422,7 +505,13 @@ hdr_format_str (char *dest,
- if (!do_locales)
- setlocale (LC_TIME, "C");
-- strftime (buf2, sizeof (buf2), dest, tm);
+ if (!do_locales)
+ setlocale (LC_TIME, "C");
+- strftime (buf2, sizeof (buf2), dest, tm);
+ /* Identify the non-strftime smartdate pattern (%@) */
+ if( strncmp( dest, "%@", 2 ) == 0 ) {
+ smartdate( buf2, sizeof( buf2 ), tm );
@@ -102,14 +102,14 @@
+ else {
+ strftime (buf2, sizeof (buf2), dest, tm);
+ }
- if (!do_locales)
- setlocale (LC_TIME, "");
+ if (!do_locales)
+ setlocale (LC_TIME, "");
---- mutt.h.orig 2018-11-29 23:17:47 UTC
+--- mutt.h.orig 2019-05-26 19:28:51 UTC
+++ mutt.h
-@@ -156,6 +156,16 @@ typedef enum
- MUTT_FORMAT_NOFILTER = (1<<7) /* do not allow filtering on this pass */
- } format_flag;
+@@ -164,6 +164,16 @@ typedef enum
+ MUTT_WRITE_HEADER_MIME
+ } mutt_write_header_mode;
+/* flags for SmartDate */
+typedef enum {