Merge from emacs-24; up to r108032
rmail-output-read-file-name fix for bug#12214

This resembles the 2001-05-07 change to rmail-output-read-rmail-file-name,
which was never copied to rmail-output-read-file-name.
It's more complicated now due to Rmail's buffer swapping.

* lisp/mail/rmailout.el (rmail-output-read-file-name):
Check rmail-output-file-alist against the full message body
in the correct rmail buffer.

* lisp/mail/rmail.el: Comment.
Fix previous rmail-output-read-file-name change

* lisp/mail/rmailout.el (rmail-output-read-file-name):
Fix previous change (when the alist is nil or does not match).
* lisp/mail/rmailout.el (rmail-output-read-file-name): Trap errors
in rmail-output-file-alist elements, and report them.
rmail-retry-failure must avoid mime processing.
When toggling mime processing off, just don't do mime processing.
rmailedit comment
Auto-commit of loaddefs files.
Fix infloop in rmailmm on multipart messages with epilogues

* lisp/mail/rmailmm.el (rmail-mime-process-multipart):
Do not confuse a multipart message with an epilogue
with a "truncated" one; fixes 2011-06-27 change.
Auto-commit of loaddefs files.
rmail-header-summary fix for bug#12625

* lisp/mail/rmailsum.el (rmail-header-summary):
Fix 2010-11-26 test for multiline Subject: field.
Auto-commit of loaddefs files.
rmail-new-summary fix for bug#13066

* lisp/mail/rmailsum.el (rmail-new-summary):
Tweak for rmail-maybe-display-summary changing buffer.
Auto-commit of loaddefs files.
Further rmail.el fix for bug#13066

* lisp/mail/rmail.el (rmail-maybe-display-summary):
Preserve buffer, in case select-window changes it.
Fix bug #9521 with forwarding MIME messages in Rmail.

 lisp/mail/rmailmm.el (rmail-insert-mime-forwarded-message): Insert
 the undecoded text of the message being forwarded.
Auto-commit of loaddefs files.
Update copyright notices for 2013.
Auto-commit of loaddefs files.
* rmailmm.el (rmail-insert-mime-forwarded-message): Revert 2012-12-29 change
 Ref:
<http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00360.html>

(Do not merge to trunk)