>>>>> In >>>>> morioka@jaist.ac.jp (MORIOKA Tomohiko) wrote: tomo> >>>>> In tomo> >>>>> Lars Magne Ingebrigtsen wrote: Lars> Steven L Baur writes: Steven>> Enabling gnus-article-hide-signature in the Steven>> gnus-article-display-hook is still too aggressive. It should Steven>> not cross MIME multipart boundaries. Lars> To deal with that properly, Gnus would have to do some MIME Lars> parsing, which is something I'd rather not get into. An easy Lars> hack would be to set `gnus-signature-limit' to "^--Multipart" or Lars> something -- that way signatures that contain that regexp Lars> wouldn't be hidden. Is that nice, though? tomo> Following code is available for tm-view MIME processing. It may be tomo> safe even if tm-view is not used: (snip) Following code is available to MIME safe signature handling using tm-view: (defun gnus-narrow-to-signature () "Narrow to the signature." (widen) (if (and (boundp 'mime::preview/content-list) mime::preview/content-list) (let ((pcinfo (car (last mime::preview/content-list)))) (narrow-to-region (mime::preview-content-info/point-min pcinfo) (point-max)) )) (goto-char (point-max)) (when (re-search-backward gnus-signature-separator nil t) (forward-line 1) (when (or (null gnus-signature-limit) (and (numberp gnus-signature-limit) (< (- (point-max) (point)) gnus-signature-limit)) (and (gnus-functionp gnus-signature-limit) (funcall gnus-signature-limit)) (and (stringp gnus-signature-limit) (not (re-search-forward gnus-signature-limit nil t)))) (narrow-to-region (point) (point-max)) t)))