THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
git
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.0KB

  1. #ifndef MAILINFO_H
  2. #define MAILINFO_H
  3. #include "strbuf.h"
  4. #define MAX_BOUNDARIES 5
  5. struct mailinfo {
  6. FILE *input;
  7. FILE *output;
  8. FILE *patchfile;
  9. struct strbuf name;
  10. struct strbuf email;
  11. int keep_subject;
  12. int keep_non_patch_brackets_in_subject;
  13. int add_message_id;
  14. int use_scissors;
  15. int use_inbody_headers;
  16. const char *metainfo_charset;
  17. struct strbuf *content[MAX_BOUNDARIES];
  18. struct strbuf **content_top;
  19. struct strbuf charset;
  20. unsigned int format_flowed:1;
  21. unsigned int delsp:1;
  22. char *message_id;
  23. enum {
  24. TE_DONTCARE, TE_QP, TE_BASE64
  25. } transfer_encoding;
  26. int patch_lines;
  27. int filter_stage; /* still reading log or are we copying patch? */
  28. int header_stage; /* still checking in-body headers? */
  29. struct strbuf inbody_header_accum;
  30. struct strbuf **p_hdr_data;
  31. struct strbuf **s_hdr_data;
  32. struct strbuf log_message;
  33. int input_error;
  34. };
  35. void setup_mailinfo(struct mailinfo *);
  36. int mailinfo(struct mailinfo *, const char *msg, const char *patch);
  37. void clear_mailinfo(struct mailinfo *);
  38. #endif /* MAILINFO_H */