You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 3, 2021. It is now read-only.
| index | The index of the message in the folder. |
138
+
| total | The total count of messages in the folder. |
139
+
| "header" | The content of the named header. |
140
+
| unread_highlight | Returns either "[red]" or "" depending on message state. |
141
+
139
142
140
143
Headers are read flexibly, so if you used `#{subject}` the subject-header
141
144
would be returned. Similar things work for all other headers.
@@ -146,22 +149,31 @@ Flags can be prefixed with a number to denote their width:
146
149
*`#{06index}` means left-pad the `index` field with `0` until it is 6 characters wide.
147
150
*`#{20subject}` means truncate the subject at 20 characters if it is longer.
148
151
149
-
In addition to the padding/truncation there is one more special case which is the support of displaying email addresses. For example if you had a message from: `"Steve Kemp" <steve@steve.fi>` then the contents of `#{from}` would be that string.
152
+
In addition to the padding/truncation there is one more special case which is related to formatting email address. For example if you received a message from me and you tried to display the output of the `From:` header using `#{from}` you'd see the following:
153
+
154
+
*`Steve Kemp <steve@example.fi>`
150
155
151
-
You might prefer to use:
156
+
You might prefer to see only the name, or the email-address, so you could add a suffix to your format-string:
152
157
153
-
* "`#{from.name}`" to receive the output "Steve Kemp".
154
-
* "`#{from.email}`" to receive the output "<steve@steve.fi>".
158
+
* "`#{from.name}`" would show "Steve Kemp".
159
+
* "`#{from.email}`" would show "<steve@example.fi>".
155
160
161
+
This works for any of the headers which might contain email-addresses, such as `To:`, `From:`, `Bcc:`, `Cc:`, etc.
156
162
157
163
158
164
## Scripting Usage: Message Display
159
165
160
-
In the UI there is support for displaying a single message, via the use of:
166
+
There is support for displaying a single message, via the use of:
The output of this is currently hardwired, but in the future we might allow it to be changed via a template-file.
170
+
This subcommand uses an embedded template to control how the message is formatted. If you wish to format the message differently you can specify the path to a template-file to use:
0 commit comments