Skip to content

Commit

Permalink
Store other mail header types (e.g. content-transfer-endcoding) as RF…
Browse files Browse the repository at this point in the history
…C822HEADER

Useful when debugging mail issues, e.g. with MIME-encoded mail
  • Loading branch information
rswindell committed Apr 8, 2023
1 parent de90f92 commit ab0a999
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions exec/sendmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,15 @@ while((line=readln()) != undefined) {
case 'date':
hdr.date=m[2];
break;
default:
if(hdr.field_list == undefined)
hdr.field_list = [];
hdr.field_list.push(
{ type: RFC822HEADER,
data: line
}
);
break;
}
} else
print("Non-header line received: " + line);
Expand Down

0 comments on commit ab0a999

Please sign in to comment.