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