Job Scheduler

Date header is missing in mails sent by the Job Scheduler

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.3.1
  • Fix Version/s: 1.3.2
  • Component/s: Job Scheduler Binaries
  • Description:
    Hide

    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.

    Show
    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.
  • Environment:
    any

Activity

There are no comments yet on this issue.

People

Dates

  • Due:
    09/Aug/07
    Created:
    05 August 2007 23:41
    Updated:
    13 August 2007 11:52
    Resolved:
    13 August 2007 11:52

Time Tracking

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