Re: [MlMt] Sorting by date received...

2015-10-07 Thread Benny Kjær Nielsen

On 7 Oct 2015, at 1:44, Bill Cole wrote:


On 6 Oct 2015, at 17:44, Benny Kjær Nielsen wrote:

Agreed. As far as I can see then this would only happen if a message 
has neither Date header nor any Received headers. I guess I should 
just make “Date Received” default to the current date (the first 
time MailMate sees it).


I had always assumed "Date Received" was the IMAP "INTERNALDATE" since 
that's always available and should be when the message was 
delivered...


That would be a simple and straightforward solution. Unfortunately, 
INTERNALDATE cannot be trusted to be correct (due to a combination of 
buggy servers and buggy email clients -- including MailMate at some 
point in the past).


I think I've got a note somewhere about using INTERNALDATE when it 
(heuristically) appears to be correct, but it's not a high priority.


--
Benny
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] Sorting by date received...

2015-10-07 Thread Benny Kjær Nielsen

On 6 Oct 2015, at 23:47, Seebs wrote:


On 6 Oct 2015, at 16:44, Benny Kjær Nielsen wrote:

Agreed. As far as I can see then this would only happen if a message 
has neither Date header nor any Received headers. I guess I should 
just make “Date Received” default to the current date (the first 
time MailMate sees it).


D'oh. I meant "Date Sent", not "Date Received". I was using that for 
my inbox because it produced slightly more useful results for things 
that got delayed in transit (such as by greylisting).


Well, “Date Sent” is based on the “Date” header which is 
generated by email clients -- in other words it cannot be trusted to be 
correct :-)


So some things have no "Date Sent", and then get sorted as Older Than 
Everything.


I guess the “Date Sent” value could fall back to “Date Received” 
when a “Date” header is not found.


...

Ok, I've added that now, but it won't affect already fetched messages.

--
Benny
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] Sorting by date received...

2015-10-06 Thread Bill Cole

On 6 Oct 2015, at 17:44, Benny Kjær Nielsen wrote:


On 6 Oct 2015, at 23:33, Seebs wrote:

I would sort of prefer for "there is no date available" to be 
replaced with either Some Other Date, or treated as newer than any 
date rather than older than any date. Some mail (thus far, 
exclusively spam) comes in with no date header, and if I have an 
inbox sorted by date received, it gets shoved to the far bottom, 
which is inconvenient.


Agreed. As far as I can see then this would only happen if a message 
has neither Date header nor any Received headers. I guess I should 
just make “Date Received” default to the current date (the first 
time MailMate sees it).


I had always assumed "Date Received" was the IMAP "INTERNALDATE" since 
that's always available and should be when the message was delivered...

___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] Sorting by date received...

2015-10-06 Thread Seebs

On 6 Oct 2015, at 16:44, Benny Kjær Nielsen wrote:

Agreed. As far as I can see then this would only happen if a message 
has neither Date header nor any Received headers. I guess I should 
just make “Date Received” default to the current date (the first 
time MailMate sees it).


D'oh. I meant "Date Sent", not "Date Received". I was using that for my 
inbox because it produced slightly more useful results for things that 
got delayed in transit (such as by greylisting). So some things have no 
"Date Sent", and then get sorted as Older Than Everything.


-s
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] Sorting by date received...

2015-10-06 Thread Benny Kjær Nielsen

On 6 Oct 2015, at 23:33, Seebs wrote:

I would sort of prefer for "there is no date available" to be replaced 
with either Some Other Date, or treated as newer than any date rather 
than older than any date. Some mail (thus far, exclusively spam) comes 
in with no date header, and if I have an inbox sorted by date 
received, it gets shoved to the far bottom, which is inconvenient.


Agreed. As far as I can see then this would only happen if a message has 
neither Date header nor any Received headers. I guess I should just make 
“Date Received” default to the current date (the first time MailMate 
sees it).


--
Benny
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


[MlMt] Sorting by date received...

2015-10-06 Thread Seebs
I would sort of prefer for "there is no date available" to be replaced 
with either Some Other Date, or treated as newer than any date rather 
than older than any date. Some mail (thus far, exclusively spam) comes 
in with no date header, and if I have an inbox sorted by date received, 
it gets shoved to the far bottom, which is inconvenient.


-s
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate