I have a similar problem like this and in addition date in the Received header 
is in one format (2 sep 2000) and the daet in the date header is 2-sep-2000
----------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: ROL-1578
                 URL: 
http://opensource.atlassian.com/projects/roller/browse/ROL-1578
             Project: Roller
          Issue Type: Bug
            Reporter: vinutha
            Assignee: Roller Unassigned


 Hi!

I had a small problem with the invitaions sent by roller. The generated mails 
did not contain a date header, so Thunderbird assumed 01/01/1970 as sent date, 
and all generated mails ended up on the bottom of my mail folder. Is this a bug 
or am I missing something here?

Since I was not able to find any information on this behaviour in the bug 
tracker or the mailing list, I assume that this is a new problem.
Adding the date to the message object solved this issue for me, so here's my 
patch:

--- MailUtil.java 2006-01-05 21:56:24.000000000 +0100
+++ /usr/local/src/roller-src/src/org/roller/util/MailUtil.java 2006-02-07 
16:19:15.000000000 +0100
@@ -90,6 +90,7 @@
                }
         message.setSubject((subject == null) ? "(no subject)" : subject);
         message.setContent(content, mimeType);
+ message.setSentDate(new java.util.Date());

// First collect all the addresses together.
         Address[] remainingAddresses = message.getAllRecipients();


Regards,
Jan
 Description    
   Hi! I had a small problem with the invitaions sent by roller. The generated 
mails did not contain a date header, so Thunderbird assumed 01/01/1970 as sent 
date, and all generated mails ended up on the bottom of my mail folder. Is this 
a bug or am I missing something here? Since I was not able to find any 
information on this behaviour in the bug tracker or the mailing list, I assume 
that this is a new problem. Adding the date to the message object solved this 
issue for me, so here's my patch: --- MailUtil.java 2006-01-05 
21:56:24.000000000 +0100 +++ 
/usr/local/src/roller-src/src/org/roller/util/MailUtil.java 2006-02-07 
16:19:15.000000000 +0100 @@ -90,6 +90,7 @@                 }          
message.setSubject((subject == null) ? "(no subject)" : subject);          
message.setContent(content, mimeType); + message.setSentDate(new 
java.util.Date()); // First collect all the addresses together.          
Address[] remainingAddresses = message.getAllRecipients(); Regards, Jan
        Show »

 All     Comments        Change History                   Sort Order: 
[Ascending order - Click to sort in descending order]
[ Permlink | « Hide ]
David Johnson - [07/Feb/06 09:44 AM ]
I'll try to address this in 2.2
[ Show » ]
David Johnson - [07/Feb/06 09:44 AM ] I'll try to address this in 2.2

[ Permlink | « Hide ]
Rob Wilson - [22/Feb/06 11:18 AM ]
It appears current dates are now being inserted. See below.

Return-path: <[EMAIL PROTECTED]>
Received: from conversion-daemon.bur-mail2.east.sun.com by
 bur-mail2.east.sun.com
 (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003))
 id <[EMAIL PROTECTED]>
 (original mail from [EMAIL PROTECTED]) for [EMAIL PROTECTED];
 Wed, 22 Feb 2006 12:01:30 -0500 (EST)
Received: from sfbaymail1sca.SFBay.Sun.COM
 (sfbaymail1sca.SFBay.Sun.COM [129.145.154.35]) by bur-mail2.east.sun.com
 (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003))
 with ESMTP id <[EMAIL PROTECTED]> for
 [EMAIL PROTECTED]; Wed, 22 Feb 2006 12:01:30 -0500 (EST)
Received: from blog (blog.SFBay.Sun.COM [10.6.48.139])
by sfbaymail1sca.SFBay.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2)
 with ESMTP id k1MH1TTe005078; Wed, 22 Feb 2006 09:01:29 -0800 (PST)
Date: Wed, 22 Feb 2006 09:01:30 -0800 (PST)
From: [EMAIL PROTECTED]
Subject: Roller: invitation to join weblog "QTP" (QTP)
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Message-id: <[EMAIL PROTECTED]>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-transfer-encoding: 7BIT
Original-recipient: rfc822;[EMAIL PROTECTED]
[ Show » ]
Rob Wilson - [22/Feb/06 11:18 AM ] It appears current dates are now being 
inserted. See below. Return-path: <[EMAIL PROTECTED]> Received: from 
conversion-daemon.bur-mail2.east.sun.com by  bur-mail2.east.sun.com  (iPlanet 
Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003))  id <[EMAIL PROTECTED]>  
(original mail from [EMAIL PROTECTED]) for [EMAIL PROTECTED];  Wed, 22 Feb 2006 
12:01:30 -0500 (EST) Received: from sfbaymail1sca.SFBay.Sun.COM  
(sfbaymail1sca.SFBay.Sun.COM [129.145.154.35]) by bur-mail2.east.sun.com  
(iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003))  with ESMTP id 
<[EMAIL PROTECTED]> for  [EMAIL PROTECTED]; Wed, 22 Feb 2006 12:01:30 -0500 
(EST) Received: from blog (blog.SFBay.Sun.COM [10.6.48.139]) by 
sfbaymail1sca.SFBay.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2)  with ESMTP id 
k1MH1TTe005078; Wed, 22 Feb 2006 09:01:29 -0800 (PST) Date: Wed, 22 Feb 2006 
09:01:30 -0800 (PST) From: [EMAIL PROTECTED] Subject: Roller: invitation to 
join weblog "QTP" (QTP) To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Message-id: 
<[EMAIL PROTECTED]> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 
Content-transfer-encoding: 7BIT Original-recipient: rfc822;[EMAIL PROTECTED]

[ Permlink | « Hide ]
linda skrocki - [13/Apr/06 10:56 AM ]
Fix released in 2.2.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://opensource.atlassian.com/projects/roller/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to