Thanks for the help guys - much appreciated :) - I wasn't expecting such a collection of comprehensive and speedy responses ;)

Fletch - I hadn't seen that module before - however I had read the article regarding threading that it links to. Don't know how I managed to miss the module... Thanks for pointing it out

ruzam - Thanks for the code - I had a quick play with it, and couldn't get it working as I wanted. I'll have another crack at it, as I have only looked at it briefly.

esper - Sorry, should have been clearer in my original posting - I did create a hash, where the keys were every message-id and tried your first suggestion - but it was indeed too slow. I didn't think of creating a 2nd hash containing the thread's head. I'll give that a shot, sounds like it could work!

roboticus - Unfortunately, Yahoo groups threaded view goes by subject rather than message-id - giving me some really weird threads as there are thousands of messages with the subject "hi" in my mbox ;) - Also, it took me 3 weeks to get the messages downloaded, as yahoo prevent you from accessing pages too quickly, eventually banning your IP from the whole of yahoo groups! - I put a delay in my download script to get around this, but I'm not going to set the download going again!

parv - Thanks for the code - I will test it, and see what I can do with it. I've never used mutt before, so it may take a while for me to try you other suggestions. If I can't get it working any other way, then I'll give it a shot.


In reply to Re: Organising mbox into threads? by LoonyPandora
in thread Organising mbox into threads? by LoonyPandora

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.