Pegasus Mail & Mercury

Welcome to the Community for Pegasus Mail and
The Mercury Mail Transport System, the Internet's longest-serving PC e-mail system!
Welcome to Pegasus Mail & Mercury Sign in | Join | Help
in
Home Blogs Forums Downloads Pegasus Mail Overview Mercury Overview Wiki

Missing or invalid Date: header issue

Last post 11-07-2019, 15:31 by Brian Fluet. 8 replies.
Sort Posts: Previous Next
  •  09-26-2019, 14:06

    • Brian Fluet is not online. Last active: 02-13-2020, 14:59 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 29,010

    Missing or invalid Date: header issue

    A while ago I added a filter that would add a Date: header when one was missing from a message.  I have since modified the filters to include adding another date header when the date format was invalid.  In both cases I've used a future date (added header is Date: 31 Dec 2025 00:01 -0500).  I just tested the same rule in Pegasus Mail modified to utilize the ~y substitution for todays date and it works (Date: ~y). 

    This is easy to test in Pegasus Mail by manipulating the date header of a .cnm file.  How can I test it in Mercury?

    Does anyone know if it will even work?

  •  10-06-2019, 11:03

    • PaulW is not online. Last active: 13 Feb 2020, 14:04 PaulW
    • Top 10 Contributor
    • Joined on 05-08-2007
    • UK
    • SuperStar
    • Points 18,475

    Re: Missing or invalid Date: header issue

    Did you take this any further?

    AFAIK Mercury will add a date header automatically if one is missing. 

  •  10-06-2019, 22:01

    • Brian Fluet is not online. Last active: 02-13-2020, 14:59 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 29,010

    Re: Missing or invalid Date: header issue

    I have not pursued this any further leaving the filters in place that add a Date header with a future date.

    Mercury does not add a Date header if one is missing.  

  •  10-07-2019, 14:14

    • Brian Fluet is not online. Last active: 02-13-2020, 14:59 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 29,010

    Re: Missing or invalid Date: header issue

    Last night I had a thought about how to test the ~y date substitution in Mercury so immediately tested it at the office this morning.  It works! 
  •  10-17-2019, 14:23

    • Brian Fluet is not online. Last active: 02-13-2020, 14:59 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 29,010

    Re: Missing or invalid Date: header issue

    On real-world experience I have found that the added date header is not recognized by Pegasus Mail due to the ~y date substitution enclosing the date in quotation marks.  (eg: Date: "Wed, 16 Oct 2019 20:39:06 -0400")
  •  10-31-2019, 13:45

    • FJR is not online. Last active: 2020-01-02, 13:47 FJR
    • Top 25 Contributor
    • Joined on 05-10-2007
    • Dortmund / Germany
    • Star
    • Points 7,910

    Re: Missing or invalid Date: header issue

    Hi Brian,

    Mercury does not add a Date header if one is missing.

    My Mercury does - not only date. Rawtext:

    From: LTO@wiwi.tu-dortmund.de
    To: mail.wiwi.tu-dortmund.de

    Device  ----------
    ...
    Message ----------
    Library Power Up
    Comment: Date missing from received message, added by wiso.tu-dortmund.de.
    Date: Thu, 31 Oct 2019 08:27:12 +0100
    Comment: Message-ID missing from received message, added by wiso.tu-dortmund.de.
    Message-ID: <3619EB1.5DBA9AE0.03E9@wiso.tu-dortmund.de>

    The only problem is, that Mercury obviously writes added headers to the wrong position in the mail - after the mail body instead after headers. That's why Pegasus can't find the added header date - Mercury has mutated it to a bodydate ;-)

    Bye    Olaf

    P.S. It's a status message from my tape library. Library has very poor mail functions and doesn't have any date somewhere.

  •  11-06-2019, 22:19

    • Brian Fluet is not online. Last active: 02-13-2020, 14:59 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 29,010

    Re: Missing or invalid Date: header issue

    My Mercury definitely does not add a date header when one is missing from an incoming message.  I'm using MercuryD to retrieve messages from domain hosted mailboxes.  I wonder if that has anything to do with it.


  •  11-07-2019, 8:43

    • FJR is not online. Last active: 2020-01-02, 13:47 FJR
    • Top 25 Contributor
    • Joined on 05-10-2007
    • Dortmund / Germany
    • Star
    • Points 7,910

    Re: Missing or invalid Date: header issue

    Hi Brian,

    my tapelibrary sends directly to MercuryS. It seems to be the job of MercuryS (or more common: the SMTP-Interface of a mailhost) to add missing headers. MercuryS does and a mailhost running postfix does too (in a configuration used at my job).

    In your case it should be the job of your providers mailhost holding your domain mailbox. Obviously his SMTP interface doesn't add missing headers. MercuryD at least is a POP-Client and those clients should not manipulate headers of mails.

    bye    Olaf

  •  11-07-2019, 15:31

    • Brian Fluet is not online. Last active: 02-13-2020, 14:59 Brian Fluet
    • Top 10 Contributor
    • Joined on 12-24-2014
    • North Carolina, USA
    • SuperStar
    • Points 29,010

    Re: Missing or invalid Date: header issue

    I just talked with a support tech at our domain host. He was able to see some of the messages coming in without a date header but said they can't do anything about it.  His understanding is that the sending SMTP server should be adding a date header to any message submitted without one.  The organizations from which I receive these messages are huge companies running their own SMTP servers do there isn't any hope of me initiating a resolution. 

View as RSS news feed in XML

Contact | Advertise | Host provider: PraktIT | Terms of Use | Privacy Statement
Copyright © 2007-2011 David Harris / Peter Strömblad. | Pegasus Mail Home Page