]> git.eshelyaron.com Git - emacs.git/commitdiff
(mh-forward): Cosmetics on prompt when draft exists.
authorBill Wohler <wohler@newt.com>
Wed, 11 Jan 2006 09:14:14 +0000 (09:14 +0000)
committerBill Wohler <wohler@newt.com>
Wed, 11 Jan 2006 09:14:14 +0000 (09:14 +0000)
(mh-send-letter): Add -msgid to mh-send-args (closes SF #725425).

lisp/mh-e/ChangeLog
lisp/mh-e/mh-comp.el

index b556462dd41e4fe1d22fe55dc124661a52efabe0..6e7fd1ac7d7aacc12226adbdce07f56c87a31245 100644 (file)
@@ -1,5 +1,8 @@
 2006-01-11  Bill Wohler  <wohler@newt.com>
 
+       * mh-comp.el (mh-forward): Cosmetics on prompt when draft exists.
+       (mh-send-letter): Add -msgid to mh-send-args (closes SF #725425).
+
        * mh-utils.el (mh-x-image-url-cache-canonicalize): Use
        url-hexify-string to remove special characters from filenames
        (closes SF #1396499). Note that this invalidates the existing
index 4011d811c2c530cfd883252f87a39fd11dda0509..1912c5e05942f90deca6531c4523adaaec0289b7 100644 (file)
@@ -378,7 +378,7 @@ See also `mh-compose-forward-as-mime-flag',
          ;; forw always leaves file in "draft" since it doesn't have -draft
          (draft-name (expand-file-name "draft" mh-user-path))
          (draft (cond ((or (not (file-exists-p draft-name))
-                           (y-or-n-p "The file 'draft' exists.  Discard it? "))
+                           (y-or-n-p "The file draft exists; discard it? "))
                        (mh-exec-cmd "forw" "-build"
                                     (if (and (mh-variant-p 'nmh)
                                              mh-compose-forward-as-mime-flag)
@@ -1475,12 +1475,16 @@ use `mh-send-prog' to tell MH-E the name."
                (and (boundp 'default-buffer-file-coding-system )
                     default-buffer-file-coding-system)
                'iso-latin-1))))
+    ;; Adding a Message-ID field looks good, makes it easier to search for
+    ;; message in your +outbox, and best of all doesn't break threading for
+    ;; the recipient if you reply to a message in your +outbox.
+    (setq mh-send-args (concat "-msgid " mh-send-args))
     ;; The default BCC encapsulation will make a MIME message unreadable.
     ;; With nmh use the -mime arg to prevent this.
     (if (and (mh-variant-p 'nmh)
              (mh-goto-header-field "Bcc:")
              (mh-goto-header-field "Content-Type:"))
-        (setq mh-send-args (format "-mime %s" mh-send-args)))
+        (setq mh-send-args (concat "-mime " mh-send-args)))
     (cond (arg
            (pop-to-buffer mh-mail-delivery-buffer)
            (erase-buffer)