New changes: Sender: cannot be blank, Sender: always overrides From:
[mmh] / h / scansbr.h
1
2 /*
3  * scansbr.h -- definitions for scan()
4  */
5
6 extern char *scanl;
7
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                          */
14
15 /*
16  * default format for `scan' and `inc'
17  */
18
19 #ifndef UK
20 #define FORMAT  \
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"
26 #else
27 #define FORMAT  \
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"
33 #endif
34
35 #define WIDTH  78
36
37 /*
38  * prototypes
39  */
40 int scan (FILE *, int, int, char *, int, int, int, char *, long, int);