* elmo-nmz.el (elmo-nmz-use-drive-letter): New variable.
(elmo-map-folder-list-message-locations): Do drive letter conversion
on Windows environment.
+ (elmo-nmz-msgdb-create-entity): Use expand-file-name.
+ (elmo-map-message-fetch): Ditto.
2001-12-27 Kenichi OKADA <okada@opaopa.org>
(defun elmo-nmz-msgdb-create-entity (folder number)
"Create msgdb entity for the message in the FOLDER with NUMBER."
- (let ((location (elmo-map-message-location folder number))
+ (let ((location (expand-file-name (elmo-map-message-location folder number)))
entity uid)
(setq entity (elmo-msgdb-create-overview-entity-from-file number location))
(unless (or (> (length (elmo-msgdb-overview-entity-get-to entity)) 0)
&optional section unseen)
(when (file-exists-p location)
(prog1
- (insert-file-contents-as-binary location)
+ (insert-file-contents-as-binary (expand-file-name location))
(unless (or (std11-field-body "To")
(std11-field-body "Cc")
(std11-field-body "Subject"))
(let (charset guess uid)
(erase-buffer)
(set-buffer-multibyte t)
- (insert-file-contents location)
+ (insert-file-contents (expand-file-name location))
(setq charset (detect-mime-charset-region (point-min)
(point-max)))
(goto-char (point-min))