Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -udprP mutt-1.5.21.orig/hdrline.c mutt-1.5.21/hdrline.c
- --- mutt-1.5.21.orig/hdrline.c 2009-04-11 02:45:19.000000000 +0300
- +++ mutt-1.5.21/hdrline.c 2010-09-16 11:04:49.000000000 +0300
- @@ -212,6 +212,7 @@ int mutt_user_is_recipient (HEADER *h)
- * %f = entire from line
- * %F = like %n, unless from self
- * %i = message-id
- + * %I = initials of author
- * %l = number of lines in the message
- * %L = like %F, except `lists' are displayed first
- * %m = number of messages in the mailbox
- @@ -461,6 +462,31 @@ hdr_format_str (char *dest,
- mutt_format_s (dest, destlen, prefix, hdr->env->message_id ? hdr->env->message_id : "<no.id>");
- break;
- + case 'I':
- + {
- + int iflag = FALSE;
- + int j = 0;
- +
- + for (i = 0; hdr->env->from && hdr->env->from->personal &&
- + hdr->env->from->personal[i] && j < SHORT_STRING - 1; i++)
- + {
- + if (isalpha ((int)hdr->env->from->personal[i]))
- + {
- + if (!iflag)
- + {
- + buf2[j++] = hdr->env->from->personal[i];
- + iflag = TRUE;
- + }
- + }
- + else
- + iflag = FALSE;
- + }
- +
- + buf2[j] = '\0';
- + }
- + mutt_format_s (dest, destlen, prefix, buf2);
- + break;
- +
- case 'l':
- if (!optional)
- {
- diff -udprP mutt-1.5.21.orig/PATCHES mutt-1.5.21/PATCHES
- --- mutt-1.5.21.orig/PATCHES 2008-03-19 22:07:06.000000000 +0200
- +++ mutt-1.5.21/PATCHES 2010-09-16 11:04:49.000000000 +0300
- @@ -0,0 +1 @@
- +vvv.initials
Add Comment
Please, Sign In to add comment