On 07/04/2015 10:00 PM, Cameron Simpson wrote:
On 04Jul2015 21:10, jd1008 <jd1008@xxxxxxxxx> wrote:
Looked for an add-on that will sort a folder by date (not for display
purposes)
but to physically re-organize a floder's messages so that they are
sorted from oldest
to most recent.
Any info on that?
Not offhand, but had you considered using external tools?
TB local folders are UNIX mbox files. If you should down TB, you can
modify the mbox file as you see fit and then blow away TB's index file
for that folder. TB will reread the mbox and reconstruct the index
file with the correct values when you open it again.
If you go this way you could use something like mutt to open the
folder, sort by date (a purely visual effect) and save the messages to
another mbox file. See if they are saved in date order in the new
file (by looking at it with a tool like "less", or any other text file
viewer). If so, copy the new folder back onto the TB folder file.
Or you could write a short program to read the mbox file into memory
(this would be easy in Python, which has mbox reading library
functions), sorts the messages, and writes them out in date order to a
new file. Then copy back to the TB folder.
Etc.
Remember to take a backup first! (Just copy your whole TB folder
directory in case of accidents.)
Finally, _why_ do you want the TB folder in date order, physically?
What is the objective here?
Reason is that I used to have accounts from many other email servers
where I had different user names too.
So, I ended up with several profiles in my TB (.thunderbird) for each
server I had
an account on.
When I finally settled on my current gmail account, I decided to cat all
Inbox folders
into one Inbox folder, and all Sent folders into one Sent folder (the
only folders I cared to keep).
But due to the fact I was sending/receiving emails on all those profiles
in those years,
the dates are thus mixed.
I want the physical layout to be by date so that if and when I decide to
use a CLI
mail client which does not sort messages by date, everything will be in
chronological order.
Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
That's just the sort of bloody stupid name they would choose.
- Reginald Mitchell, designer of the Spitfire
--
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