Ticket #26 (accepted enhancement)
Parsing of From header
| Reported by: | zeborah | Owned by: | ajk |
|---|---|---|---|
| Priority: | minor | Milestone: | Future releases |
| Component: | HTTP | Keywords: | |
| Cc: | Sensitive: | no |
Description
Parse the From header into two strings eg $article.username$ and $article.email$.
If I understand correctly, currently $article.from$ takes the From header and displays it as normal when the viewer is logged in, or with the email munged if they're logged out.
If it was instead broken into two strings (look for the at and take anything around it that's a-Z, 0-9, or . as the email address; throw out surrounding punctuation/spaces; and what's left over is the username?) then how they display could be determined with more control by the template, eg
- username alone if logged out
- username with mailto link if logged in
- use the email address to access and display a gravatar ( http://www.gravatar.com/)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
