Integrate test_header in test_view_mail and various coding style modifications
[rmail.git] / src / utils / rfc5322.h
blobc72d0c119eb8f21244dce5e79362efb959a70b41
1 #ifndef RFC5322_UTILS_H
2 #define RFC5322_UTILS_H
4 struct RFC5322_hdr {
5 char from[1000]; /* From: address */
6 unsigned char from_md5[16]; /* md5 of from address */
8 char subject[1000]; /* Subject: text */
9 };
12 int rfc5322_extract_address(char *from, const char *buf, size_t n);
13 void rfc5322_extract_subject(char *subject, const char *buf, size_t n);
15 #endif /* RFC5322_UTILS_H */