aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wohler2006-01-11 09:14:14 +0000
committerBill Wohler2006-01-11 09:14:14 +0000
commit00b6a079049b0a129759e6d0e0f992ddb3759b2d (patch)
tree0a26514913d343b358f229c8874527826caa2f49
parente1fbc812b9ac00de76cb56ce86434918e19346c3 (diff)
downloademacs-00b6a079049b0a129759e6d0e0f992ddb3759b2d.tar.gz
emacs-00b6a079049b0a129759e6d0e0f992ddb3759b2d.zip
(mh-forward): Cosmetics on prompt when draft exists.
(mh-send-letter): Add -msgid to mh-send-args (closes SF #725425).
-rw-r--r--lisp/mh-e/ChangeLog3
-rw-r--r--lisp/mh-e/mh-comp.el8
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index b556462dd41..6e7fd1ac7d7 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,5 +1,8 @@
12006-01-11 Bill Wohler <wohler@newt.com> 12006-01-11 Bill Wohler <wohler@newt.com>
2 2
3 * mh-comp.el (mh-forward): Cosmetics on prompt when draft exists.
4 (mh-send-letter): Add -msgid to mh-send-args (closes SF #725425).
5
3 * mh-utils.el (mh-x-image-url-cache-canonicalize): Use 6 * mh-utils.el (mh-x-image-url-cache-canonicalize): Use
4 url-hexify-string to remove special characters from filenames 7 url-hexify-string to remove special characters from filenames
5 (closes SF #1396499). Note that this invalidates the existing 8 (closes SF #1396499). Note that this invalidates the existing
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el
index 4011d811c2c..1912c5e0594 100644
--- a/lisp/mh-e/mh-comp.el
+++ b/lisp/mh-e/mh-comp.el
@@ -378,7 +378,7 @@ See also `mh-compose-forward-as-mime-flag',
378 ;; forw always leaves file in "draft" since it doesn't have -draft 378 ;; forw always leaves file in "draft" since it doesn't have -draft
379 (draft-name (expand-file-name "draft" mh-user-path)) 379 (draft-name (expand-file-name "draft" mh-user-path))
380 (draft (cond ((or (not (file-exists-p draft-name)) 380 (draft (cond ((or (not (file-exists-p draft-name))
381 (y-or-n-p "The file 'draft' exists. Discard it? ")) 381 (y-or-n-p "The file draft exists; discard it? "))
382 (mh-exec-cmd "forw" "-build" 382 (mh-exec-cmd "forw" "-build"
383 (if (and (mh-variant-p 'nmh) 383 (if (and (mh-variant-p 'nmh)
384 mh-compose-forward-as-mime-flag) 384 mh-compose-forward-as-mime-flag)
@@ -1475,12 +1475,16 @@ use `mh-send-prog' to tell MH-E the name."
1475 (and (boundp 'default-buffer-file-coding-system ) 1475 (and (boundp 'default-buffer-file-coding-system )
1476 default-buffer-file-coding-system) 1476 default-buffer-file-coding-system)
1477 'iso-latin-1)))) 1477 'iso-latin-1))))
1478 ;; Adding a Message-ID field looks good, makes it easier to search for
1479 ;; message in your +outbox, and best of all doesn't break threading for
1480 ;; the recipient if you reply to a message in your +outbox.
1481 (setq mh-send-args (concat "-msgid " mh-send-args))
1478 ;; The default BCC encapsulation will make a MIME message unreadable. 1482 ;; The default BCC encapsulation will make a MIME message unreadable.
1479 ;; With nmh use the -mime arg to prevent this. 1483 ;; With nmh use the -mime arg to prevent this.
1480 (if (and (mh-variant-p 'nmh) 1484 (if (and (mh-variant-p 'nmh)
1481 (mh-goto-header-field "Bcc:") 1485 (mh-goto-header-field "Bcc:")
1482 (mh-goto-header-field "Content-Type:")) 1486 (mh-goto-header-field "Content-Type:"))
1483 (setq mh-send-args (format "-mime %s" mh-send-args))) 1487 (setq mh-send-args (concat "-mime " mh-send-args)))
1484 (cond (arg 1488 (cond (arg
1485 (pop-to-buffer mh-mail-delivery-buffer) 1489 (pop-to-buffer mh-mail-delivery-buffer)
1486 (erase-buffer) 1490 (erase-buffer)