Re: Subject of single message not displaye in summary buffer

Kazuhiro Ito <[email protected]> Sat, 15 Jun 2019 20:47:11 +0900
Newsgroups gmane.mail.wanderlust.general.japanese
Message-ID <[email protected]>
> today I received an e-mail with the following subject line:
> 
> Subject: [Reservierung#:690965]
> 
> What could be the reason that wl does not display the subject in the
> summary buffer?

Wanderlust strips such "[ABC:000]" string from subject in summary
buffer.  Its purpose is to remove strings added by ML engines.  You
can customize the behavior by changing wl-summary-default-subject
variable.  Or override wl-summary-default-subject function by the
below code.

(defun wl-summary-default-subject (subject-string)
  (if (string-match "^[ \t]*\\[[^:]+[,: ][0-9]+\\][ \t]*\\([^ \t].*\\)$"
		    subject-string)
      (match-string 1 subject-string)
    subject-string))

-- 
Kazuhiro Ito