+2005-11-23 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * modb-entity.el (modb-entity-extract-ml-info-from-mailman): New
+ function.
+ (modb-entity-extract-mailing-list-info-functions): Added it.
+
2005-11-18 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* modb-legacy.el (elmo-msgdb-append-entity): Execute the process
mailing-list))
(cons (match-string 2 mailing-list) nil))))
+(defun modb-entity-extract-ml-info-from-mailman ()
+ (when (elmo-field-body "x-mailman-version")
+ (let ((list-id (elmo-decoded-field-body "list-id" 'summary)))
+ (when (and list-id
+ (or (string-match "<\\([^.]+\\)\\." list-id)
+ (string-match "^\\([^.]+\\)\\." list-id)))
+ (cons (match-string 1 list-id) nil)))))
+
(defvar modb-entity-extract-mailing-list-info-functions
'(modb-entity-extract-ml-info-from-x-sequence
modb-entity-extract-ml-info-from-subject
modb-entity-extract-ml-info-from-return-path
+ modb-entity-extract-ml-info-from-mailman
modb-entity-extract-ml-info-from-delivered-to
modb-entity-extract-ml-info-from-mailing-list))