Skip to content
Snippets Groups Projects
Commit e0dc2182 authored by rswindell's avatar rswindell
Browse files

smb_addmsg() now does the msg.idx initialization for us.

parent b5013e29
No related branches found
No related tags found
No related merge requests found
......@@ -2224,7 +2224,6 @@ static void smtp_thread(void* arg)
,socket, startup->dnsbl_tag);
}
smb_hfield_str(&msg, SUBJECT, p);
msg.idx.subj=smb_subject_crc(p);
continue;
}
if(!strnicmp(buf, "FROM:", 5)
......@@ -2317,11 +2316,8 @@ static void smtp_thread(void* arg)
smb_hfield_str(&msg, SENDER, sender);
smb_hfield(&msg, SENDERNETTYPE, sizeof(nettype), &nettype);
smb_hfield_str(&msg, SENDERNETADDR, sender_addr);
if(msg.idx.subj==0) {
p="";
smb_hfield(&msg, SUBJECT, 0, p);
msg.idx.subj=smb_subject_crc(p);
}
if(msg.subj==NULL)
smb_hfield(&msg, SUBJECT, 0, NULL);
length=filelength(fileno(msgtxt))-ftell(msgtxt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment