fix regressions
authorPierre Habouzit <madcoder@debian.org>
Sun, 29 Oct 2006 00:17:43 +0000 (02:17 +0200)
committerPierre Habouzit <madcoder@debian.org>
Sun, 29 Oct 2006 00:17:43 +0000 (02:17 +0200)
init.h
parse.c

diff --git a/init.h b/init.h
index bbab713..1d93b5a 100644 (file)
--- a/init.h
+++ b/init.h
@@ -2789,7 +2789,7 @@ struct option_t MuttVars[] = {
    ** This variable configures how often (in seconds) Mutt-ng should look for
    ** new mail.
    */
-  {"pop_delete(", DT_QUAD, R_NONE, OPT_POPDELETE, "ask-no" },
+  {"pop_delete", DT_QUAD, R_NONE, OPT_POPDELETE, "ask-no" },
   /*
    ** .pp
    ** Availability: POP
diff --git a/parse.c b/parse.c
index 23e6c86..119959e 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -917,7 +917,7 @@ static char *extract_message_id(const char *s)
 
     if ((s = strchr(s, '<')) == NULL || (p = strchr(s, '>')) == NULL)
         return NULL;
-    return p_dupstr(s, (p - s));
+    return p_dupstr(s, (p - s) + 1);
 }
 
 void mutt_parse_mime_message (CONTEXT * ctx, HEADER * cur)