1 --- mutt-0.95.4/patchlist.c.orig Mon Mar 22 18:11:49 1999
2 +++ mutt-0.95.4/patchlist.c Tue Mar 23 13:19:30 1999
7 + printf("Feature patch: print_index 0.95.4 by Vikas Agnihotri\n");
11 /* DO NOT MODIFY AFTER THIS LINE */
12 diff -bu mutt-0.95.4.orig/OPS mutt-0.95.4/OPS
13 --- mutt-0.95.4.orig/OPS Sat Dec 12 09:05:35 1998
14 +++ mutt-0.95.4/OPS Tue Mar 23 13:43:00 1999
16 OP_VERSION "show the Mutt version number and date"
17 OP_VIEW_ATTACH "view attachment using mailcap entry if necessary"
18 OP_VIEW_ATTACHMENTS "show MIME attachments"
19 +OP_MAIN_PRINT_INDEX "print message index"
20 OP_MAIN_SHOW_LIMIT "show currently active limit pattern"
21 OP_MAIN_COLLAPSE_THREAD "collapse/uncollapse current thread"
22 OP_MAIN_COLLAPSE_ALL "collapse/uncollapse all threads"
23 diff -bu mutt-0.95.4.orig/commands.c mutt-0.95.4/commands.c
24 --- mutt-0.95.4.orig/commands.c Tue Feb 9 21:53:38 1999
25 +++ mutt-0.95.4/commands.c Tue Mar 23 13:43:08 1999
27 mutt_copy_message (fp, ctx, h, M_CM_DECODE, CH_WEED | CH_DECODE | CH_REORDER);
30 +void mutt_print_index (MUTTMENU *menu)
36 + static char AsciiChars[M_TREE_MAX] = " ,|-| >*&";
38 + if (query_quadoption (OPT_PRINT,"Print message index?") != M_YES)
42 + if ((thepid = mutt_create_filter (PrintCmd, &fp, NULL, NULL)) == -1)
45 + menu_status_line (buf, sizeof (buf), menu, NONULL (Status));
46 + fprintf(fp,"%s\n",buf);
48 + for (i = 0; i<menu->max; i++)
51 + menu->make_entry(buf,sizeof(buf),menu,i);
55 + if ((unsigned char) *s < M_TREE_MAX)
57 + while (*s && (unsigned char) *s < M_TREE_MAX)
59 + fputc (AsciiChars[*s], fp);
73 + if (mutt_wait_filter (thepid) || option (OPTWAITKEY))
74 + mutt_any_key_to_continue (NULL);
75 + mutt_message ("Message index printed.");
78 void mutt_print_message (HEADER *h)
81 diff -bu mutt-0.95.4.orig/curs_main.c mutt-0.95.4/curs_main.c
82 --- mutt-0.95.4.orig/curs_main.c Wed Mar 3 20:36:41 1999
83 +++ mutt-0.95.4/curs_main.c Tue Mar 23 13:43:01 1999
84 @@ -1572,6 +1572,12 @@
85 MAYBE_REDRAW (menu->redraw);
88 + case OP_MAIN_PRINT_INDEX:
91 + mutt_print_index(menu);
97 diff -Nru mutt-1.1.11.orig/functions.h mutt-1.1.11/functions.h
98 --- mutt-1.1.11.orig/functions.h Sun Apr 2 23:33:12 2000
99 +++ mutt-1.1.11/functions.h Sun Apr 2 23:34:45 2000
101 { "previous-new", OP_MAIN_PREV_NEW, "\033\t" },
102 { "next-unread", OP_MAIN_NEXT_UNREAD, NULL },
103 { "previous-unread", OP_MAIN_PREV_UNREAD, NULL },
104 + { "print-index", OP_MAIN_PRINT_INDEX, "P"},
105 { "parent-message", OP_MAIN_PARENT_MESSAGE, "P" },
108 diff -bu mutt-0.95.4.orig/mutt_menu.h mutt-0.95.4/mutt_menu.h
109 --- mutt-0.95.4.orig/mutt_menu.h Thu Jan 7 10:14:43 1999
110 +++ mutt-0.95.4/mutt_menu.h Tue Mar 23 13:43:02 1999
112 void menu_current_bottom (MUTTMENU *);
113 void menu_check_recenter (MUTTMENU *);
114 void menu_status_line (char *, size_t, MUTTMENU *, const char *);
115 +void mutt_print_index (MUTTMENU *);
117 MUTTMENU *mutt_new_menu (void);
118 void mutt_menuDestroy (MUTTMENU **);