On 7 Shevat 5761, Arne Jørgensen wrote:

>>From time to time I receive mails from people who have not configured
> a real name in their MUA. The result is a ugly summary-buffer containg
> lines with things like [ [EMAIL PROTECTED] ] and then I have to
> guess/remember (same thing) who [EMAIL PROTECTED] is.
> 
> Have could I have BBDB/Gnus rewrite that line and put in his real name
> from the BBDB? Persons with well-configured MUAs should not be
> affected.

,----[ From the BBDB info, "Gnus Summary Buffer" ]
| Using Names from the BBDB
| .........................
| 
|    The names reported for authors of posts in the Summary buffer can be
| altered to conform to the values present in their respective BBDB
| records (if any).  This rewriting is enabled by the use of a Gnus user
| format code, as determined by `bbdb/gnus-summary-user-format-letter'.
| This variable, which defaults to `B', is used to create a format code
| which is intended for use in `gnus-summary-line-format'.  The format
| code is created by concatenating `%u' with the value of
| `bbdb/gnus-summary-user-format-letter'.  In the default case this
| results in the creation of the format code `%uB'.  This format code is
| intended to replace the format code previously used in the Summary
| buffer format line to indicate the author and/or net address (usually
| `%a', `%n', and/or `$N').
| 
|    The effects of this format code are in two independent parts - the
| marking of known posters, and the rewriting of posters names.  The
| first, the marking of posters, occurs only when
| `bbdb/gnus-summary-mark-known-posters' is `t' (the default) and the
| posters have entries in the BBDB.  When this variable is true, the
| marking occurs as described in the previous section, Marking Posters,
| above.
| 
|    The poster name rewriting is done for all posters - not just for
| those with records in the BBDB.  That said, rewriting rules for posters
| in the BBDB are more flexible than for those not listed.  The rewriting
| is governed by two variables, as described below.
| 
|    `bbdb/gnus-summary-prefer-real-names' can have one of three values -
| `t', `bbdb', or `nil'.  In general, this variable governs the
| preference between net addresses and names.  If it is `t', the name (if
| any) will be used.  If `nil', the net address will be used.  The third
| value, `bbdb', can be used as a method for distinguishing between
| authors with records in the BBDB and those without.  If the variable is
| set to `bbdb', the name from the BBDB record will be used if the author
| has a record in the BBDB.  If the author is not in the BBDB, the net
| address from the message will be printed.  This variable makes little
| sense if `bbdb/gnus-summary-prefer-bbdb-data' is `nil', as no names
| will be printed in the Summary buffer in this case - only net addresses.
| 
|    `bbdb/gnus-summary-prefer-bbdb-data' is used to (dis)allow use of
| the BBDB for author data retrieval.  If it is `t', data from the BBDB
| will be used if available.  If it is `nil', data from the BBDB will not
| be used.
| 
| In the following examples, assume the following:
| 
|   1. Message: `From: Jamie <[EMAIL PROTECTED]>'
|      BBDB: No record
| 
|   2. Message: `From: Matt <[EMAIL PROTECTED]>'
|      BBDB: Name: `Matthew', Net: `[EMAIL PROTECTED]'
| 
| `bbdb/gnus-summary-prefer-bbdb-data'    `t'          `t'          `nil'
| `bbdb/gnus-summary-prefer-real-names'    `t'         `bbdb'         `t'
| Printed in Summary buffer for                                 
|              Case 1                   Jamie     [EMAIL PROTECTED]   Jamie
|              Case 2                  Matthew      Matthew         Matt
`----

-- 
Charles Sebold
Random Answer to an Emacs Very Frequently Asked Question:
 C-up, S-f1, etc. may require special terminal settings under Emacs on a tty.
--
7th of Shevat, 5761
--
Fresco's Discovery:
        If you knew what you were doing you'd probably be bored.

_______________________________________________
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to