[hypermail] pretty printing of top index

From: Moritz Willers <Moritz.Willers_at_ubsw.com_at_hypermail-project.org>
Date: Wed, 30 May 2001 17:50:43 +0100
Message-ID: <3B1524E3.CDC2E199_at_ubsw.com>


hi,

I added the following change to print.c to stop hypermail from generating an empty line saying 'XY messages sorted by:' and then nothing if the 'avoid_top_indices' is set to all sort orders. I only want the sorting to be available in the monthly sections. not over the entire archive.

I'd be happy if you could include that change in the next update, so I won't have to reapply it again:)

thanks - Moritz

pretty printed change:

% diff -u print.c-orig print.c

--- print.c-orig        Wed May 30 17:38:52 2001
+++ print.c     Wed May 30 17:39:21 2001
_at_@ -324,8 +324,12 @@
        fprintf(fp, "<strong><a href=\"#end\">%s</a></strong><br>\n",
                lang[MSG_MOST_RECENT_MESSAGES]);
 
-    fprintf(fp, "<strong>%d %s %s:</strong> \n", amountmsgs,
-           lang[MSG_ARTICLES], lang[MSG_SORTED_BY]);
+ if (called_from != AUTHOR_INDEX && show_index[dlev][AUTHOR_INDEX] ||
+        called_from != DATE_INDEX &&  show_index[dlev][DATE_INDEX] ||
+        called_from != THREAD_INDEX && show_index[dlev][THREAD_INDEX]
||
+        called_from != SUBJECT_INDEX &&
show_index[dlev][SUBJECT_INDEX])
+           fprintf(fp, "<strong>%d %s %s:</strong> \n", amountmsgs,
+               lang[MSG_ARTICLES], lang[MSG_SORTED_BY]);
 
     if (called_from != AUTHOR_INDEX && show_index[dlev][AUTHOR_INDEX])
        fprintf(fp, "<a href=\"%s\">[ %s ]</a>\n", 


in format that can be fed to ed ...

% diff -e print.c-orig print.c

327,328c

    if (called_from != AUTHOR_INDEX && show_index[dlev][AUTHOR_INDEX] ||
        called_from != DATE_INDEX &&  show_index[dlev][DATE_INDEX] ||
        called_from != THREAD_INDEX && show_index[dlev][THREAD_INDEX] ||
        called_from != SUBJECT_INDEX && show_index[dlev][SUBJECT_INDEX])
            fprintf(fp, "<strong>%d %s %s:</strong> \n", amountmsgs,
                lang[MSG_ARTICLES], lang[MSG_SORTED_BY]);
..

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. Received on Wed 30 May 2001 11:09:46 PM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:53 PM GMT GMT