Page 1 of 1

[PP-Script] EMail.py

Posted: 05 Sep 2014, 08:46
by weekender
Hey Hug,

I'm using the script to send successful downloads from *****@openmailbox.org to *****@gmail.com.

Gmail receives the emails fine. However, I get a "Delivery status notification" in my openmailbox saying that the email sent had a missing required head field "Date".

I usually wouldn't mind but those emails are starting to pile up in the inbox.

Is there a way to mod your script to include the "Date" header when sending the emails out?

Here's a copy of the email I get:

Code: Select all

Subject: Delivery status notification, invalid header section: missing 
required header field
Date: 2014-09-04 16:44
 From: "Content-filter at mail.openmailbox.org" 
<postmaster@mail.openmailbox.org>
To: <*****@openmailbox.org>

Your message WAS SUCCESSFULLY RELAYED to:
   <*****@gmail.com>

This delivery report was generated by the program amavisd-new at host
mail.openmailbox.org. Our internal reference code for your message is
65443-11/lEJJkRgTTk97Iq

INVALID HEADER: MISSING REQUIRED HEADER FIELD

   Missing required header field: "Date"

Return-Path: <*****@openmailbox.org>
 From: "NZBGet" <*****@openmailbox.org>
Subject: Success for 
"My_File-x264.mkv"

MISSING REQUIRED HEADER FIELD

   The RFC 5322 document specifies rules for forming internet messages.
   Section '3.6. Field Definitions' specifies that certain header fields
   are required (origination date field and the "From:" originator 
field).

Re: [EMail.py] Add Date header field to emails?

Posted: 05 Sep 2014, 09:22
by hugbug
Already added in v14.

Re: [EMail.py] Add Date header field to emails?

Posted: 05 Sep 2014, 19:16
by weekender
hugbug wrote:Already added in v14.
In which version? I'm currently using 14.0-testing-r1103.

Re: [PP-Script] EMail.py

Posted: 05 Sep 2014, 19:46
by hugbug
r1107:
improved pp-script EMail.py: now it can send time statistics (thanks to JVM for the patch)
The updated script can be downloaded here (requires 14.0-testing-r1103).

Re: [EMail.py] Add Date header field to emails?

Posted: 05 Sep 2014, 19:47
by weekender
weekender wrote:
hugbug wrote:Already added in v14.
In which version? I'm currently using 14.0-testing-r1103.
Nevermind, I actually just took your updated script from r1118 and replaced the older one, works great!
Love the new statistic report :)