[PP-Script] EMail.py

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
Post Reply
weekender
Posts: 35
Joined: 07 Aug 2014, 19:04

[PP-Script] EMail.py

Post by weekender » 05 Sep 2014, 08:46

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).

hugbug
Developer & Admin
Posts: 7514
Joined: 09 Sep 2008, 11:58
Location: Germany

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

Post by hugbug » 05 Sep 2014, 09:22

Already added in v14.

weekender
Posts: 35
Joined: 07 Aug 2014, 19:04

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

Post by weekender » 05 Sep 2014, 19:16

hugbug wrote:Already added in v14.
In which version? I'm currently using 14.0-testing-r1103.

hugbug
Developer & Admin
Posts: 7514
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: [PP-Script] EMail.py

Post by hugbug » 05 Sep 2014, 19:46

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).

weekender
Posts: 35
Joined: 07 Aug 2014, 19:04

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

Post by weekender » 05 Sep 2014, 19:47

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 :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests