summaryrefslogtreecommitdiff
path: root/pico
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-11-01 01:44:36 -0600
committerEduardo Chappa <chappa@washington.edu>2020-11-01 01:44:36 -0600
commit6486d2b43ee2ce595a4b292cd2620f56d7c20757 (patch)
tree7c9690df7847ed4ad97f847941f00838f4ed4e72 /pico
parent721a587c7965e284b8a281d2286a2a436b5b8424 (diff)
downloadalpine-6486d2b43ee2ce595a4b292cd2620f56d7c20757.tar.xz
* When forwarding a message, replacing an attachment might make Alpine
re-attach the original attachment. Reported by Michael Traxler. The solution was that as soon as we recognize that the attachment has changed we delete its id, since Alpine recognizes an old attachment by the existence of an id field in the attachment structure.
Diffstat (limited to 'pico')
-rw-r--r--pico/attach.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pico/attach.c b/pico/attach.c
index d05a1d3e..302947a6 100644
--- a/pico/attach.c
+++ b/pico/attach.c
@@ -544,6 +544,8 @@ SyncAttach(void)
strncpy(tp->filename, file, j);
tp->filename[j] = '\0';
+
+ if(tp->id) fs_give((void **) &tp->id);
}
else if(tp->size && strcmp(tp->size, size)){
rv = 1;