summaryrefslogtreecommitdiffstats
path: root/hdrline.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2002-03-25 11:29:20 +0000
committerThomas Roessler <roessler@does-not-exist.org>2002-03-25 11:29:20 +0000
commite855575a166e4065add6859465550f9c01c7e207 (patch)
tree26379b0ebed6e1324a33da67a9a2756a8054b2a3 /hdrline.c
parent688b966518ba15620c71811863e7786d8fbb85e9 (diff)
Fix #872, from Brendan Cully.
Diffstat (limited to 'hdrline.c')
-rw-r--r--hdrline.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/hdrline.c b/hdrline.c
index 19621137..ffbaa880 100644
--- a/hdrline.c
+++ b/hdrline.c
@@ -419,8 +419,13 @@ hdr_format_str (char *dest,
break;
case 'E':
- snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
- snprintf (dest, destlen, fmt, mutt_messages_in_thread(ctx, hdr, 0));
+ if (!optional)
+ {
+ snprintf (fmt, sizeof (fmt), "%%%sd", prefix);
+ snprintf (dest, destlen, fmt, mutt_messages_in_thread(ctx, hdr, 0));
+ }
+ else if (mutt_messages_in_thread(ctx, hdr, 0) <= 1)
+ optional = 0;
break;
case 'f':