3 * scansbr.h -- definitions for scan()
10 #define SCNENC 2 /* message just fine, but encrypted(!!) */
11 #define SCNMSG 1 /* message just fine */
12 #define SCNEOF 0 /* empty message */
13 #define SCNERR (-1) /* error message */
14 #define SCNNUM (-2) /* number out of range */
15 #define SCNFAT (-3) /* fatal error */
18 * default format for `scan' and `inc'
23 "%4(msg)%<(cur)+%| %>%<{replied}-%?{encrypted}E%| %>\
24 %02(mon{date})/%02(mday{date})%<{date} %|*%>\
25 %<(mymbox{from})%<{to}To:%14(decode(friendly{to}))%>%>\
26 %<(zero)%17(decode(friendly{from}))%> \
27 %(decode{subject})%<{body}<<%{body}>>%>\n"
30 "%4(msg)%<(cur)+%| %>%<{replied}-%?{encrypted}E%| %>\
31 %02(mday{date})/%02(mon{date})%<{date} %|*%>\
32 %<(mymbox{from})%<{to}To:%14(decode(friendly{to}))%>%>\
33 %<(zero)%17(decode(friendly{from}))%> \
34 %(decode{subject})%<{body}<<%{body}>>%>\n"
42 int scan (FILE *, int, int, char *, int, int, int, char *, long, int);