Hi,
As I reported before, as a follow up to a similar report, email tickets had no date field in the header and were reported by thunderbird as having a date of 1970... I modified the file Article.pm as follows to add a DATE header.


Ruairi


diff -u otrs/Kernel/System/Ticket/Article.pm /opt/otrs/Kernel/System/Ticket/Article.pm
--- otrs/Kernel/System/Ticket/Article.pm 2004-09-08 12:34:51.000000000 +0100
+++ /opt/otrs/Kernel/System/Ticket/Article.pm 2004-09-22 15:11:51.000000000 +0100
@@ -16,6 +16,7 @@
use Kernel::System::StdAttachment;
use Kernel::System::Crypt;


+use POSIX qw(strftime);
use vars qw($VERSION);
$VERSION = '$Revision: 1.70 $';
$VERSION =~ s/^\$.*:\W(.*)\W.+?$/$1/;
@@ -1114,6 +1115,8 @@
    my $InReplyTo = $Param{InReplyTo} || '';
    my $Loop = $Param{Loop} || 0;
    my $HistoryType = $Param{HistoryType} || 'SendAnswer';
+    my $DateStr = strftime "%a, %d %b %Y %H:%M:%S +0000", gmtime();
+
    # check needed stuff
    foreach (qw(TicketID UserID From Body)) {
      if (!$Param{$_}) {
@@ -1189,6 +1192,7 @@
        Cc => $Param{Cc},
        Bcc => $Param{Bcc},
        Subject => $Param{Subject},
+        Date => $DateStr,
        'Message-ID' => $MessageID,
        'In-Reply-To:' => $InReplyTo,
        'References' => $InReplyTo,

_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support oder Consulting für Ihr OTRS System?
=> http://www.otrs.de/

Reply via email to