CustomAttributionLine

From FastMailWiki

Jump to: navigation, search

Custom Attribution Line

The attribution line is the line that precedes the quoted text when replying to messages and may look like this:

  • Den 25/11/2008 kl. 13.57 skrev Fred Foobar:
  • On November 11, 2008 13:57 Fred Foobar wrote:
  • * Fred Foobar [2008-11-25 13:57]:

The quoted message text follows below the attribution line:

On Wed, 26 Nov 2008 20:21:53 +0100 (CET), Fred Foobar <fred.foobar@example.com> wrote:
> Sjokoladekake i stor langpanne
> 
> 4.5 dl vann
> 7 ss bakekakao
> 400 g meierismør
> -------------> Gi et oppkok i en kasserolle
> 
> 9 dl sukker
> 9 dl hvetemel
> 2 ts natron
> --------------> Bland sammen det tørre, og ha i den varme
> sjokoladeblandingen (rør med mixer)

The default FastMail attribution line looks like this:

 [blank line]
 [blank line]
 On <weekday>, <day> <month> <year> <hour>:<minute> <timezone>, <name> wrote:

The format and the contents of the attribution line can be changed by users by defining a 'custom attribution line'. The custom attribution line is a text with some special variables. The default attribution line uses following definition:

 %n%nOn %a, %d %b %Y %H:%M %z, %+f wrote:

The system will replace any %X sequence with certain values.

Following sequences are defined:

Sender Details:

  • %+f - the sender's name and email address
  • %+n - the sender's name (or email address, if no name is defined)
  • %+a - the sender's email address

Time Formatting:

  • %d - the day of the month when the message was sent (01-31)
  • %e - the day of the month when the message was sent (1-31)
  • %m - the month when the message was sent (01-12)
  • %Y - the year when the message was sent (4 digits)
  • %y - the year when the message was sent (last 2 digits)
  • %H - the hour when the message was sent (00-23)
  • %I - the hour when the message was sent (01-12)
  • %k - the hour when the message was sent (0-23)
  • %l - the hour when the message was sent (1-12)
  • %p - 'AM' or 'PM' when when the message was sent
  • %P - 'am' or 'pm' when when the message was sent (yes, they're back to front. [1])
  • %M - the minutes when the message was sent (00-59)
  • %S - the seconds when the message was sent (00-59)
  • %A - the week day when the message was sent (Monday-Saturday)
  • %a - the abbreviated week day when the message was sent (Mon-Sat)
  • %B - the month when the message was sent (January-December)
  • %b - the abbreviated month when the message was sent (Jan-Dec)
  • %z - timezone

Other control characters:

  • %t - tabulator
  • %n - new line
  • %% - Percent
Personal tools