forwarded #354422 [EMAIL PROTECTED] thanks
On Sun, 26 Feb 2006 the mental interface of Yaroslav Halchenko told: > Package: mutt-ng > Version: 0.0+20060213-1 > Severity: wishlist > Tags: patch > > I've got quite a few of imap mailboxes which mutt is dedicated to > monitor, but it started to annoy me too much now when it "slept" for > up to 10 seconds whenever I leave vim while composing an email. > That is why I decided that it will be useful to have that "forced" > check for new mail optional. Please see patch below which provides an > option sidebar_mail_check_compose (yes by default to confirm previous > behavior) > > --- muttng.orig/mutt-ng-0.0+20060213/compose.c 2006-02-11 > 17:09:29.000000000 -0500 > +++ mutt-ng-0.0+20060213/compose.c 2006-02-25 22:40:34.000000000 -0500 > @@ -563,8 +563,11 @@ > menu->help = > mutt_compile_help (helpstr, sizeof (helpstr), MENU_COMPOSE, > ComposeHelp); > - > - if (option (OPTMBOXPANE)) > + /* [EMAIL PROTECTED]: > + * I don't want that delay to be whenever I edit the mail: > + * OPTSIDEBARMAILCHECKCOMPOSE is for that purpose > + */ > + if (option (OPTMBOXPANE) && option (OPTSIDEBARMAILCHECKCOMPOSE)) > buffy_check (1); > while (loop) { > #ifdef USE_NNTP > --- muttng.orig/mutt-ng-0.0+20060213/init.h 2006-01-13 03:51:23.000000000 > -0500 > +++ mutt-ng-0.0+20060213/init.h 2006-02-25 22:33:27.000000000 -0500 > @@ -1584,6 +1584,11 @@ > ** .pp > ** The width of the sidebar. > */ > + {"sidebar_mail_check_compose", DT_BOOL, R_BOTH, > OPTSIDEBARMAILCHECKCOMPOSE, "yes" }, > + /* > + ** .pp > + ** If \fIset\fP, checks for new mail when sidebar is displaied in compose > mode. > + */ > {"sidebar_newmail_only", DT_BOOL, R_BOTH, OPTSIDEBARNEWMAILONLY, "no" }, > /* > ** .pp > --- muttng.orig/mutt-ng-0.0+20060213/mutt.h 2005-10-22 20:52:43.000000000 > -0400 > +++ mutt-ng-0.0+20060213/mutt.h 2006-02-25 23:19:57.000000000 -0500 > @@ -519,6 +519,7 @@ > #endif > OPTSHORTENHIERARCHY, /* set when to shorten "hierarchies" in the > sidebar */ > OPTSIDEBARNEWMAILONLY, > + OPTSIDEBARMAILCHECKCOMPOSE, /* set when to check for new mail while in > compose mode */ > OPTMAX > }; Forwarded upstream Elimar -- Learned men are the cisterns of knowledge, not the fountainheads ;-) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]