]> diplodocus.org Git - nmh/blob - uip/scansbr.h
decode_rfc2047(): Stop unused-variable warning if HAVE_ICONV false.
[nmh] / uip / scansbr.h
1 /* scansbr.h -- routines to help scan along...
2 *
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. */
6
7 #define SCNENC 2 /* message just fine, but encrypted(!!) */
8 #define SCNMSG 1 /* message just fine */
9 #define SCNEOF 0 /* empty message */
10 #define SCNERR (-1) /* error message */
11 #define SCNNUM (-2) /* number out of range */
12 #define SCNFAT (-3) /* fatal error */
13
14 /*
15 * default format for `scan' and `inc'
16 */
17
18 #ifndef UK
19 #define FORMAT \
20 "%4(msg)%<(cur)+%| %>%<{replied}-%?{encrypted}E%| %>\
21 %02(mon{date})/%02(mday{date})%<{date} %|*%>\
22 %<(mymbox{from})%<{to}To:%14(decode(friendly{to}))%>%>\
23 %<(zero)%17(decode(friendly{from}))%> \
24 %(decode{subject})%<{body}<<%{body}>>%>\n"
25 #else
26 #define FORMAT \
27 "%4(msg)%<(cur)+%| %>%<{replied}-%?{encrypted}E%| %>\
28 %02(mday{date})/%02(mon{date})%<{date} %|*%>\
29 %<(mymbox{from})%<{to}To:%14(decode(friendly{to}))%>%>\
30 %<(zero)%17(decode(friendly{from}))%> \
31 %(decode{subject})%<{body}<<%{body}>>%>\n"
32 #endif
33
34 #define WIDTH 78
35
36 int scan(FILE *, int, int, char *, int, int, int, char *, long, int, charstring_t *);
37 void scan_finished(void);
38 void scan_detect_mbox_style(FILE *);