Link Here
|
1 |
--- PATCHES.orig 2021-06-13 21:49:47 UTC |
1 |
--- PATCHES.orig 2022-02-12 23:46:24 UTC |
2 |
+++ PATCHES |
2 |
+++ PATCHES |
3 |
@@ -0,0 +1 @@ |
3 |
@@ -0,0 +1 @@ |
4 |
+patch-1.5.6.cb.reverse_reply.2 |
4 |
+patch-1.5.6.cb.reverse_reply.2 |
5 |
--- init.h.orig 2021-06-13 21:49:46 UTC |
5 |
--- init.h.orig 2022-02-12 23:46:24 UTC |
6 |
+++ init.h |
6 |
+++ init.h |
7 |
@@ -3322,6 +3322,13 @@ struct option_t MuttVars[] = { |
7 |
@@ -3430,6 +3430,13 @@ struct option_t MuttVars[] = { |
8 |
** In either case, a missing real name will be filled in afterwards |
8 |
** In either case, a missing real name will be filled in afterwards |
9 |
** using the value of $$realname. |
9 |
** using the value of $$realname. |
10 |
*/ |
10 |
*/ |
Link Here
|
15 |
+ ** headers of reply mails you send, like $reverse_alias does in the index. |
15 |
+ ** headers of reply mails you send, like $reverse_alias does in the index. |
16 |
+ ** When unset, the headers taken from the original mail are left unchanged. |
16 |
+ ** When unset, the headers taken from the original mail are left unchanged. |
17 |
+ */ |
17 |
+ */ |
18 |
{ "rfc2047_parameters", DT_BOOL, R_NONE, {.l=OPTRFC2047PARAMS}, {.l=0} }, |
18 |
{ "rfc2047_parameters", DT_BOOL, R_NONE, {.l=OPTRFC2047PARAMS}, {.l=1} }, |
19 |
/* |
19 |
/* |
20 |
** .pp |
20 |
** .pp |
21 |
--- mutt.h.orig 2021-06-13 21:49:46 UTC |
21 |
--- mutt.h.orig 2022-02-12 23:46:24 UTC |
22 |
+++ mutt.h |
22 |
+++ mutt.h |
23 |
@@ -525,6 +525,7 @@ enum |
23 |
@@ -533,6 +533,7 @@ enum |
24 |
OPTREVALIAS, |
24 |
OPTREVALIAS, |
25 |
OPTREVNAME, |
25 |
OPTREVNAME, |
26 |
OPTREVREAL, |
26 |
OPTREVREAL, |
Link Here
|
28 |
OPTRFC2047PARAMS, |
28 |
OPTRFC2047PARAMS, |
29 |
OPTSAVEADDRESS, |
29 |
OPTSAVEADDRESS, |
30 |
OPTSAVEEMPTY, |
30 |
OPTSAVEEMPTY, |
31 |
--- protos.h.orig 2021-05-23 18:20:51 UTC |
31 |
--- protos.h.orig 2022-02-09 20:12:23 UTC |
32 |
+++ protos.h |
32 |
+++ protos.h |
33 |
@@ -85,6 +85,7 @@ char* mutt_extract_message_id (const char *, const cha |
33 |
@@ -86,6 +86,7 @@ char* mutt_extract_message_id (const char *, const cha |
34 |
ADDRESS *mutt_get_address (ENVELOPE *, char **); |
34 |
ADDRESS *mutt_get_address (ENVELOPE *, char **); |
35 |
ADDRESS *mutt_lookup_alias (const char *s); |
35 |
ADDRESS *mutt_lookup_alias (const char *s); |
36 |
ADDRESS *mutt_remove_duplicates (ADDRESS *); |
36 |
ADDRESS *mutt_remove_duplicates (ADDRESS *); |
37 |
+ADDRESS *mutt_reverse_address (ADDRESS *); |
37 |
+ADDRESS *mutt_reverse_address (ADDRESS *); |
|
|
38 |
ADDRESS *mutt_remove_adrlist_group_delimiters (ADDRESS *); |
38 |
ADDRESS *mutt_expand_aliases (ADDRESS *); |
39 |
ADDRESS *mutt_expand_aliases (ADDRESS *); |
39 |
ADDRESS *mutt_parse_adrlist (ADDRESS *, const char *); |
40 |
ADDRESS *mutt_parse_adrlist (ADDRESS *, const char *); |
40 |
|
41 |
--- send.c.orig 2022-01-15 20:43:36 UTC |
41 |
--- send.c.orig 2021-05-28 19:33:58 UTC |
|
|
42 |
+++ send.c |
42 |
+++ send.c |
43 |
@@ -739,6 +739,10 @@ void mutt_fix_reply_recipients (ENVELOPE *env) |
43 |
@@ -744,6 +744,10 @@ void mutt_fix_reply_recipients (ENVELOPE *env) |
44 |
/* the CC field can get cluttered, especially with lists */ |
44 |
/* the CC field can get cluttered, especially with lists */ |
45 |
env->to = mutt_remove_duplicates (env->to); |
45 |
env->to = mutt_remove_duplicates (env->to); |
46 |
env->cc = mutt_remove_duplicates (env->cc); |
46 |
env->cc = mutt_remove_duplicates (env->cc); |
47 |
+ if (option (OPTREVREPLY)){ |
47 |
+ if (option (OPTREVREPLY)){ |
48 |
+ env->to = mutt_reverse_address (env->to); |
48 |
+ env->to = mutt_reverse_address (env->to); |
49 |
+ env->cc = mutt_reverse_address (env->cc); |
49 |
+ env->cc = mutt_reverse_address (env->cc); |
50 |
+ } |
50 |
+ } |
51 |
env->cc = mutt_remove_xrefs (env->to, env->cc); |
51 |
env->cc = mutt_remove_xrefs (env->to, env->cc); |
52 |
|
52 |
|
53 |
if (env->cc && !env->to) |
53 |
if (env->cc && !env->to) |
54 |
--- sendlib.c.orig 2021-05-23 18:20:51 UTC |
54 |
--- sendlib.c.orig 2022-01-22 23:36:22 UTC |
55 |
+++ sendlib.c |
55 |
+++ sendlib.c |
56 |
@@ -3044,6 +3044,35 @@ static void set_noconv_flags (BODY *b, short flag) |
56 |
@@ -3093,6 +3093,37 @@ static void set_noconv_flags (BODY *b, short flag) |
57 |
} |
57 |
} |
58 |
} |
58 |
} |
59 |
|
59 |
|
Link Here
|
85 |
+ } |
85 |
+ } |
86 |
+ return addr; |
86 |
+ return addr; |
87 |
+} |
87 |
+} |
|
|
88 |
+ |
89 |
+ |
88 |
+ |
90 |
+ |
89 |
int mutt_write_fcc (const char *path, SEND_CONTEXT *sctx, const char *msgid, int post, const char *fcc) |
91 |
int mutt_write_fcc (const char *path, SEND_CONTEXT *sctx, const char *msgid, int post, const char *fcc) |
90 |
{ |
92 |
{ |