declared in an HTML meta tag instead of in the MIME headers.
Nearly all of these messages should parse now.
converted_msg = malloc(content_length);
strcpy(converted_msg, "");
ptr = msg;
converted_msg = malloc(content_length);
strcpy(converted_msg, "");
ptr = msg;
+ msgend = strchr(msg, 0);
/**
* Change mailto: links to WebCit mail, by replacing the
* link with one that points back to our mail room. Due to
/**
* Change mailto: links to WebCit mail, by replacing the
* link with one that points back to our mail room. Due to
ptr = &ptr[8];
}
else if ( (treat_as_wiki) && (strncasecmp(ptr, "<a href=\"wiki?", 14)) ) {
ptr = &ptr[8];
}
else if ( (treat_as_wiki) && (strncasecmp(ptr, "<a href=\"wiki?", 14)) ) {
- lprintf(9, "converting wiki link\n");
content_length += 64;
converted_msg = realloc(converted_msg, content_length);
sprintf(&converted_msg[output_length], "<a href=\"wiki?page=");
content_length += 64;
converted_msg = realloc(converted_msg, content_length);
sprintf(&converted_msg[output_length], "<a href=\"wiki?page=");