]>
diplodocus.org Git - nmh/blob - uip/mhshowsbr.h
1 /* mhshowsbr.h -- display the contents of MIME messages.
3 * This code is Copyright (c) 2017, by the authors of nmh. See the
4 * COPYRIGHT file in the root directory of the nmh distribution for
5 * complete copyright information.
10 * Display MIME message(s) on standard out.
14 * cts - NULL terminated array of CT structures for messages
16 * concat - If true, concatenate all MIME parts. If false, show each
17 * MIME part under a separate pager.
18 * textonly - If true, only display "text" MIME parts
19 * inlineonly - If true, only display MIME parts that are marked with
20 * a disposition of "inline" (includes parts that lack a
21 * Content-Disposition header).
23 void show_all_messages(CT
*cts
, int concat
, int textonly
, int inlineonly
);
26 * Display (or store) a single MIME part using the specified command
30 * ct - The Content structure of the MIME part we wish to display
31 * alternate - Set this to true if this is one part of a MIME
32 * multipart/alternative part. Will suppress some errors and
33 * will cause the function to return DONE instead of OK on
35 * cp - The command string to execute. Will be run through the
36 * parser for %-escapes as described in mhshow(1).
37 * cracked - If set, chdir() to this directory before executing the
38 * command in "cp". Only used by mhstore(1).
39 * fmt - A series of mh-format(5) instructions to execute if the
40 * command string indicates a marker is desired. Can be NULL.
42 * Returns NOTOK if we could not display the part, DONE if alternate was
43 * set and we could display the part, and OK if alternate was not set and
44 * we could display the part.
46 int show_content_aux(CT ct
, int alternate
, char *cp
, char *cracked
,
49 int convert_charset(CT ct
, char *dest_charset
, int *message_mods
);
55 extern char *markerform
;
56 extern char *headerform
;