From: Thomas Roessler Date: Wed, 10 May 2000 10:35:02 +0000 (+0000) Subject: Fix a segmentation fault introduced by the change of pop_delete to a X-Git-Tag: mutt-1-3-1-rel~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc3c1db68a81264deb8cd88d4380ad4c739bf202;p=mutt Fix a segmentation fault introduced by the change of pop_delete to a quad option. --- diff --git a/init.h b/init.h index 4ef6e5d7..c7401be3 100644 --- a/init.h +++ b/init.h @@ -1406,7 +1406,7 @@ struct option_t MuttVars[] = { ** messages to an external Unix command. */ #ifdef USE_POP - { "pop_delete", DT_QUAD, R_NONE, OPTPOPDELETE, M_ASKNO }, + { "pop_delete", DT_QUAD, R_NONE, OPT_POPDELETE, M_ASKNO }, /* ** .pp ** If set, Mutt will delete successfully downloaded messages from the POP diff --git a/mutt.h b/mutt.h index 4325dfd7..09a42f41 100644 --- a/mutt.h +++ b/mutt.h @@ -243,6 +243,7 @@ enum OPT_MIMEFWD, OPT_MOVE, OPT_COPY, + OPT_POPDELETE, OPT_POSTPONE, OPT_QUIT, OPT_REPLYTO, @@ -323,7 +324,6 @@ enum OPTPAGERSTOP, OPTPIPEDECODE, OPTPIPESPLIT, - OPTPOPDELETE, OPTPOPLAST, OPTPRINTDECODE, OPTPROMPTAFTER, diff --git a/pop.c b/pop.c index d6310445..6623fa86 100644 --- a/pop.c +++ b/pop.c @@ -206,7 +206,7 @@ void mutt_fetchPopMail (void) } if (msgs - last) - delanswer = query_quadoption(OPTPOPDELETE, _("Delete messages from server?")); + delanswer = query_quadoption(OPT_POPDELETE, _("Delete messages from server?")); snprintf (msgbuf, sizeof (msgbuf), msgs > 1 ? _("Reading new messages (%d bytes)...") :