(elmo-message-fetch-bodystructure): Define default.
* elmo-imap4.el (mime-imap-location-bodystructure): Call
elmo-message-fetch-bodystructure.
(elmo-message-fetch-bodystructure): Define.
* elmo-filter.el (elmo-message-fetch-bodystructure): Define.
+2004-02-16 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo.el (elmo-message-fetch-bodystructure): New method.
+ (elmo-message-fetch-bodystructure): Define default.
+
+ * elmo-imap4.el (mime-imap-location-bodystructure): Call
+ elmo-message-fetch-bodystructure.
+ (elmo-message-fetch-bodystructure): Define.
+
+ * elmo-filter.el (elmo-message-fetch-bodystructure): Define.
+
2004-02-15 Tetsurou Okazaki <okazaki@be.to>
* elmo-filter.el (elmo-message-folder): Define.
(elmo-filter-folder-target-internal folder)
flag number))
+(luna-define-method elmo-message-fetch-bodystructure ((folder
+ elmo-filter-folder)
+ number strategy)
+ (elmo-message-fetch-bodystructure
+ (elmo-filter-folder-target-internal folder)
+ number strategy))
+
(luna-define-method elmo-message-fetch ((folder elmo-filter-folder)
number strategy
&optional section outbuf unseen)
(luna-define-method mime-imap-location-bodystructure
((location mime-elmo-imap-location))
- (elmo-imap4-fetch-bodystructure
+ (elmo-message-fetch-bodystructure
(mime-elmo-imap-location-folder-internal location)
(mime-elmo-imap-location-number-internal location)
(mime-elmo-imap-location-strategy-internal location)))
(car (nth 1 entry))))
response)))
-(defun elmo-imap4-fetch-bodystructure (folder number strategy)
- "Fetch BODYSTRUCTURE for the message in the FOLDER with NUMBER using STRATEGY."
+(luna-define-method elmo-message-fetch-bodystructure ((folder
+ elmo-imap4-folder)
+ number strategy)
(if (elmo-fetch-strategy-use-cache strategy)
(elmo-object-load
(elmo-file-cache-expand-path
nil nil (not read))
path))
+(luna-define-generic elmo-message-fetch-bodystructure (folder number strategy)
+ "Fetch bodystructure of the message in FOLDER with NUMBER using STRATEGY.")
+
(luna-define-generic elmo-message-fetch (folder number strategy
&optional
section
(nthcdr (max (- len elmo-folder-update-threshold) 0) appends)
appends))))
+(luna-define-method elmo-message-fetch-bodystructure ((folder elmo-folder)
+ number strategy)
+ nil)
+
(luna-define-method elmo-message-fetch ((folder elmo-folder)
number strategy
&optional