2 * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
19 /* dynamic internal flags */
20 #define M_SHOWFLAT (1<<0)
21 #define M_SHOWCOLOR (1<<1)
23 #define M_SEARCH (1<<3)
24 #define M_TYPES (1<<4)
25 #define M_SHOW (M_SHOWCOLOR | M_SHOWFLAT)
27 /* exported flags for mutt_(do_)?pager */
28 #define M_PAGER_NSKIP (1<<5) /* preserve whitespace with smartwrap */
29 #define M_PAGER_MARKER (1<<6) /* use markers if option is set */
30 #define M_PAGER_RETWINCH (1<<7) /* need reformatting on SIGWINCH */
31 #define M_PAGER_MESSAGE (M_SHOWCOLOR | M_PAGER_MARKER)
32 #define M_PAGER_ATTACHMENT (1<<8)
34 #define M_DISPLAYFLAGS (M_SHOW | M_PAGER_NSKIP | M_PAGER_MARKER)
38 CONTEXT *ctx; /* current mailbox */
39 HEADER *hdr; /* current message */
40 BODY *bdy; /* current attachment */
41 FILE *fp; /* source stream */
42 ATTACHPTR **idx; /* attachment information */
46 int mutt_do_pager (const char *, const char *, int, pager_t *);
47 int mutt_pager (const char *, const char *, int, pager_t *);