if (mode == MT_CITADEL)
if (do_proto) cprintf("text\n");
if (mode == MT_RFC822) {
+ if (TheMessage->cm_fields['U'] == NULL) {
+ cprintf("Subject: FIX bogus subject FIX%s", nl);
+ }
cprintf("%s", nl);
}
*/
void pop3_retr(char *argbuf) {
int which_one;
- int ch;
+ int ch = 0;
size_t bytes_remaining;
which_one = atoi(argbuf);
ch = getc(POP3->msgs[which_one - 1].temp);
cprintf("%c", ch);
}
+ if (ch != 10) {
+ lprintf(5, "Problem: message ends with 0x%2x, not 0x0a\n", ch);
+ }
cprintf(".\r\n");
}
char mailfrom[1024];
int lp, rp;
FILE *msg_fp = NULL;
- size_t msg_size, blocksize;
+ size_t msg_size;
+ size_t blocksize = 0;
int scan_done;
/* Parse out the host portion of the recipient address */
sock_write(sock, buf, blocksize);
msg_size -= blocksize;
}
+ if (buf[blocksize-1] != 10) {
+ lprintf(5, "Possible problem: message did not correctly "
+ "terminate. (expecting 0x10, got 0x%02x)\n",
+ buf[blocksize-1]);
+ }
- sock_puts(sock, ".");
+ sock_write(sock, ".\r\n", 3);
if (sock_gets(sock, buf) < 0) {
*status = 4;
strcpy(dsn, "Connection broken during SMTP conversation");