[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.6 Format of summary lines

You can alter the format of lines in Summary mode.

Summary line format is specified by wl-summary-line-format. You can use control strings defined by wl-summary-line-format-spec-alist.

An example follows.

 
;; number temporary-mark persistent-mark date branch
;; [ (number-of-children) sender ] subject
(setq wl-summary-line-format "%n%T%P%M/%D(%W) %t%[%17(%c %f%) %] %s")

Where the number set the column number of the field. If negative value, the column is filled from right. If the number begins with `0', `0' is used for filling columns instead of ` '.

Example:

 
%5n   -> `1    '
%-05n -> `00001'

Major control strings defined by wl-summary-line-format-spec-alist are displayed in the following list.

 
%n  message number
%T  temporary mark
%P  persistent mark
%Y  year
%M  month
%D  day
%W  day of week
%h  hour
%m  minute
%t  branch of the thread
%[  [ (< for re-connected child)
%]  ] (> for re-connected child)
%f  sender
%s  subject
%S  size
%c  +number-of-children: (display only for opened thread)
%C  [+number-of-children] (display only for opened thread)
%#  mailing list information (`(' ML-name [ ` ' ML-number ] `)')
%l  number in the mailing list
%@ `@' only if the first MIME part is multipart/mixed
%~  ` ' only if previous column is empty

The temporary mark (`%T') and persistent mark (`%P') must appear at the constant column. For example, if you specify `%T' or `%P' after the `%t', which changes its length by thread position, marks are not treated correctly.

If the format string is enclosed by `%number(' and `%)', the column of the enclosed region is justified to the `number'. Multiple level `%number(' parenthesis can be defined. It is useful to justify the column of the multiple control strings. For example, in the above wl-summary-line-format,

 
%17(%c %f%)

means "Adjust number-of-children and sender string to the 17 column".

You can specify the format by each folders with wl-folder-summary-line-format-alist. Please set regular expression for folder names and summary line format as the following example.

 
(setq wl-folder-summary-line-format-alist
      '(("^%" . "%T%P%M/%D(%W)%h:%m %t%[%17(%c %f%) %] %s")
        ("^+" . "%n%T%P%M/%D %[ %17f %] %t%C%s")))


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by Yuuichi Teranishi on February, 19 2005 using texi2html