Browse Source

don't emit this pseudo header to clients.

MIME-12
Roker 2 years ago
parent
commit
728098cb8a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/pEpMIME.cc

+ 3
- 0
src/pEpMIME.cc View File

@ -144,6 +144,9 @@ message* parse_message(const char* mime_text, size_t length, bool* raise_attachm
{
stringpair_list_t* forwarded = stringpair_list_find(msg->opt_fields, pEpMIME::Pseudo_Header_Forwarded.data());
*raise_attachment = (forwarded && forwarded->value && forwarded->value->value==std::string{"no"});
// don't emit this pseudo header to clients.
msg->opt_fields = stringpair_list_delete_by_key(msg->opt_fields, pEpMIME::Pseudo_Header_Forwarded.data());
}
return msg;


Loading…
Cancel
Save