Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-81

Date header is missing in mails sent by the Job Scheduler

    XMLWordPrintable

Details

    Description

      A sourceforge support request was posted by Michael, see https://sourceforge.net/forum/message.php?msg_id=4448670

      Effectively there is a problem: Mails are sent without the resp. date, instead the header should contain "Date: ". As you can see from a typical mail header:

      Received: FROM [192.168.2.3] BY localhost with hMailServer ; Sun, 5 Aug 2007 22:49:41 +0200
      Message-ID: <10586786.1186346981281.JavaMail.ap@APXP>
      From: "Job Scheduler localhost an APXP:4444" <scheduler@localhost.com>
      To: ap@localhost.com
      Subject: [warning] Task monitor_sample_warning mit Warnungen beendet
      Mime-Version: 1.0
      Content-Type: multipart/mixed;
      boundary="----=_Part_0_19175605.1186346981234"
      X-SOS-Spooler-Job: monitor_sample_warning

      Instead - between "From: " and "To: " - a header entry "Date: " should be given as in:

      Date: Sun, 5 Aug 2007 22:12:02 +0200

      This problem

      • does not occur with JMail, as the "Date: " is automatically set by JMail
      • occurs with JavaMail, the header should be created by the following code:
        Message.setSentDate(new Date());

      Please, add this line of code and verify the effective solution to the problem.

      Attachments

        Activity

          People

            jz Joacim Zschimmer
            ap Andreas PĆ¼schel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified