updated on Wed Jan 25 12:16:47 UTC 2012
[aur-mirror.git] / mutt-great-dane / patch-1.5.21.dgc.deepif.2
blobe496f8149354e44c1b8286347f26550c5b75a44e
1 diff -ru mutt-1.5.20/PATCHES mutt-deepif/PATCHES
2 --- mutt-1.5.20/PATCHES 2010-07-12 08:21:03.581306994 -0400
3 +++ mutt-deepif/PATCHES 2010-07-12 18:26:35.375173735 -0400
4 @@ -0,0 +1 @@
5 +dgc.deepif.1
6 diff -ru mutt-1.5.20/doc/manual.xml.head mutt-deepif/doc/manual.xml.head
7 --- mutt-1.5.20/doc/manual.xml.head     2010-07-12 08:21:03.591306975 -0400
8 +++ mutt-deepif/doc/manual.xml.head     2010-07-12 18:36:41.661269411 -0400
9 @@ -4294,6 +4294,14 @@
10  otherwise <emphasis>else_string</emphasis> will be expanded.
11  </para>
13 +<para>
14 +You can also nest if statements, by escaping the ?. For example:
15 +</para>
17 +<screen>
18 +&percnt;?M?&lt;&percnt;2M&gt;&amp;&percnt;\?X\?{&percnt;2X}\&amp;&percnt;4c\??
19 +</screen>
21  </sect2>
23  <sect2 id="formatstrings-filters">
24 diff -ru mutt-1.5.20/muttlib.c mutt-deepif/muttlib.c
25 --- mutt-1.5.20/muttlib.c       2010-07-12 08:21:03.577974649 -0400
26 +++ mutt-deepif/muttlib.c       2010-07-12 18:26:35.377675224 -0400
27 @@ -1206,6 +1206,12 @@
28         count = 0;
29          while (count < sizeof (ifstring) && *src && *src != '?' && *src != '&')
30         {
31 +         if (*src == '\\')
32 +         {
33 +           src++;
34 +           if (!*src)
35 +             break;
36 +         }
37            *cp++ = *src++;
38           count++;
39         }
40 @@ -1218,7 +1224,13 @@
41         count = 0;
42         while (count < sizeof (elsestring) && *src && *src != '?')
43         {
44 -         *cp++ = *src++;
45 +         if (*src == '\\')
46 +         {
47 +           src++;
48 +           if (!*src)
49 +             break;
50 +         }
51 +          *cp++ = *src++;
52           count++;
53         }
54         *cp = 0;