Re: TB - Sort add-on

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

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



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux