]>
diplodocus.org Git - nmh/blob - uip/scansbr.h
1 /* scansbr.h -- routines to help scan along...
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. */
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 */
15 * default format for `scan' and `inc'
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"
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"
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 *);