# HG changeset patch # User Glenn Morris # Date 1235707245 0 # Node ID 23fb4f756c63e854a9200ea41499c3b5f413bc51 # Parent 1bf9a079b56d281b2bc7b95d1b02fc9ab812c932 (rmail-speedbar-move-message): Preserve the directory part against rmail-output's oddness. diff -r 1bf9a079b56d -r 23fb4f756c63 lisp/mail/rmail.el --- a/lisp/mail/rmail.el Fri Feb 27 03:59:22 2009 +0000 +++ b/lisp/mail/rmail.el Fri Feb 27 04:00:45 2009 +0000 @@ -3891,13 +3891,15 @@ (forward-char -2) (speedbar-do-function-pointer))))) -;; FIXME loses the directory part. (defun rmail-speedbar-move-message (text token indent) "From button TEXT, copy current message to the rmail file specified by TOKEN. TEXT and INDENT are not used." (speedbar-with-attached-buffer (message "Moving message to %s" token) - (rmail-output token))) + ;; expand-file-name is needed due to the unhelpful way in which + ;; rmail-output expands non-absolute filenames against rmail-default-file. + ;; What is the point of that, anyway? + (rmail-output (expand-file-name token)))) ;; Functions for setting, getting and encoding the POP password. ;; The password is encoded to prevent it from being easily accessible