Commit d529a310 authored by rswindell's avatar rswindell
Browse files

Always delete exported netmail if there's no SENDEREXT (from_ext) as this...

Always delete exported netmail if there's no SENDEREXT (from_ext) as this could result in orphaned sent-mail otherwise.
parent 8a05dd44
......@@ -5287,7 +5287,7 @@ int export_netmail(void)
msg.hdr.netattr |= MSG_SENT;
msg.hdr.netattr &= ~MSG_INTRANSIT;
if(cfg.delete_netmail || (msg.hdr.netattr&MSG_KILLSENT)) {
if(cfg.delete_netmail || (msg.hdr.netattr&MSG_KILLSENT) || msg.from_ext == NULL) {
/* Delete exported netmail */
msg.hdr.attr |= MSG_DELETE;
if((i = smb_updatemsg(email, &msg)) != SMB_SUCCESS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment