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

Set the (new) MIMEATTACH auxattr flag when receiving mail messages that contain

MIME-encoded/embedded attachments.
We probably will want to do this for SMTP-posted messages (to subs) too.
parent 551d3442
No related branches found
No related tags found
No related merge requests found
......@@ -3636,6 +3636,8 @@ static void smtp_thread(void* arg)
smb.subnum=INVALID_SUB;
/* creates message data, but no header or index records (since msg.to==NULL) */
i=savemsg(&scfg, &smb, &msg, &client, startup->host_name, msgbuf, /* remsg: */NULL);
if(smb_countattachments(&smb, &msg, msgbuf) > 0)
msg.hdr.auxattr |= MSG_MIMEATTACH;
free(msgbuf);
if(i!=SMB_SUCCESS) {
smb_close(&smb);
......
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