From: asjo@koldfront.dk (Adam Sjøgren)
To: ding@gnus.org
Subject: message-citation-line-format - should %F have a fall back?
Date: Wed, 25 Feb 2015 21:34:24 +0100 [thread overview]
Message-ID: <87k2z5rar3.fsf@topper.koldfront.dk> (raw)
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 <john.doe@example.invalid>".
| %n The mail address, e.g. "john.doe@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 asjo@koldfront.dk
whatever solution you've got so far."
next reply other threads:[~2015-02-25 20:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-25 20:34 Adam Sjøgren [this message]
2015-02-26 0:41 ` Katsumi Yamaoka
2015-02-26 22:38 ` Adam Sjøgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k2z5rar3.fsf@topper.koldfront.dk \
--to=asjo@koldfront.dk \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).