about summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
...
* merged focus{prev.next} into focusclient(1/-1)Anselm R. Garbe2007-02-224-26/+21
* made dwm.h more tidy (thx Jukka for the zoom() hint)Anselm R. Garbe2007-02-221-12/+11
* oopsAnselm R. Garbe2007-02-221-2/+2
* small bugfixAnselm R. Garbe2007-02-222-9/+15
* fixed some issues due to the Arg->const char * transitionAnselm R. Garbe2007-02-222-9/+10
* restoring default keybindings as Sander complainedAnselm R. Garbe2007-02-222-8/+8
* replaced Arg union with const char *arg, seems cleaner to me, even if we need...Anselm R. Garbe2007-02-229-185/+190
* re-added xterm to config.default.hAnselm R. Garbe2007-02-221-0/+1
* removed button4/5-bindings for incnmaster on mode label - that is misleadingAnselm R. Garbe2007-02-222-14/+0
* fixed order of key bindings described in dwm.1Anselm R. Garbe2007-02-221-5/+5
* status needs update even in togglemax() - since we got an indicator for thisAnselm R. Garbe2007-02-221-0/+1
* reusing drawsquare for client title, empty square before title means versatil...Anselm R. Garbe2007-02-222-24/+6
* dwm draws a small caret before the client title if it's a versatile clientAnselm R. Garbe2007-02-222-6/+31
* nah grouped keybindings by contextAnselm R. Garbe2007-02-222-47/+46
* fixed exit condition in togglemax()Anselm R. Garbe2007-02-221-1/+1
* fixing missing extern declars in dwm.h for {de,at}tach()Anselm R. Garbe2007-02-221-0/+2
* several changes, made togglemax extern and separated it from zoom() - moved z...Anselm R. Garbe2007-02-2210-183/+184
* just ignore the FD_ISSET check in main.c of xfd, just call XPending (which do...Anselm R. Garbe2007-02-211-6/+5
* optimizing background color of terminalsAnselm R. Garbe2007-02-211-1/+1
* using 333 as background, hey proggyclean is really goodAnselm R. Garbe2007-02-211-1/+1
* switching to 13pt proggyclean (this fits better my 1920x1200 resolution than ...Anselm R. Garbe2007-02-211-1/+1
* using smaller fontAnselm R. Garbe2007-02-211-1/+1
* using a green selborderAnselm R. Garbe2007-02-211-1/+1
* reverting to bg 555Anselm R. Garbe2007-02-212-2/+2
* s/555/357/ for SELCOLORAnselm R. Garbe2007-02-211-1/+1
* switching to urxvtcd for the moment (the uxterm flicker makes me headaches, s...Anselm R. Garbe2007-02-211-1/+1
* Added tag 3.6.1 for changeset 20ec6976cee1Anselm R. Garbe2007-02-211-0/+1
* creating 3.6.1 3.6.1Anselm R. Garbe2007-02-211-1/+1
* reverted accidental removal of sx, syAnselm R. Garbe2007-02-212-5/+6
* removed some global vars which should be static insteadAnselm R. Garbe2007-02-212-8/+7
* moved focus{next,prev} and nexttiled from client.c to layout.c (because those...Anselm R. Garbe2007-02-213-50/+50
* cleaned up and commented the config.*.hAnselm R. Garbe2007-02-213-31/+35
* Added tag 3.6 for changeset 75b1b25fe0d7e29400baf30568153f668324928bAnselm R. Garbe2007-02-211-0/+1
* fixed quoting and a comment 3.6Anselm R. Garbe2007-02-212-2/+2
* renamed setfont to initfont, getcolor to initcolorAnselm R. Garbe2007-02-201-29/+29
* fixed orderAnselm R. Garbe2007-02-201-11/+11
* added draw.c again (except getcolor and setfont which are helpers in main.c)Anselm R. Garbe2007-02-204-133/+144
* separating drawsquare from drawtext, made drawtext externAnselm R. Garbe2007-02-202-49/+65
* rechecked with OpenBSDAnselm R. Garbe2007-02-201-0/+1
* split screen.c into layout.c and tag.c (because the view is an implicit mixtu...Anselm R. Garbe2007-02-204-152/+160
* using eprint instead of fputsAnselm R. Garbe2007-02-191-6/+3
* replaced togglelayout with setlayoutAnselm R. Garbe2007-02-195-21/+29
* changed some odering in config*.hAnselm R. Garbe2007-02-192-20/+20
* renamed Client->versatile and Rule->versatile into Client->isversatile resp. ...Anselm R. Garbe2007-02-195-16/+16
* renames swim[ming] into versatileAnselm R. Garbe2007-02-197-64/+64
* renamed floating into swimming (this does not clash with C naming conventions...Anselm R. Garbe2007-02-197-96/+96
* removed debug compile flagsAnselm R. Garbe2007-02-191-2/+2
* introduced Layout structAnselm R. Garbe2007-02-199-82/+115
* some more code polishingAnselm R. Garbe2007-02-191-1/+2
* forgot an extern declarationAnselm R. Garbe2007-02-192-1/+2
ont-weight: bold } /* Literal.Number.Integer.Long */
aerc-templates(7)

# NAME

aerc-templates - template file specification for *aerc*(1)

# SYNOPSIS

aerc uses the go "text/template" package for the template parsing
which supports basic go lang operations.

# MESSAGE DATA

The following data can be used in templates. Though they are not all
available always.

*Addresses*
	An array of mail.Address. That can be used to add sender or recipient
	names to the template.

	- From: List of senders.
	- To: List of To recipients. Not always Available.
	- Cc: List of Cc recipients. Not always Available.
	- Bcc: List of Cc recipients. Not always Available.
	- OriginalFrom: List of senders of the original message.
	  Available for quoted reply and forward.

	Example:

	Get the name of the first sender.
	```
	{{(index .From 0).Name}}
	```

	Get the email address of the first sender
	```
	{{(index .From 0).Address}}
	```

*Date and Time*
	The date and time information is always available and can be easily
	formated.

	- Date: Date and Time information when the compose window is opened.
	- OriginalDate: Date and Time when the original message of received.
	  Available for quoted reply and forward.

	The _dateFormat_ function can be used to format the date and time.

	Example:

	Format the date to go's time package format options.
	```
	{{dateFormat .Date "Mon Jan 2 15:04:05 -0700 MST 2006"}}
	```

*Subject*
	The subject of the email is available for quoted reply and forward.

	Example:
	{{.Subject}}

*MIME Type*
	MIME Type is available for quoted reply.

	- OriginalMIMEType: MIME type info of quoted mail part. Usually
	  "text/plain" or "text/html".

*Original Message*
	When using quoted reply or forward, the original message is available.
	It can be used using two functions that are available to templates.

	Example:

	_wrap_ function can be used to wrap the original text to a number
	of characters per line.
	```
	{{wrap 72 .OriginalText}}
	```

	_quote_ function prepends each line with "> ".
	```
	{{quote .OriginalText}}
	```
	_exec_ function execute external command to process message.
	```
	{{exec `/usr/local/share/aerc/filters/html`}}
	```

	All of the above can be chained together if needed, for example.
	```
	{{exec `/usr/local/share/aerc/filters/html` .OriginalText | wrap 72 | quote}}
	```

	Automatic HTML parsing can be achieved.
	```
	{{if eq .OriginalMIMEType "text/html"}}
	{{exec `/usr/local/share/aerc/filters/html` .OriginalText | wrap 72 | quote}}
	{{else}}
	{{wrap 72 .OriginalText | quote}}
	{{end}}
	```

# SEE ALSO

*aerc*(1) *aerc-config*(5)

# AUTHORS

Maintained by Drew DeVault <sir@cmpwn.com>, who is assisted by other open
source contributors. For more information about aerc development, see
https://git.sr.ht/~sircmpwn/aerc.