Ticket #2791 (closed Bugs: fixed)

Opened 5 years ago

Last modified 5 years ago

Date field in fax emails has wrong format (not RFC compliant)

Reported by: newnewuser Assigned to: p_lindheimer
Priority: major Milestone: Undetermined
Component: Core Version: SVN-HEAD
Keywords: Cc:
Confirmation: Need testing Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

Emails which contain faxes have an invalid date in the headers. As a result, the emails show at the bottom of the listing in some email clients.

The bug is in the file: /var/www/html/admin/modules/core/bin/fax-process.pl

Line 135: my $dtime = date;

The date command doesn't always (or by default) return an RFC valid date for use in emails.

Fix: Simple append the -R parameter which tells 'date' to print dates in RFC 2822 format, a valid format for emails.

my $dtime = date -R;

Attachments

patch.diff (478 bytes) - added by mbrevda on 07/01/08 18:27:21.

Change History

04/16/08 10:45:06 changed by newnewuser

warning, some formatting was lost in the above.

for example, the correct modified line is:

my $dtime = `date -R`;

07/01/08 18:27:21 changed by mbrevda

  • attachment patch.diff added.

07/01/08 18:28:22 changed by mbrevda

  • confirmation changed from Unreviewed to Need testing.

07/01/08 19:14:30 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

#2449 previously closed from no proper feedback

r5848