<<< Date Index >>>     <<< Thread Index >>>

Re: bug#1882: mutt-1.5.6i: reverse_name is used when composing a _new_ message when viewing aanother one (not in index)



On Sun, Jul 11, 2004 at 06:27:11PM +0200, Thomas Roessler wrote:
> > ci_send_message (0, NULL, NULL, extra->ctx, NULL);?
> 
> That sounds like the right fix.

Then, (and if you agree that there's no reason to forbid
users to compose a new message from help menu), here's a patch.

-- 
tamo
Index: pager.c
===================================================================
RCS file: /home/roessler/cvs/mutt/pager.c,v
retrieving revision 3.14
diff -u -r3.14 pager.c
--- pager.c     12 Apr 2004 20:33:33 -0000      3.14
+++ pager.c     11 Jul 2004 22:18:28 -0000
@@ -2381,9 +2381,8 @@
        break;
 
       case OP_MAIL:
-       CHECK_MODE(IsHeader (extra) && !IsAttach (extra));
         CHECK_ATTACH;      
-       ci_send_message (0, NULL, NULL, extra->ctx, extra->hdr);
+       ci_send_message (0, NULL, NULL, Context, NULL);
        redraw = REDRAW_FULL;
        break;
 
@@ -2400,9 +2399,8 @@
        break;
 
       case OP_RECALL_MESSAGE:
-       CHECK_MODE(IsHeader (extra));
         CHECK_ATTACH;
-       ci_send_message (SENDPOSTPONED, NULL, NULL, extra->ctx, extra->hdr);
+       ci_send_message (SENDPOSTPONED, NULL, NULL, Context, NULL);
        redraw = REDRAW_FULL;
        break;