Adam Sjøgren
2015-02-25 20:34:24 UTC
Should %F in message-citation-line-format fall back to something
different than nil, if no first name can be detected?
Like, say, the email address?
,----[ C-h v message-citation-line-format RET ]
| message-citation-line-format is a variable defined in `message.el'.
| Its value is "%F writes:
| "
| Original value was
| "On %a, %b %d %Y, %N wrote:\n"
|
| Documentation:
| Format of the "Whomever writes:" line.
|
| The string is formatted using `format-spec'. The following constructs
| are replaced:
|
| %f The full From, e.g. "John Doe <***@example.invalid>".
| %n The mail address, e.g. "***@example.invalid".
| %N The real name if present, e.g.: "John Doe", else fall
| back to the mail address.
| %F The first name if present, e.g.: "John".
| %L The last name if present, e.g.: "Doe".
| %Z, %z The time zone in the numeric form, e.g.:"+0000".
|
| All other format specifiers are passed to `format-time-string'
| which is called using the date from the article your replying to, but
| the date in the formatted string will be expressed in the author's
| time zone as much as possible.
| Extracting the first (%F) and last name (%L) is done heuristically,
| so you should always check it yourself.
|
| Please also read the note in the documentation of
| `message-citation-line-function'.
`----
Or is there already some way of doing this? The "you should always check
it yourself" might be implying so?
It is kind of weird to get "nil writes:" when From: is just an email
address...
What do y'all think?
Best regards,
Adam
different than nil, if no first name can be detected?
Like, say, the email address?
,----[ C-h v message-citation-line-format RET ]
| message-citation-line-format is a variable defined in `message.el'.
| Its value is "%F writes:
| "
| Original value was
| "On %a, %b %d %Y, %N wrote:\n"
|
| Documentation:
| Format of the "Whomever writes:" line.
|
| The string is formatted using `format-spec'. The following constructs
| are replaced:
|
| %f The full From, e.g. "John Doe <***@example.invalid>".
| %n The mail address, e.g. "***@example.invalid".
| %N The real name if present, e.g.: "John Doe", else fall
| back to the mail address.
| %F The first name if present, e.g.: "John".
| %L The last name if present, e.g.: "Doe".
| %Z, %z The time zone in the numeric form, e.g.:"+0000".
|
| All other format specifiers are passed to `format-time-string'
| which is called using the date from the article your replying to, but
| the date in the formatted string will be expressed in the author's
| time zone as much as possible.
| Extracting the first (%F) and last name (%L) is done heuristically,
| so you should always check it yourself.
|
| Please also read the note in the documentation of
| `message-citation-line-function'.
`----
Or is there already some way of doing this? The "you should always check
it yourself" might be implying so?
It is kind of weird to get "nil writes:" when From: is just an email
address...
What do y'all think?
Best regards,
Adam
--
"You have to be optimistic about the possibility of Adam Sjøgren
solving the problem, but skeptical about the value of ***@koldfront.dk
whatever solution you've got so far."
"You have to be optimistic about the possibility of Adam Sjøgren
solving the problem, but skeptical about the value of ***@koldfront.dk
whatever solution you've got so far."