From: Art Cancro Date: Sun, 18 Jul 1999 23:58:36 +0000 (+0000) Subject: Fixed message id stuff X-Git-Tag: v7.86~7634 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=1788999dffe55162ac3fa4c99014a20ba7da01db;p=citadel.git Fixed message id stuff --- diff --git a/citadel/citmail.c b/citadel/citmail.c index 49a8524e6..3f01cd464 100644 --- a/citadel/citmail.c +++ b/citadel/citmail.c @@ -348,6 +348,41 @@ void loopcopy(FILE * to, FILE * from) } + +/* + * Try to extract a numeric message ID + */ +long extract_msg_id(char *id_string) { + long msgid = 0L; + int i, j; + char buf[256]; + + strncpy(buf, id_string, sizeof buf); + id_string[255] = 0; + + for (i=0; i') buf[j]=0; + } + } + + msgid = atol(buf); + if (msgid) return(msgid); + + for (i=0; i