6 #define MAX_BOUNDARIES 5
10 enum quoted_cr_action
{
25 int keep_non_patch_brackets_in_subject
;
26 int quoted_cr
; /* enum quoted_cr_action */
29 int use_inbody_headers
;
30 const char *metainfo_charset
;
32 struct strbuf
*content
[MAX_BOUNDARIES
];
33 struct strbuf
**content_top
;
34 struct strbuf charset
;
35 unsigned int format_flowed
:1;
37 unsigned int have_quoted_cr
:1;
40 TE_DONTCARE
, TE_QP
, TE_BASE64
43 int filter_stage
; /* still reading log or are we copying patch? */
44 int header_stage
; /* still checking in-body headers? */
45 struct strbuf inbody_header_accum
;
46 struct strbuf
**p_hdr_data
;
47 struct strbuf
**s_hdr_data
;
49 struct strbuf log_message
;
53 int mailinfo_parse_quoted_cr_action(const char *actionstr
, int *action
);
54 void setup_mailinfo(struct repository
*r
, struct mailinfo
*);
55 int mailinfo(struct mailinfo
*, const char *msg
, const char *patch
);
56 void clear_mailinfo(struct mailinfo
*);
58 #endif /* MAILINFO_H */