summaryrefslogtreecommitdiffstats
path: root/compose.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-11-15 09:34:15 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-11-15 09:34:15 +0000
commit8fa824fc79c18c4621c6fbb8c88ce45716ac3a6e (patch)
tree969aa07d998dd2783f419bf44431a7083e316a73 /compose.c
parentb7dffe977f2f92adb01e29caa8b2b24b27d439fe (diff)
I can elaborate a little more on the last paragraph. It is deletion
of the top level part direct under a message/rfc822 part which gives problems because the headers of the message/rfc822 part have to be changed in this case. It is hard to tell exactly how many bytes and lines will be removed and added in this case. If we can refrain from deletion of such parts and thus only allow deletion of parts direct under a multipart part, then it is relative easy always to make correct Content-Length: and Lines: headers in the copy. (The correctness of the Lines count is dependent of the correctness of the initial value, though). (From: Byrial Jensen)
Diffstat (limited to 'compose.c')
-rw-r--r--compose.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compose.c b/compose.c
index 235f1cbf..d35c9be8 100644
--- a/compose.c
+++ b/compose.c
@@ -383,7 +383,7 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */
int oldSort = Sort, oldSortAux = SortAux;
struct stat st;
- idx = mutt_gen_attach_list (msg->content, idx, &idxlen, &idxmax, 0, 1);
+ idx = mutt_gen_attach_list (msg->content, -1, idx, &idxlen, &idxmax, 0, 1);
menu = mutt_new_menu ();
menu->menu = MENU_COMPOSE;
@@ -477,7 +477,7 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */
for (i = 0; i < idxlen; i++)
safe_free ((void **) &idx[i]);
idxlen = 0;
- idx = mutt_gen_attach_list (msg->content, idx, &idxlen, &idxmax, 0, 1);
+ idx = mutt_gen_attach_list (msg->content, -1, idx, &idxlen, &idxmax, 0, 1);
menu->data = idx;
menu->max = idxlen;
}