From bc669216cc66125df77609c572e05c2b901b2405 Mon Sep 17 00:00:00 2001 From: Bill Wohler Date: Sun, 25 Nov 2012 13:44:13 -0800 Subject: [PATCH 1/5] * mh-e.el (mh-version): Add +bzr to version. --- lisp/mh-e/ChangeLog | 4 ++++ lisp/mh-e/mh-e.el | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index deccd0aaf86..b2fbee187f1 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog @@ -1,3 +1,7 @@ +2012-11-25 Bill Wohler + + * mh-e.el (mh-version): Add +bzr to version. + 2012-11-25 Bill Wohler Release MH-E version 8.4. diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el index 69968dac5f7..3871d727b3a 100644 --- a/lisp/mh-e/mh-e.el +++ b/lisp/mh-e/mh-e.el @@ -5,7 +5,7 @@ ;; Author: Bill Wohler ;; Maintainer: Bill Wohler -;; Version: 8.4 +;; Version: 8.4+bzr ;; Keywords: mail ;; This file is part of GNU Emacs. @@ -127,7 +127,7 @@ ;; Try to keep variables local to a single file. Provide accessors if ;; variables are shared. Use this section as a last resort. -(defconst mh-version "8.4" "Version number of MH-E.") +(defconst mh-version "8.4+bzr" "Version number of MH-E.") ;; Variants From ce974958f93ffa2e1bd01b4dd85dcb8ec1395787 Mon Sep 17 00:00:00 2001 From: Jeffrey C Honig Date: Sat, 8 Dec 2012 16:48:20 -0500 Subject: [PATCH 2/5] * mh-comp.el: Insure that mail-header-separator is set before invoking any mml functions. (closes SF #270). --- lisp/mh-e/ChangeLog | 5 +++++ lisp/mh-e/mh-comp.el | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 72c11db1c37..196d296fabd 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog @@ -1,3 +1,8 @@ +2012-12-08 Jeffrey C Honig + + * mh-comp.el: Insure that mail-header-separator is set before + invoking any mml functions. (closes SF #270). + 2012-11-25 Bill Wohler * mh-e.el (mh-version): Add +bzr to version. diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el index 3f2ee056bdf..03758efb29a 100644 --- a/lisp/mh-e/mh-comp.el +++ b/lisp/mh-e/mh-comp.el @@ -586,6 +586,13 @@ See also `mh-compose-forward-as-mime-flag', (mh-forwarded-letter-subject orig-from orig-subject))) (mh-insert-fields "Subject:" forw-subject) (goto-char (point-min)) + ;; Set the local value of mh-mail-header-separator according to what is + ;; present in the buffer... + (set (make-local-variable 'mh-mail-header-separator) + (save-excursion + (goto-char (mh-mail-header-end)) + (buffer-substring-no-properties (point) (mh-line-end-position)))) + (set (make-local-variable 'mail-header-separator) mh-mail-header-separator) ;override sendmail.el ;; If using MML, translate MH-style directive (if (equal mh-compose-insertion 'mml) (save-excursion From 6d14beddb06b5ae86f9dd770a1661ebd24846f28 Mon Sep 17 00:00:00 2001 From: Jeffrey C Honig Date: Sun, 9 Dec 2012 22:04:15 -0500 Subject: [PATCH 3/5] * mh-folder.el (mh-inc-folder): Revert SF #2321115, SF bugs/250 which processed pending deletes and refiles. Call to mh-process-or-undo-commands to insure that pending changes are properly tagged after including new mail. (Closes SF bugs/271). --- lisp/mh-e/ChangeLog | 7 +++++++ lisp/mh-e/mh-folder.el | 11 ++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 196d296fabd..c4d1e213079 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog @@ -1,3 +1,10 @@ +2012-12-10 Jeffrey C Honig + + * mh-folder.el (mh-inc-folder): Revert SF #2321115, SF bugs/250 + which processed pending deletes and refiles. Call to + mh-process-or-undo-commands to insure that pending changes are + properly tagged after including new mail. (Closes SF bugs/271). + 2012-12-08 Jeffrey C Honig * mh-comp.el: Insure that mail-header-separator is set before diff --git a/lisp/mh-e/mh-folder.el b/lisp/mh-e/mh-folder.el index 6b5ff3b62e2..802e75bcc57 100644 --- a/lisp/mh-e/mh-folder.el +++ b/lisp/mh-e/mh-folder.el @@ -774,7 +774,7 @@ the message." return-value)) ;;;###mh-autoload -(defun mh-inc-folder (&optional file folder dont-exec-pending) +(defun mh-inc-folder (&optional file folder) "Incorporate new mail into a folder. You can incorporate mail from any file into the current folder by @@ -785,10 +785,7 @@ The hook `mh-inc-folder-hook' is run after incorporating new mail. Do not call this function from outside MH-E; use \\[mh-rmail] -instead. - -In a program, the processing of outstanding commands is not performed -if DONT-EXEC-PENDING is non-nil." +instead." (interactive (list (if current-prefix-arg (expand-file-name (read-file-name "inc mail from file: " @@ -797,8 +794,6 @@ if DONT-EXEC-PENDING is non-nil." (mh-prompt-for-folder "inc mail into" mh-inbox t)))) (if (not folder) (setq folder mh-inbox)) - (unless dont-exec-pending - (mh-process-or-undo-commands folder)) (let ((threading-needed-flag nil)) (let ((config (current-window-configuration))) (when (and mh-show-buffer (get-buffer mh-show-buffer)) @@ -820,6 +815,8 @@ if DONT-EXEC-PENDING is non-nil." nil)))) (mh-toggle-threads)) (beginning-of-line) + (when (mh-outstanding-commands-p) + (mh-notate-deleted-and-refiled)) (if (and mh-showing-mode (looking-at mh-scan-valid-regexp)) (mh-show)) (run-hooks 'mh-inc-folder-hook))) From 5a3cbc037f23d248b079efe6c126a58aa1375d43 Mon Sep 17 00:00:00 2001 From: Bill Wohler Date: Sat, 2 Mar 2013 16:02:19 -0800 Subject: [PATCH 4/5] Release MH-E version 8.5. * NEWS, MH-E-NEWS: Update for MH-E release 8.5. --- etc/ChangeLog | 6 ++++++ etc/MH-E-NEWS | 19 +++++++++++++++++++ etc/NEWS | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/etc/ChangeLog b/etc/ChangeLog index 7ebb2a751ab..367f7c63264 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog @@ -1,3 +1,9 @@ +2013-03-02 Bill Wohler + + Release MH-E version 8.5. + + * NEWS, MH-E-NEWS: Update for MH-E release 8.5. + 2013-03-02 Paul Eggert * NEWS: The lock for FILE is now .#FILE or .#-FILE (Bug#13807). diff --git a/etc/MH-E-NEWS b/etc/MH-E-NEWS index 846504c9014..38777b9a37b 100644 --- a/etc/MH-E-NEWS +++ b/etc/MH-E-NEWS @@ -3,6 +3,25 @@ Copyright (C) 2001-2013 Free Software Foundation, Inc. See the end of the file for license conditions. +* Changes in MH-E 8.5 + +Version 8.5 fixes bugs when incorporating or forwarding mail. + +** Bug Fixes in MH-E 8.5 + +*** mh-rmail doesn't switch to +inbox + +The function `mh-rmail' now switches to `+inbox' as expected (closes +SF #271). + +*** Problem forwarding a messsage + +Forwarding messages resulted in the error: `(wrong-type-argument +number-or-marker-p nil).' This has been fixed by setting the mail +separator (closes SF #270). + + + * Changes in MH-E 8.4 Version 8.4 postpones junk processing and merges in your components diff --git a/etc/NEWS b/etc/NEWS index 73f7991823f..8ae8ae3bf16 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -159,7 +159,7 @@ callers to fit the image to a frame other than the selected frame. *** `C-x 8 RET' in Isearch mode reads a character by its Unicode name and adds it to the search string. -** MH-E has been updated to MH-E version 8.4. +** MH-E has been updated to MH-E version 8.5. See MH-E-NEWS for details. --- From 91881c0722c41cb2ac6a0a53d22fdfea250f27d9 Mon Sep 17 00:00:00 2001 From: Bill Wohler Date: Sat, 2 Mar 2013 16:04:12 -0800 Subject: [PATCH 5/5] Release MH-E version 8.5. * mh-e.el (Version, mh-version): Update for release 8.5. --- lisp/mh-e/ChangeLog | 12 +++++++++--- lisp/mh-e/mh-e.el | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 72be15e69a0..ee95f8051a8 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog @@ -1,3 +1,9 @@ +2013-03-02 Bill Wohler + + Release MH-E version 8.5. + + * mh-e.el (Version, mh-version): Update for release 8.5. + 2013-01-23 Dmitry Antipov * mh-acros.el (mh-do-at-event-location): Use point-marker. @@ -6,15 +12,15 @@ 2012-12-10 Jeffrey C Honig - * mh-folder.el (mh-inc-folder): Revert SF #2321115, SF bugs/250 + * mh-folder.el (mh-inc-folder): Revert SF #2321115, SF #250 which processed pending deletes and refiles. Call to mh-process-or-undo-commands to insure that pending changes are - properly tagged after including new mail. (Closes SF bugs/271). + properly tagged after including new mail (closes SF #271). 2012-12-08 Jeffrey C Honig * mh-comp.el: Insure that mail-header-separator is set before - invoking any mml functions. (closes SF #270). + invoking any mml functions (closes SF #270). 2012-11-25 Bill Wohler diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el index 9fd300d7b55..6ed033b8fa8 100644 --- a/lisp/mh-e/mh-e.el +++ b/lisp/mh-e/mh-e.el @@ -5,7 +5,7 @@ ;; Author: Bill Wohler ;; Maintainer: Bill Wohler -;; Version: 8.4+bzr +;; Version: 8.5 ;; Keywords: mail ;; This file is part of GNU Emacs. @@ -127,7 +127,7 @@ ;; Try to keep variables local to a single file. Provide accessors if ;; variables are shared. Use this section as a last resort. -(defconst mh-version "8.4+bzr" "Version number of MH-E.") +(defconst mh-version "8.5" "Version number of MH-E.") ;; Variants