Skip to content

Commit

Permalink
Save delivered-to and return-path headers as bin strings in mongo so …
Browse files Browse the repository at this point in the history
…that view source in webmail works correctly
  • Loading branch information
NickOvt committed Aug 1, 2024
1 parent ea9e4e0 commit d9bbd52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/filter-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ class FilterHandler {
});
}

prepared.mimeTree.header.unshift('Return-Path: <' + sender + '>');
prepared.mimeTree.header.unshift('Delivered-To: ' + recipient);
prepared.mimeTree.header.unshift('Return-Path: <' + Buffer.from(sender).toString('binary') + '>');
prepared.mimeTree.header.unshift('Delivered-To: ' + Buffer.from(recipient).toString('binary'));

prepared.mimeTree.parsedHeader['return-path'] = '<' + sender + '>';
prepared.mimeTree.parsedHeader['delivered-to'] = '<' + recipient + '>';
Expand Down

0 comments on commit d9bbd52

Please sign in to comment.