]> git.pld-linux.org Git - packages/mutt.git/blob - mutt-vvv.initials.patch
- updated to 1.12.1
[packages/mutt.git] / mutt-vvv.initials.patch
1 diff -udprP mutt-1.10.0.orig/hdrline.c mutt-1.10.0/hdrline.c
2 --- mutt-1.10.0.orig/hdrline.c  2018-05-15 00:51:53.000000000 +0300
3 +++ mutt-1.10.0/hdrline.c       2018-06-16 17:17:07.682610173 +0300
4 @@ -228,6 +228,7 @@ static char *apply_subject_mods (ENVELOP
5   * %f = entire from line
6   * %F = like %n, unless from self
7   * %i = message-id
8 + * %I = initials of author
9   * %l = number of lines in the message
10   * %L = like %F, except `lists' are displayed first
11   * %m = number of messages in the mailbox
12 @@ -478,6 +479,31 @@ hdr_format_str (char *dest,
13        mutt_format_s (dest, destlen, prefix, hdr->env->message_id ? hdr->env->message_id : "<no.id>");
14        break;
15  
16 +    case 'I':
17 +      {
18 +       int iflag = FALSE;
19 +       int j = 0;
20 +
21 +       for (i = 0; hdr->env->from && hdr->env->from->personal &&
22 +                   hdr->env->from->personal[i] && j < SHORT_STRING - 1; i++)
23 +       {
24 +         if (isalpha ((int)hdr->env->from->personal[i]))
25 +         {
26 +           if (!iflag)
27 +           {
28 +             buf2[j++] = hdr->env->from->personal[i];
29 +             iflag = TRUE;
30 +           }
31 +         }
32 +         else
33 +           iflag = FALSE;
34 +       }
35 +
36 +       buf2[j] = '\0';
37 +      }
38 +      mutt_format_s (dest, destlen, prefix, buf2);
39 +      break;
40 +
41      case 'l':
42        if (!optional)
43        {
44 diff -udprP mutt-1.10.0.orig/PATCHES mutt-1.10.0/PATCHES
45 --- mutt-1.10.0.orig/PATCHES    2017-12-03 05:10:17.000000000 +0200
46 +++ mutt-1.10.0/PATCHES 2018-06-16 17:17:07.683610157 +0300
47 @@ -0,0 +1 @@
48 +vvv.initials
This page took 0.036499 seconds and 3 git commands to generate.