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