Help for this page

Select Code to Download


  1. or download this
    $hash{$msgid} = {
        filepos => $msgstart,
        inreply => $msgreply,
        nextmsg => []  # reference to an empty array
    }
    
  2. or download this
    my @heads;
    while(my ($key, $value) = each(%hash)) {
    ...
            push @heads, $key;
        }
    }
    
  3. or download this
    foreach my $msgid (@heads) {
        # do what ever you have to do to start a new thread
    ...
            thread_msgs($msgid);
        }
    }