2 ===================================================================
3 RCS file: /home/roessler/cvs/mutt/ChangeLog,v
4 retrieving revision 3.635
5 retrieving revision 3.641
6 diff -u -p -r3.635 -r3.641
7 --- mutt/ChangeLog 1 Nov 2005 08:43:14 -0000 3.635
8 +++ mutt/ChangeLog 24 Nov 2005 12:51:12 -0000 3.641
10 +2005-11-24 12:50:27 Thomas Roessler <roessler@does-not-exist.org> (roessler)
12 + * curs_main.c, pattern.c: mutt/2142 suggests that the change
13 + from pattern.c,3.14 -> 3.15 causes inconsistency and confusion.
14 + Reverting the change; adding a helpful message to the status line.
16 +2005-11-22 12:31:58 Thomas Roessler <roessler@does-not-exist.org> (roessler)
18 + * pgp.c: Fix "mixed messages" about the success (or not) of
19 + decrypting PGP messages.
21 + * handler.c: Actually, the previous fix for 2139 had a flaw.
23 + * handler.c: Fix mutt/2139; also Debian #340116.
25 +2005-11-17 18:40:50 Thomas Roessler <roessler@does-not-exist.org> (roessler)
27 + * menu.c: a not entirely sane state of code.
29 + * menu.c: Another stab at #2019.
31 2005-11-01 08:42:00 Thomas Roessler <roessler@does-not-exist.org> (roessler)
33 * menu.c: This should be a better patch for the menu break
34 Index: mutt/curs_main.c
35 ===================================================================
36 RCS file: /home/roessler/cvs/mutt/curs_main.c,v
37 retrieving revision 3.34
38 retrieving revision 3.35
39 diff -u -p -r3.34 -r3.35
40 --- mutt/curs_main.c 4 Oct 2005 04:29:09 -0000 3.34
41 +++ mutt/curs_main.c 24 Nov 2005 12:50:27 -0000 3.35
42 @@ -868,6 +868,8 @@ CHECK_IMAP_ACL(IMAP_ACL_DELETE);
43 mutt_draw_tree (Context);
44 menu->redraw = REDRAW_FULL;
46 + if (Context->pattern)
47 + mutt_message _("To view all messages, limit to \"all\".");
52 ===================================================================
53 RCS file: /home/roessler/cvs/mutt/handler.c,v
54 retrieving revision 3.23
55 retrieving revision 3.25
56 diff -u -p -r3.23 -r3.25
57 --- mutt/handler.c 21 Oct 2005 04:35:37 -0000 3.23
58 +++ mutt/handler.c 22 Nov 2005 12:21:14 -0000 3.25
59 @@ -1754,16 +1754,16 @@ void mutt_decode_attachment (BODY *b, ST
62 case ENCQUOTEDPRINTABLE:
63 - mutt_decode_quoted (s, b->length, istext, cd);
64 + mutt_decode_quoted (s, b->length, istext || ((WithCrypto & APPLICATION_PGP) && mutt_is_application_pgp (b)), cd);
67 - mutt_decode_base64 (s, b->length, istext, cd);
68 + mutt_decode_base64 (s, b->length, istext || ((WithCrypto & APPLICATION_PGP) && mutt_is_application_pgp (b)), cd);
71 - mutt_decode_uuencoded (s, b->length, istext, cd);
72 + mutt_decode_uuencoded (s, b->length, istext || ((WithCrypto & APPLICATION_PGP) && mutt_is_application_pgp (b)), cd);
75 - mutt_decode_xbit (s, b->length, istext, cd);
76 + mutt_decode_xbit (s, b->length, istext || ((WithCrypto & APPLICATION_PGP) && mutt_is_application_pgp (b)), cd);
81 ===================================================================
82 RCS file: /home/roessler/cvs/mutt/menu.c,v
83 retrieving revision 3.23
84 retrieving revision 3.25
85 diff -u -p -r3.23 -r3.25
86 --- mutt/menu.c 1 Nov 2005 08:42:00 -0000 3.23
87 +++ mutt/menu.c 17 Nov 2005 18:40:50 -0000 3.25
88 @@ -379,36 +379,27 @@ void menu_check_recenter (MUTTMENU *menu
90 if (!option (OPTMENUMOVEOFF) && menu->max <= menu->pagelen) /* less entries than lines */
92 - if (menu->top != 0) {
96 set_option (OPTNEEDREDRAW);
102 - * If c = menu->pagelen / 2 and menu->pagelen is even, then (obviously):
104 - * menu->top + menu->pagelen - c == menu->top + c
106 - * In that case, having an "else if" below leads to what has become known as the
107 - * indicator break dance effect. Instead of special-casing, we just forget the
111 - if (menu->current < menu->top + c) /* indicator above top threshold */
112 + if (option (OPTMENUSCROLL) || (menu->pagelen <= 0) || (c < MenuContext))
114 - if (option (OPTMENUSCROLL) || (menu->pagelen <= 0))
115 + if (menu->current < menu->top + c)
116 menu->top = menu->current - c;
118 - menu->top -= (menu->pagelen - c) * ((menu->top + menu->pagelen - 1 - menu->current) / (menu->pagelen - c)) - c;
119 + else if (menu->current >= menu->top + menu->pagelen - c)
120 + menu->top = menu->current - menu->pagelen + c + 1;
122 - if (menu->current >= menu->top + menu->pagelen - c) /* indicator below bottom threshold */
125 - if (option (OPTMENUSCROLL) || (menu->pagelen <= 0))
126 - menu->top = menu->current - menu->pagelen + c + 1;
128 - menu->top += (menu->pagelen - c) * ((menu->current - menu->top) / (menu->pagelen - c)) - c;
129 + if (menu->current < menu->top + c)
130 + menu->top -= (menu->pagelen - c) * ((menu->top + menu->pagelen - 1 - menu->current) / (menu->pagelen - c)) - c;
131 + else if ((menu->current >= menu->top + menu->pagelen - c))
132 + menu->top += (menu->pagelen - c) * ((menu->current - menu->top) / (menu->pagelen - c)) - c;
136 Index: mutt/pattern.c
137 ===================================================================
138 RCS file: /home/roessler/cvs/mutt/pattern.c,v
139 retrieving revision 3.26
140 retrieving revision 3.27
141 diff -u -p -r3.26 -r3.27
142 --- mutt/pattern.c 21 Oct 2005 04:35:37 -0000 3.26
143 +++ mutt/pattern.c 24 Nov 2005 12:50:27 -0000 3.27
144 @@ -1202,15 +1202,8 @@ int mutt_pattern_func (int op, char *pro
147 strfcpy (buf, NONULL (Context->pattern), sizeof (buf));
148 - if (mutt_get_field (prompt, buf, sizeof (buf), M_PATTERN | M_CLEAR) != 0)
149 + if (mutt_get_field (prompt, buf, sizeof (buf), M_PATTERN | M_CLEAR) != 0 || !buf[0])
154 - strfcpy (buf, "~A", sizeof(buf));
159 mutt_message _("Compiling search pattern...");
162 ===================================================================
163 RCS file: /home/roessler/cvs/mutt/pgp.c,v
164 retrieving revision 3.60
165 retrieving revision 3.61
166 diff -u -p -r3.60 -r3.61
167 --- mutt/pgp.c 21 Oct 2005 04:35:37 -0000 3.60
168 +++ mutt/pgp.c 22 Nov 2005 12:31:58 -0000 3.61
169 @@ -243,6 +243,7 @@ static void pgp_copy_clearsigned (FILE *
171 int pgp_application_pgp_handler (BODY *m, STATE *s)
173 + int could_not_decrypt = 0;
174 int needpass = -1, pgp_keyblock = 0;
175 int clearsign = 0, rv, rc;
176 int c = 1; /* silence GCC warning */
177 @@ -398,15 +399,16 @@ int pgp_application_pgp_handler (BODY *m
179 if (!clearsign && (!pgpout || c == EOF))
181 + could_not_decrypt = 1;
182 + pgp_void_passphrase ();
185 + if (could_not_decrypt && !(s->flags & M_DISPLAY))
187 mutt_error _("Could not decrypt PGP message");
189 - pgp_void_passphrase ();
191 - if (!(s->flags & M_DISPLAY))
201 @@ -450,7 +452,10 @@ int pgp_application_pgp_handler (BODY *m
204 state_attach_puts (_("[-- END PGP MESSAGE --]\n"), s);
205 - mutt_message _("PGP message successfully decrypted.");
206 + if (could_not_decrypt)
207 + mutt_error _("Could not decrypt PGP message");
209 + mutt_message _("PGP message successfully decrypted.");
211 else if (pgp_keyblock)
212 state_attach_puts (_("[-- END PGP PUBLIC KEY BLOCK --]\n"), s);