summaryrefslogtreecommitdiff
path: root/pith/send.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-03-14 22:36:02 -0600
committerEduardo Chappa <chappa@washington.edu>2021-03-14 22:36:02 -0600
commit903b5ac6305612d16e6053b4a4e8957d8ada9bde (patch)
treeeb34a7659a82bd6540b26f6cc8e2bf65f20bc677 /pith/send.c
parent64dffbd53473dc6ffa6218a9a0ecda54a9d3376f (diff)
downloadalpine-903b5ac6305612d16e6053b4a4e8957d8ada9bde.tar.xz
* The instruction to remove the double quotes from the processing of
customized headers existed in pine, but it was removed in alpine, but I do not know why, so we will restore it until we understand why it was removed. Also see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981781
Diffstat (limited to 'pith/send.c')
-rw-r--r--pith/send.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/pith/send.c b/pith/send.c
index 8d4d419a..307d9367 100644
--- a/pith/send.c
+++ b/pith/send.c
@@ -5070,8 +5070,16 @@ customized_hdr_setup(PINEFIELD *head, char **list, CustomType cstmtype)
/* give them an alloc'd default, even if empty */
pf->textbuf = cpystr((*value == ':')
? skip_white_space(++value) : "");
- if(pf->textbuf && pf->textbuf[0])
+ /* The instruction to remove the double quotes existed in
+ * pine, but it was removed in alpine, but I do not know
+ * why, so we will restore it until we understand why it
+ * was removed. Also see:
+ * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=981781
+ */
+ if(pf->textbuf && pf->textbuf[0]){
+ removing_double_quotes(pf->textbuf);
pf->val = cpystr(pf->textbuf);
+ }
pf++;
}