GNU bug report logs -
#61037
28.1; mml-attach-buffer on archive-mode
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
When calling `mml-attach-buffer` to attach an `archive-mode` buffer, the "wrong" attachment is sent (the archive is not sent). This is because archive-mode adds a file summary to the top of the buffer and restricts the buffer to that summary.
Then in mml.el:645 the line
(insert-buffer-substring (cdr (assq 'buffer cont)))
inserts the buffer content (which is just the summary)
and similarly in mml.el:725
(insert (with-current-buffer (cdr (assq 'buffer cont))
(buffer-string)))
(incidentally, I am not sure why `insert-buffer-substring` is not used in mml.el:725)
I can hack my way around this by advising `buffer-string` and `insert-buffer-substring` to handle archive-mode correctly by widening and narrowing to (archive-file-list-start (point-max)), at least when called from `mml-generate-mime-1`, but I was wondering if this should also be fixed somewhere upstream.
Cheers,
-- Al
This bug report was last modified 2 years and 197 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.