git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
blob 8c78c72bbeda0c01e2d10274cde5cf61c6625bdc 1285 bytes (raw)
name: mailinfo.h 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
 
#ifndef MAILINFO_H
#define MAILINFO_H

#include "strbuf.h"

#define MAX_BOUNDARIES 5

enum quoted_cr_action {
	quoted_cr_unset = -1,
	quoted_cr_nowarn,
	quoted_cr_warn,
	quoted_cr_strip,
	quoted_cr_invalid_action
};

struct mailinfo {
	FILE *input;
	FILE *output;
	FILE *patchfile;

	struct strbuf name;
	struct strbuf email;
	int keep_subject;
	int keep_non_patch_brackets_in_subject;
	enum quoted_cr_action quoted_cr;
	int add_message_id;
	int use_scissors;
	int use_inbody_headers;
	const char *metainfo_charset;

	struct strbuf *content[MAX_BOUNDARIES];
	struct strbuf **content_top;
	struct strbuf charset;
	unsigned int format_flowed:1;
	unsigned int delsp:1;
	char *message_id;
	enum  {
		TE_DONTCARE, TE_QP, TE_BASE64
	} transfer_encoding;
	int patch_lines;
	int filter_stage; /* still reading log or are we copying patch? */
	int header_stage; /* still checking in-body headers? */
	struct strbuf inbody_header_accum;
	struct strbuf **p_hdr_data;
	struct strbuf **s_hdr_data;

	struct strbuf log_message;
	int input_error;
};

enum quoted_cr_action mailinfo_parse_quoted_cr_action(const char *action);
void setup_mailinfo(struct mailinfo *);
int mailinfo(struct mailinfo *, const char *msg, const char *patch);
void clear_mailinfo(struct mailinfo *);

#endif /* MAILINFO_H */

debug log:

solving 8c78c72bbe ...
found 8c78c72bbe in https://public-inbox.org/git/d2052bcea925ec9e7d780e99e5b5e3bb1b9bd056.1620148732.git.congdanhqx@gmail.com/
found e0e094c311 in https://public-inbox.org/git/01d4a4853b8a0b6911a2d7773f836620566b4293.1620148732.git.congdanhqx@gmail.com/
found 1bcef5a6f3 in https://public-inbox.org/git/3215ea95cf869c8495d95cfd774973c330c14d1d.1620148732.git.congdanhqx@gmail.com/
found 79b1d6774e in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100644 79b1d6774ec9ea8a2ef7a6303abb9fc1c917c36f	mailinfo.h

applying [1/3] https://public-inbox.org/git/3215ea95cf869c8495d95cfd774973c330c14d1d.1620148732.git.congdanhqx@gmail.com/
diff --git a/mailinfo.h b/mailinfo.h
index 79b1d6774e..1bcef5a6f3 100644


applying [2/3] https://public-inbox.org/git/01d4a4853b8a0b6911a2d7773f836620566b4293.1620148732.git.congdanhqx@gmail.com/
diff --git a/mailinfo.h b/mailinfo.h
index 1bcef5a6f3..e0e094c311 100644


applying [3/3] https://public-inbox.org/git/d2052bcea925ec9e7d780e99e5b5e3bb1b9bd056.1620148732.git.congdanhqx@gmail.com/
diff --git a/mailinfo.h b/mailinfo.h
index e0e094c311..8c78c72bbe 100644

Checking patch mailinfo.h...
Applied patch mailinfo.h cleanly.
Checking patch mailinfo.h...
Applied patch mailinfo.h cleanly.
Checking patch mailinfo.h...
Applied patch mailinfo.h cleanly.

index at:
100644 8c78c72bbeda0c01e2d10274cde5cf61c6625bdc	mailinfo.h

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).