On 07/05/2015 11:21 PM, Cameron Simpson wrote:
On 05Jul2015 21:50, patrick o'callaghan <pocallaghan@xxxxxxxxx> wrote:
On Sun, 2015-07-05 at 12:30 -0600, jd1008 wrote:
Too tedious 'cause there are over 100K emails :)
Take a look at formail, part of the procmail package. It might be able
to do what you want, or at least be part of the solution.
I suspect not because it only considers one message at a time.
He basicly needs to take his messages and append them to a new inbox
in date order. He can either write a small program to suck messages
into memory, sort them, then write them out, or find a mail client
which will let him sort the view by date, tag/mark all the messages,
then feed them all _in_view_order_ to a fresh folder/mbox/mail-filing
program.
He sould at first cut try that in TB, since that's what he's using:
- view by date
- _copy_ all messages to new folder
- quit TB and examine the new folder to see what physical order it has
The catch of course is that one can easily imagine a mail reader
choosing to do that copy in the present physical order for I/O
efficiency reasons because the mail recent author takes the view that
the end user can always view the messages in any order they like. So
this approach may need to be tried in various mail readers until one
is found that acts in the view order.
Or one can write a program, where one has complete control. But if you
can get a mail client to do it then that will probably be faster.
Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
One of the difficulties of using either a script or a C/++ prog
to sort the messages is the following:
In earlier TB releases, the start of a message looked like this:
From - Sun Apr 06 10:43:07 2008
From - Sun Apr 06 10:47:01 2008
Shortly later it switched to this (as a result of running update):
From - Mon Apr 7 22:07:19 2008
From - Mon Apr 7 21:41:07 2008
So, my question is: is this due to a configuration setting
or is it due to TB changing the string output of the date?
If a configuration issue, I would like to set the date to be
something like this
year month day hour min secs
Thanx,
JD
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org