I am trying to send a plain text report (which depends on blank spaces for readability.
I had something working for a month or so, then I upgraded from FreeNAS 11.2-U7 to FreeNAS 11.3-U4.1 and my report will no longer display properly in thunderbird. The problem seems to be that sendmail has been changed an has decedied to turn my mail into an attachments. Is this a bug?
Most important is how can I work around ths quickly.
I have a script that creates a text file which is sent using:
Contents of /tmp/zpool_report.tmp is:
Under FreeNAS 11.2-U7, a monospace table displayed spaces correctly in Thunderbird because the mailer sent a text file without turning it into an attachment.
After the "upgrade" the same email is sent as
I had something working for a month or so, then I upgraded from FreeNAS 11.2-U7 to FreeNAS 11.3-U4.1 and my report will no longer display properly in thunderbird. The problem seems to be that sendmail has been changed an has decedied to turn my mail into an attachments. Is this a bug?
Most important is how can I work around ths quickly.
I have a script that creates a text file which is sent using:
sendmail -t </tmp/zpool_report.tmp
Contents of /tmp/zpool_report.tmp is:
Code:
From: user@email.com To: user@email.com Subject: ZPool Status Report Content-Type: text/html MIME-Version: 1.0 <pre> ------------ Plain text report created by bash script here </pre>
Under FreeNAS 11.2-U7, a monospace table displayed spaces correctly in Thunderbird because the mailer sent a text file without turning it into an attachment.
Code:
----------------------HEADER INFO REMOVED Date: Mon, 14 Sep 2020 12:00:01 -0000 Message-ID: <xxxxxxx-20200914.120001.470804.b'Z1G-'@XXXXXXXXXX> X-Mailer: FreeNAS X-FreeNAS-Host: XXXXXXXXXX CjxwcmUgc3R5bGU9ImZvbnQtc2l6ZToxNHB4Ij4KCiMjIyMjIyMjIyMgWlBvb2wgc3RhdHVzIHJl cG9ydCBzdW1tYXJ5IGZvciBhbGwgcG9vbHMgb24gTW9uIFNlcCAxNCwgMjAyMCBAIDA4OjAwOjAw IEVEVAoKCistLS0tLS0tLS0tLS0tLSstLS0tLS0tLSstLS0tLS0rLS0tLS0tKy0tLS0tLSstLS0t ------ Removed for clarity
After the "upgrade" the same email is sent as
Code:
----------------------HEADER INFO REMOVED Message-ID: <xxxxxxx-20200915.120001.960836.b'ZPLo'@XXXXXXXXXX> X-Mailer: FreeNAS X-FreeNAS-Host: XXXXXXXXXX This is a multi-part message in MIME format. --===============1312279202446736124== Content-Type: multipart/alternative; boundary="===============4245250433065411735==" MIME-Version: 1.0 --===============4245250433065411735== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 CjxwcmUgc3R5bGU9ImZvbnQtc2l6ZToxNHB4Ij4KCiMjIyMjIyMjIyMgWlBvb2wgc3RhdHVzIHJl cG9ydCBzdW1tYXJ5IGZvciBhbGwgcG9vbHMgb24gVHVlIFNlcCAxNSwgMjAyMCBAIDA4OjAwOjAw IEVEVAoKCistLS0tLS0tLS0tLS0tLSstLS0tLS0tLSstLS0tLS0rLS0tLS0tKy0tLS0tLSstLS0t ------ Removed for clarity VyBBQ1BJIFRoZXJtYWwgVFowIFRlbXBlcmF0dXJlOiAyNy45QwpIVyBBQ1BJIFRoZXJtYWwgVFox IFRlbXBlcmF0dXJlOiAyOS45QwoKCjwvcHJlPgo= --===============4245250433065411735== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4KCjxicj4KJmx0O3ByZSBzdHlsZT0mcXVvdDtmb250LXNpemU6MTRweCZxdW90OyZndDs8 ------ Removed for clarity GJyPgombHQ7L3ByZSZndDs8YnI+Cgo= --===============4245250433065411735==-- --===============1312279202446736124==--
Last edited: