Re: Subject of single message not displaye in summary buffer

"Herbert J. Skuhra" <[email protected]> Sat, 15 Jun 2019 20:47:15 +0200
Newsgroups gmane.mail.wanderlust.general
Message-ID <87blyyk7nw.wl-herbert__13161.6767424688$1560624540$gmane$org@gojira.at>
On Sat, 15 Jun 2019 13:47:11 +0200, Kazuhiro Ito wrote:
> 
> > 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))

Thanks a lot for the hint and a fix. It works.

--
Herbert