+2003-04-05 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * elmo-msgdb.el (elmo-msgdb-message-entity-field): Don't use self
+ recursive call (can't byte compile on emacs 20.7).
+
2003-04-02 Yuuichi Teranishi <teranisi@gohome.org>
* elmo.el (elmo-folder-list-messages): Redefine as a luna method.
(defsubst elmo-msgdb-message-entity-field (entity field &optional decode)
(and entity
- (if (not decode)
- (case field
- (to (aref (cdr entity) 5))
- (cc (aref (cdr entity) 6))
- (date (aref (cdr entity) 4))
- (subject (aref (cdr entity) 3))
- (from (aref (cdr entity) 2))
- (message-id (car entity))
- (references (aref (cdr entity) 1))
- (size (aref (cdr entity) 7))
- (t (cdr (assoc (symbol-name field) (aref (cdr entity) 8)))))
- (elmo-msgdb-get-decoded-cache
- (elmo-msgdb-message-entity-field entity field)))))
+ (let ((field-value
+ (case field
+ (to (aref (cdr entity) 5))
+ (cc (aref (cdr entity) 6))
+ (date (aref (cdr entity) 4))
+ (subject (aref (cdr entity) 3))
+ (from (aref (cdr entity) 2))
+ (message-id (car entity))
+ (references (aref (cdr entity) 1))
+ (size (aref (cdr entity) 7))
+ (t (cdr (assoc (symbol-name field) (aref (cdr entity) 8)))))))
+ (if decode
+ (elmo-msgdb-get-decoded-cache field-value)
+ field-value))))
(defsubst elmo-msgdb-message-entity-set-field (entity field value)
(and entity