linamh/net-mail/mailman/files/mhonarc-2.6.16-list-output-order.patch

46 lines
1.4 KiB
Diff
Raw Normal View History

--- MHonArc-2.6.16/lib/mhthread.pl.orig 2006-09-08 20:46:48.000000000 -0700
+++ MHonArc-2.6.16/lib/mhthread.pl 2006-09-08 20:47:14.000000000 -0700
@@ -406,22 +406,22 @@
## Decrement level count if their were replies
--$level if ($haverepls);
+ ## Close entry text
+ if ($attop) {
+ &print_thread_var($handle, $idx, \$TTOPEND);
+ } elsif (!$single && !$didtliend) {
+ &print_thread_var($handle, $idx, \$TLIEND);
+ }
+
## Check for missing messages
if ($DoMissingMsgs && !($attop || $single)) {
for ($i=$depth; $i > 0; --$i) {
- &print_thread_var($handle, $idx, \$TLINONEEND);
&print_thread_var($handle, $idx, \$TSUBLISTEND)
if $level <= $TLEVELS;
+ &print_thread_var($handle, $idx, \$TLINONEEND);
--$level;
}
}
-
- ## Close entry text
- if ($attop) {
- &print_thread_var($handle, $idx, \$TTOPEND);
- } elsif (!$single && !$didtliend) {
- &print_thread_var($handle, $idx, \$TLIEND);
- }
}
##---------------------------------------------------------------------------
@@ -636,9 +636,9 @@
## Check for missing messages
if ($DoMissingMsgs && !($attop || $single)) {
for ($i = $depth; $i > 0; $i--) {
- $ret .= &expand_thread_var($idx, \$TSLICELINONEEND);
$ret .= &expand_thread_var($idx, \$TSLICESUBLISTEND)
if $level <= $TSLICELEVELS;
+ $ret .= &expand_thread_var($idx, \$TSLICELINONEEND);
$level--;
}
}