Debian Codegraph @

config/aerc.conf

raw
1 #
2 # aerc main configuration
3
4 [general]
5 #
6 # Used as a default path for save operations if no other path is specified.
7 # ~ is expanded to the current user home dir.
8 #
9 #default-save-path=
10
11 # If set to "gpg", aerc will use system gpg binary and keystore for all crypto
12 # operations. If set to "internal", the internal openpgp keyring will be used.
13 # If set to "auto", the system gpg will be preferred unless the internal
14 # keyring already exists, in which case the latter will be used.
15 #
16 # Default: auto
17 #pgp-provider=auto
18
19 # By default, the file permissions of accounts.conf must be restrictive and
20 # only allow reading by the file owner (0600). Set this option to true to
21 # ignore this permission check. Use this with care as it may expose your
22 # credentials.
23 #
24 # Default: false
25 #unsafe-accounts-conf=false
26
27 # Output log messages to specified file. A path starting with ~/ is expanded to
28 # the user home dir. When redirecting aerc's output to a file using > shell
29 # redirection, this setting is ignored and log messages are printed to stdout.
30 #
31 #log-file=
32
33 # Only log messages above the specified level to log-file. Supported levels
34 # are: trace, debug, info, warn and error. When redirecting aerc's output to
35 # a file using > shell redirection, this setting is ignored and the log level
36 # is forced to trace.
37 #
38 # Default: info
39 #log-level=info
40
41 # Disable IPC entirely. Don't run commands (including mailto:... and mbox:...)
42 # in an existing aerc instance, and don't start an IPC server to allow
43 # subsequent aerc instances to run commands in the current one.
44 #
45 # Default: false
46 #disable-ipc=false
47
48 # Don't run mailto:... commands over IPC; start a new aerc instance with the
49 # composer instead.
50 #
51 # Default: false
52 #disable-ipc-mailto=false
53 #
54 # Don't run mbox:... commands over IPC; start a new aerc instance with the mbox
55 # file instead.
56 #
57 # Default: false
58 #disable-ipc-mbox=false
59
60 # Set the $TERM environment variable used for the embedded terminal.
61 #
62 # Default: xterm-256color
63 #term=xterm-256color
64
65 # Enable inheriting host terminal features in the embedded terminal. When
66 # enabled, the embedded terminal negotiates advanced keyboard protocols with
67 # child processes, allowing disambiguation of modified keys (e.g.
68 # Ctrl+Backspace is no longer aliased to C-h). Also enables hyperlink support
69 # (OSC 8), clipboard integration (OSC 52), inline image display, and
70 # foreground/background color queries (OSC 10/11) for child processes. Requires
71 # a compatible host terminal.
72 #
73 # Default: true
74 #inherit-host-tty-features=true
75
76 # Default shell command to use for :menu. This will be executed with sh -c and
77 # will run in an popover dialog.
78 #
79 # Any occurrence of %f will be replaced by a temporary file path where the
80 # command is expected to write output lines to be consumed by :menu. Otherwise,
81 # the lines will be read from the command's standard output.
82 #
83 # Examples:
84 # default-menu-cmd=fzf
85 # default-menu-cmd=fzf --multi
86 # default-menu-cmd=dmenu -l 20
87 # default-menu-cmd=ranger --choosefiles=%f
88 #
89 #default-menu-cmd=
90
91 # Directory where aerc saves temporary files. If it does not exist, the
92 # directory will be created along with its parents with permissions _700_. If
93 # this is empty (which is the default), the platform-specific default directory
94 # for temporary files is used.
95 #
96 #temporary-directory=
97
98 [ui]
99 #
100 # Describes the format for each row in a mailbox view. This is a comma
101 # separated list of column names with an optional align and width suffix. After
102 # the column name, one of the '<' (left), ':' (center) or '>' (right) alignment
103 # characters can be added (by default, left) followed by an optional width
104 # specifier. The width is either an integer representing a fixed number of
105 # characters, or a percentage between 1% and 99% representing a fraction of the
106 # terminal width. It can also be one of the '*' (auto) or '=' (fit) special
107 # width specifiers. Auto width columns will be equally attributed the remaining
108 # terminal width. Fit width columns take the width of their contents. If no
109 # width specifier is set, '*' is used by default.
110 #
111 # Default: flags:4,name<20%,subject,date>=
112 #index-columns=flags:4,name<20%,subject,date>=
113
114 #
115 # Each name in index-columns must have a corresponding column-$name setting.
116 # All column-$name settings accept golang text/template syntax. See
117 # aerc-templates(7) for available template attributes and functions.
118 #
119 # Here are some examples to show the To field instead of the From field for
120 # an email (modifying column-name):
121 #
122 # 1. a generic one
123 # column-name={{ .Peer | names | join ", " }}
124 # 2. based upon the selected folder
125 # column-name={{if match .Folder "^(Gesendet|Sent)$"}}{{index (.To | names) 0}}{{else}}{{index (.From | names) 0}}{{end}}
126 #
127 # Default settings
128 #column-flags={{.Flags | join ""}}
129 #column-name={{index (.From | names) 0}}
130 #column-subject={{.ThreadPrefix}}{{.Subject}}
131 #column-date={{.DateAutoFormat .Date.Local}}
132
133 #
134 # String separator inserted between columns. When the column width specifier is
135 # an exact number of characters, the separator is added to it (i.e. the exact
136 # width will be fully available for the column contents).
137 #
138 # Default: " "
139 #column-separator=" "
140
141 #
142 # See time.Time#Format at https://godoc.org/time#Time.Format
143 #
144 # Default: 2006 Jan 02
145 #timestamp-format=2006 Jan 02
146
147 #
148 # Index-only time format for messages that were received/sent today.
149 # If this is empty, timestamp-format is used instead.
150 #
151 # Default: 15:04
152 #this-day-time-format=15:04
153
154 #
155 # Index-only time format for messages that were received/sent within the last
156 # 7 days. If this is empty, timestamp-format is used instead.
157 #
158 # Default: Jan 02
159 #this-week-time-format=Jan 02
160
161 #
162 # Index-only time format for messages that were received/sent this year.
163 # If this is empty, timestamp-format is used instead.
164 #
165 # Default: Jan 02
166 #this-year-time-format=Jan 02
167
168 #
169 # Overrides timestamp-format for the message view.
170 #
171 # Default: 2006 Jan 02, 15:04 GMT-0700
172 #message-view-timestamp-format=2006 Jan 02, 15:04 GMT-0700
173
174 #
175 # If set, overrides timestamp-format in the message view for messages
176 # that were received/sent today.
177 #
178 #message-view-this-day-time-format=
179
180 # If set, overrides timestamp-format in the message view for messages
181 # that were received/sent within the last 7 days.
182 #
183 #message-view-this-week-time-format=
184
185 #
186 # If set, overrides *timestamp-format* in the message view for messages
187 # that were received/sent this year.
188 #
189 #message-view-this-year-time-format=
190
191 #
192 # Width of the sidebar, including the border.
193 #
194 # Default: 22
195 #sidebar-width=22
196
197 #
198 # Default split layout for message list tabs. The syntax is:
199 #
200 # [<direction>] <size>
201 #
202 # <direction> is optional and defaults to horizontal. It can take one
203 # of the following values: h, horiz, horizontal, v, vert, vertical.
204 #
205 # <size> is a positive integer representing the size (in terminal cells)
206 # of the message list window.
207 #
208 #message-list-split=
209
210 #
211 # Message to display when viewing an empty folder.
212 #
213 # Default: (no messages)
214 #empty-message=(no messages)
215
216 # Message to display when no folders exists or are all filtered
217 #
218 # Default: (no folders)
219 #empty-dirlist=(no folders)
220 #
221 # Value to set {{.Subject}} template to when subject is empty.
222 #
223 # Default: (no subject)
224 #empty-subject=(no subject)
225
226 # Enable mouse events in the ui, e.g. clicking and scrolling with the mousewheel
227 #
228 # Default: false
229 #mouse-enabled=false
230
231 #
232 # Ring the bell when new messages are received
233 #
234 # Default: true
235 #new-message-bell=true
236
237 #
238 # Template to use for Account tab titles
239 #
240 # Default: {{.Account}}
241 #tab-title-account={{.Account}}
242
243 #
244 # Template to use for Composer tab titles
245 #
246 # Default: {{if .To}}to:{{index (.To | shortmboxes) 0}} {{end}}{{.SubjectBase}}
247 #tab-title-composer={{if .To}}to:{{index (.To | shortmboxes) 0}} {{end}}{{.SubjectBase}}
248
249 #
250 # Template to use for Terminal tab titles. Only valid in the global [ui]
251 # section.
252 #
253 # Default: {{.Title}}
254 #tab-title-terminal={{.Title}}
255
256 #
257 # Template to use for Message Viewer tab titles
258 #
259 # Default: {{.Subject}}
260 #tab-title-viewer={{.Subject}}
261
262
263 # Marker to show before a pinned tab's name.
264 #
265 # Default: `
266 #pinned-tab-marker='`'
267
268 # Template for the left side of the directory list.
269 # See aerc-templates(7) for all available fields and functions.
270 #
271 # Default: {{.Folder}}
272 #dirlist-left={{.Folder}}
273
274 # Template for the right side of the directory list.
275 # See aerc-templates(7) for all available fields and functions.
276 #
277 # Default: {{if .Unread}}{{humanReadable .Unread}}{{end}}
278 #dirlist-right={{if .Unread}}{{humanReadable .Unread}}{{end}}
279
280 # Delay after which the messages are actually listed when entering a directory.
281 # This avoids loading messages when skipping over folders and makes the UI more
282 # responsive. If you do not want that, set it to 0s.
283 #
284 # Default: 200ms
285 #dirlist-delay=200ms
286
287 # Display the directory list as a foldable tree that allows to collapse and
288 # expand the folders.
289 #
290 # Default: false
291 #dirlist-tree=false
292
293 # If dirlist-tree is enabled, set level at which folders are collapsed by
294 # default. Set to 0 to disable.
295 #
296 # Default: 0
297 #dirlist-collapse=0
298
299 # List of space-separated criteria to sort the messages by, see *sort*
300 # command in *aerc*(1) for reference. Prefixing a criterion with "-r "
301 # reverses that criterion.
302 #
303 # Example: "from -r date"
304 #
305 #sort=
306
307 # Moves to next message when the current message is deleted
308 #
309 # Default: true
310 #next-message-on-delete=true
311
312 # Automatically set the "seen" flag when a message is opened in the message
313 # viewer.
314 #
315 # Default: true
316 #auto-mark-read=true
317
318 # Specifies whether the _seen_ flag of messages being previewed in the message
319 # list split should be automatically set to _true_ after a delay, controlled by
320 # _auto-mark-read-split-delay_.
321 #
322 # Default: false
323 #auto-mark-read-split=false
324
325 # If _auto-mark-read-split_ is true, specifies the number of seconds after
326 # which a message previewed in the message list split must considered _seen_.
327 #
328 # Default: 3s
329 #auto-mark-read-split-delay=3s
330
331 # The directories where the stylesets are stored. It takes a colon-separated
332 # list of directories. If this is unset or if a styleset cannot be found, the
333 # following paths will be used as a fallback in that order:
334 #
335 # ${XDG_CONFIG_HOME:-~/.config}/aerc/stylesets
336 # ${XDG_DATA_HOME:-~/.local/share}/aerc/stylesets
337 # /usr/local/share/aerc/stylesets
338 # /usr/share/aerc/stylesets
339 #
340 #stylesets-dirs=
341
342 # Uncomment to use box-drawing characters for vertical and horizontal borders.
343 #
344 # Default: "│" and "─"
345 #border-char-vertical="│"
346 #border-char-horizontal="─"
347
348 # Sets the styleset to use for the aerc ui elements.
349 #
350 # Default: default
351 #styleset-name=default
352
353 # Activates fuzzy search in commands and their arguments: the typed string is
354 # searched in the command or option in any position, and need not be
355 # consecutive characters in the command or option.
356 #
357 # Default: false
358 #fuzzy-complete=false
359
360 # How long to wait after the last input before auto-completion is triggered.
361 #
362 # Default: 250ms
363 #completion-delay=250ms
364
365 # The minimum required characters to allow auto-completion to be triggered after
366 # completion-delay.
367 #
368 # Setting this to "manual" disables automatic completion, leaving only the
369 # manually triggered completion with the $complete key (see aerc-binds(5) for
370 # more details).
371 #
372 # Default: 1
373 #completion-min-chars=1
374
375 #
376 # Global switch for completion popovers
377 #
378 # Default: true
379 #completion-popovers=true
380
381 # Icons to indicate PGP status of messages
382 #
383 # Default: [e]
384 #icon-encrypted=[e]
385 #
386 # Default: [s]
387 #icon-signed=[s]
388 #
389 # Default: [s?]
390 #icon-unknown=[s?]
391 #
392 # Default: [s!]
393 #icon-invalid=[s!]
394
395 # Reverses the order of the message list. By default, the message list is
396 # ordered with the newest (highest UID) message on top. Reversing the order
397 # will put the oldest (lowest UID) message on top. This can be useful in cases
398 # where the backend does not support sorting.
399 #
400 # Default: false
401 #reverse-msglist-order = false
402
403 # Reverse display of the message threads. Default order is the initial
404 # message is on the top with all the replies being displayed below. The
405 # reverse option will put the initial message at the bottom with the
406 # replies on top.
407 #
408 # Default: false
409 #reverse-thread-order=false
410
411 # Positions the cursor on the last message in the message list (at the
412 # bottom of the view) when opening a new folder.
413 #
414 # Default: false
415 #select-last-message=false
416
417 # Sort the thread siblings according to the sort criteria for the messages. If
418 # sort-thread-siblings is false, the thread siblings will be sorted based on
419 # the message UID in ascending order. If this option is set to false and
420 # threading-by-subject is set to true, then siblings will be ordered by subject
421 # headers using UTF-8 sorting.
422 #
423 # This option is only applicable for client-side threading with a backend that
424 # enables sorting. Note that there's a performance impact when sorting is
425 # activated.
426 #
427 # Default: false
428 #sort-thread-siblings=false
429
430 # Set the scroll offset in number of lines from the top and bottom of the
431 # message list.
432 #
433 # Default: 0
434 #msglist-scroll-offset = 0
435
436 #
437 # Enable a threaded view of messages. If this is not supported by the backend
438 # (IMAP server or notmuch), threads will be built by the client.
439 #
440 # Default: false
441 #threading-enabled=false
442
443 # Force client-side thread building
444 #
445 # Default: false
446 #force-client-threads=false
447
448 # If no References nor In-Reply-To headers can be matched to build client side
449 # threads, fallback to similar subjects. This setting also affects how thread
450 # siblings are ordered when sort-thread-siblings is left to false.
451 #
452 # Default: false
453 #threading-by-subject=false
454
455 # Show thread context enables messages which do not match the current query (or
456 # belong to the current mailbox) to be shown for context. These messages can be
457 # styled separately using "msglist_thread_context" in a styleset. This feature
458 # is not supported by all backends
459 #
460 # Default: false
461 #show-thread-context=false
462
463 # Debounce client-side thread building
464 #
465 # Default: 50ms
466 #client-threads-delay=50ms
467
468 #
469 # Thread prefix customization:
470
471 #
472 # Customize the thread prefix appearance by selecting the arrow head.
473 #
474 # Default: ">"
475 #thread-prefix-tip = ">"
476
477 #
478 # Customize the thread prefix appearance by selecting the arrow indentation.
479 #
480 # Default: " "
481 #thread-prefix-indent = " "
482
483 #
484 # Customize the thread prefix appearance by selecting the vertical extension of
485 # the arrow.
486 #
487 # Default: "│"
488 #thread-prefix-stem = "│"
489
490 #
491 # Customize the thread prefix appearance by selecting the horizontal extension
492 # of the arrow.
493 #
494 # Default: ""
495 #thread-prefix-limb = ""
496
497 #
498 # Customize the thread prefix appearance by selecting the folded thread
499 # indicator.
500 #
501 # Default: "+"
502 #thread-prefix-folded = "+"
503
504 #
505 # Customize the thread prefix appearance by selecting the unfolded thread
506 # indicator.
507 #
508 # Default: ""
509 #thread-prefix-unfolded = ""
510
511 #
512 # Customize the thread prefix appearance by selecting the first child connector.
513 #
514 # Default: ""
515 #thread-prefix-first-child = ""
516
517 #
518 # Customize the thread prefix appearance by selecting the connector used if
519 # the message has siblings.
520 #
521 # Default: "├─"
522 #thread-prefix-has-siblings = "├─"
523
524 #
525 # Customize the thread prefix appearance by selecting the connector used if the
526 # message has no parents and no children.
527 #
528 # Default: ""
529 #thread-prefix-lone = ""
530
531 #
532 # Customize the thread prefix appearance by selecting the connector used if the
533 # message has no parents and has children.
534 #
535 # Default: ""
536 #thread-prefix-orphan = ""
537
538 #
539 # Customize the thread prefix appearance by selecting the connector for the last
540 # sibling.
541 #
542 # Default: "└─"
543 #thread-prefix-last-sibling = "└─"
544
545 #
546 # Customize the reversed thread prefix appearance by selecting the connector for
547 # the last sibling.
548 #
549 # Default: "┌─"
550 #thread-prefix-last-sibling-reverse = "┌─"
551
552 #
553 # Customize the thread prefix appearance by selecting the connector for dummy
554 # thread.
555 #
556 # Default: "┬─"
557 #thread-prefix-dummy = "┬─"
558
559 #
560 # Customize the reversed thread prefix appearance by selecting the connector for
561 # dummy thread.
562 #
563 # Default: "┴─"
564 #thread-prefix-dummy-reverse = "┴─"
565
566 #
567 # Customize the reversed thread prefix appearance by selecting the first child
568 # connector.
569 #
570 # Default: ""
571 #thread-prefix-first-child-reverse = ""
572
573 #
574 # Customize the reversed thread prefix appearance by selecting the connector
575 # used if the message has no parents and has children.
576 #
577 # Default: ""
578 #thread-prefix-orphan-reverse = ""
579
580 #
581 # Center the editor and the message viewer on screen with a fixed width.
582 #
583 # Default: 0
584 #centered-layout-width = 0
585
586 [statusline]
587 #
588 # Describes the format for the status line. This is a comma separated list of
589 # column names with an optional align and width suffix. See [ui].index-columns
590 # for more details. To completely mute the status line except for push
591 # notifications, explicitly set status-columns to an empty string.
592 #
593 # Default: left<*,center:=,right>*
594 #status-columns=left<*,center:=,right>*
595
596 #
597 # Each name in status-columns must have a corresponding column-$name setting.
598 # All column-$name settings accept golang text/template syntax. See
599 # aerc-templates(7) for available template attributes and functions.
600 #
601 # Default settings
602 #column-left=[{{.Account}}] {{.StatusInfo}}
603 #column-center={{.PendingKeys}}
604 #column-right={{.TrayInfo}} | {{cwd}}
605
606 #
607 # String separator inserted between columns.
608 # See [ui].column-separator for more details.
609 #
610 #column-separator=" "
611
612 # Specifies the separator between grouped statusline elements.
613 #
614 # Default: " | "
615 #separator=" | "
616
617 # Defines the mode for displaying the status elements.
618 # Options: text, icon
619 #
620 # Default: text
621 #display-mode=text
622
623 [viewer]
624 #
625 # Specifies the pager to use when displaying emails. Note that some filters
626 # may add ANSI codes to add color to rendered emails, so you may want to use a
627 # pager which supports ANSI codes.
628 #
629 # Default: less -Rc
630 #pager=less -Rc
631
632 #
633 # If an email offers several versions (multipart), you can configure which
634 # mimetype to prefer. For example, this can be used to prefer plaintext over
635 # html emails.
636 #
637 # Default: text/plain,text/html
638 #alternatives=text/plain,text/html
639
640 #
641 # Default setting to determine whether to show full headers or only parsed
642 # ones in message viewer.
643 #
644 # Default: false
645 #show-headers=false
646
647 #
648 # Layout of headers when viewing a message. To display multiple headers in the
649 # same row, separate them with a pipe, e.g. "From|To". Rows will be hidden if
650 # none of their specified headers are present in the message.
651 #
652 # Default: From|To,Cc|Bcc,Date,Subject
653 #header-layout=From|To,Cc|Bcc,Date,Subject
654
655 # Whether to always show the mimetype of an email, even when it is just a single part
656 #
657 # Default: false
658 #always-show-mime=false
659
660 # Define the maximum height of the mimetype switcher before a scrollbar is used.
661 # The height of the mimetype switcher is restricted to half of the display
662 # height. If the provided value for the height is zero, the number of parts will
663 # be used as the height of the type switcher.
664 #
665 # Default: 0
666 #max-mime-height = 0
667
668 # Parses and extracts http links when viewing a message. Links can then be
669 # accessed with the open-link command.
670 #
671 # Default: true
672 #parse-http-links=true
673
674 # Enable inlining of images referenced by <img> tags with cid: URLs in HTML
675 # emails. When enabled, aerc will fetch image parts referenced by their
676 # Content-ID and replace cid: URLs with base64-encoded data: URLs. This allows
677 # HTML emails with embedded images to be properly viewed in browsers.
678 #
679 # Works with the builtin html filter when using the -sixel option (requires
680 # img2sixel to be installed). Also works with :save, :open, and :pipe commands.
681 #
682 # Default: false
683 #html-inline-images=false
684
685 [compose]
686 #
687 # Specifies the command to run the editor with. It will be shown in an embedded
688 # terminal, though it may also launch a graphical window if the environment
689 # supports it. Defaults to $VISUAL, $EDITOR, or vi.
690 #editor=
691
692 #
693 # When set, aerc will create and read .eml files for composing that have
694 # non-standard \n linebreaks. This is only relevant if the used editor does not
695 # support CRLF linebreaks.
696 #
697 #lf-editor=false
698
699 #
700 # Default header fields to display when composing a message. To display
701 # multiple headers in the same row, separate them with a pipe, e.g. "To|From".
702 #
703 # Default: To|From,Subject
704 #header-layout=To|From,Subject
705
706 #
707 # Edit headers into the text editor instead than separate fields.
708 #
709 # When this is true, address-book-cmd is not supported and address completion
710 # is left to the editor itself. Also, displaying multiple headers on the same
711 # line is not possible.
712 #
713 # Default: false
714 #edit-headers=false
715
716 #
717 # Sets focus to the email body when the composer window opens.
718 #
719 # Default: false
720 #focus-body=false
721
722 #
723 # Specifies the command to be used to tab-complete email addresses. Any
724 # occurrence of "%s" in the address-book-cmd will be replaced with what the
725 # user has typed so far.
726 #
727 # The command must output the completions to standard output, one completion
728 # per line. Each line must be tab-delimited, with an email address occurring as
729 # the first field. Only the email address field is required. The second field,
730 # if present, will be treated as the contact name. Additional fields are
731 # ignored.
732 #
733 # This parameter can also be set per account in accounts.conf.
734 #address-book-cmd=
735
736 # Specifies the command to be used to select attachments. Any occurrence of
737 # '%s' in the file-picker-cmd will be replaced with the argument <arg>
738 # to :attach -m <arg>. Any occurrence of '%f' will be replaced by the
739 # location of a temporary file, from which aerc will read the selected files.
740 #
741 # If '%f' is not present, the command must output the selected files to
742 # standard output, one file per line. If it is present, then aerc does not
743 # capture the standard output and instead reads the files from the temporary
744 # file which should have the same format.
745 #file-picker-cmd=
746
747 #
748 # Allow to address yourself when replying
749 #
750 # Default: true
751 #reply-to-self=true
752
753 # Warn before sending an email with an empty subject.
754 #
755 # Default: false
756 #empty-subject-warning=false
757
758 #
759 # Warn before sending an email that matches the specified regexp but does not
760 # have any attachments. Leave empty to disable this feature.
761 #
762 # Uses Go's regexp syntax, documented at https://golang.org/s/re2syntax. The
763 # "(?im)" flags are set by default (case-insensitive and multi-line).
764 #
765 # Example:
766 # no-attachment-warning=^[^>]*attach(ed|ment)
767 #
768 #no-attachment-warning=
769
770 #
771 # When set, aerc will generate "format=flowed" bodies with a content type of
772 # "text/plain; format=flowed" as described in RFC3676. This format is easier to
773 # handle for some mailing software, and generally just looks like ordinary
774 # text. To actually make use of this format's features, you'll need support in
775 # your editor.
776 #
777 #format-flowed=false
778
779 [multipart-converters]
780 #
781 # Converters allow to generate multipart/alternative messages by converting the
782 # main text/plain part into any other MIME type. Only exact MIME types are
783 # accepted. The commands are invoked with sh -c and are expected to output
784 # valid UTF-8 text.
785 #
786 # Example (obviously, this requires that you write your main text/plain body
787 # using the markdown syntax):
788 #text/html=pandoc -f markdown -t html --standalone
789
790 [filters]
791 #
792 # Filters allow you to pipe an email body through a shell command to render
793 # certain emails differently, e.g. highlighting them with ANSI escape codes.
794 #
795 # The commands are invoked with sh -c. The following folders are prepended to
796 # the system $PATH to allow referencing filters from their name only:
797 #
798 # ${XDG_CONFIG_HOME:-~/.config}/aerc/filters
799 # ~/.local/libexec/aerc/filters
800 # ${XDG_DATA_HOME:-~/.local/share}/aerc/filters
801 # $PREFIX/libexec/aerc/filters
802 # $PREFIX/share/aerc/filters
803 # /usr/libexec/aerc/filters
804 # /usr/share/aerc/filters
805 #
806 # If you want to run a program in your default $PATH which has the same name
807 # as a builtin filter (e.g. /usr/bin/colorize), use its absolute path.
808 #
809 # The following variables are defined in the filter command environment:
810 #
811 # AERC_MIME_TYPE the part MIME type/subtype
812 # AERC_FORMAT the part content type format= parameter
813 # AERC_FILENAME the attachment filename (if any)
814 # AERC_SUBJECT the message Subject header value
815 # AERC_FROM the message From header value
816 #
817 # The first filter which matches the email's mimetype will be used, so order
818 # them from most to least specific.
819 #
820 # You can also match on non-mimetypes, by prefixing with the header to match
821 # against (non-case-sensitive) and a comma, e.g. subject,text will match a
822 # subject which contains "text". Use header,~regex to match against a regex.
823 #
824 text/plain=colorize
825 text/calendar=calendar
826 message/delivery-status=colorize
827 message/rfc822=colorize
828 #text/html=pandoc -f html -t plain | colorize
829 text/html=! html
830 #text/html=! w3m -T text/html -I UTF-8
831 #text/*=bat -fP --file-name="$AERC_FILENAME"
832 #application/x-sh=bat -fP -l sh
833 #image/*=catimg -w $(tput cols) -
834 #subject,~Git(hub|lab)=lolcat -f
835 #from,thatguywhodoesnothardwraphismessages=wrap -w 100 | colorize
836
837 # This special filter is only used to post-process email headers when
838 # [viewer].show-headers=true
839 # By default, headers are piped directly into the pager.
840 #
841 .headers=colorize
842
843 [openers]
844 #
845 # Openers allow you to specify the command to use for the :open and :open-link
846 # actions on a per-MIME-type basis. The :open-link URL scheme is used to
847 # determine the MIME type as follows: x-scheme-handler/<scheme>.
848 #
849 # {} is expanded as the temporary filename or URL to be opened with proper
850 # shell quoting. If it is not encountered in the command, the filename/URL will
851 # be appended to the end of the command. The command will then be executed with
852 # `sh -c`.
853 #
854 # Like [filters], openers support basic shell globbing. The first opener which
855 # matches the part's MIME type (or URL scheme handler MIME type) will be used,
856 # so order them from most to least specific.
857 #
858 # Examples:
859 # x-scheme-handler/irc=hexchat
860 # x-scheme-handler/http*=printf '%s' {} | wl-copy
861 # text/html=surf -dfgms
862 # text/plain=gvim {} +125
863 # message/rfc822=thunderbird
864
865 [hooks]
866 #
867 # Hooks are triggered whenever the associated event occurs.
868
869 #
870 # Executed when a new email arrives in the selected folder
871 #mail-received=notify-send "[$AERC_ACCOUNT/$AERC_FOLDER] New mail from $AERC_FROM_NAME" "$AERC_SUBJECT"
872
873 #
874 # Executed when mail is deleted from a folder
875 #mail-deleted=mbsync "$AERC_ACCOUNT:$AERC_FOLDER" &
876
877 #
878 # Executed when aerc adds mail to a folder
879 #mail-added=mbsync "$AERC_ACCOUNT:$AERC_FOLDER" &
880
881 #
882 # Executed when aerc starts
883 #aerc-startup=aerc :terminal calcurse && aerc :next-tab
884
885 #
886 # Executed when aerc shuts down.
887 #aerc-shutdown=
888
889 #
890 # Executed when notmuch tags are modified.
891 #tag-modified=
892
893 #
894 # Executed when flags are changed on a message.
895 #flag-changed=mbsync "$AERC_ACCOUNT:$AERC_FOLDER" &
896
897 [templates]
898 # Templates are used to populate email bodies automatically.
899 #
900
901 # The directories where the templates are stored. It takes a colon-separated
902 # list of directories. If this is unset or if a template cannot be found, the
903 # following paths will be used as a fallback in that order:
904 #
905 # ${XDG_CONFIG_HOME:-~/.config}/aerc/templates
906 # ${XDG_DATA_HOME:-~/.local/share}/aerc/templates
907 # /usr/local/share/aerc/templates
908 # /usr/share/aerc/templates
909 #
910 #template-dirs=
911
912 # The default template to be used for new messages.
913 #
914 # default: new_message
915 #new-message=new_message
916
917 # The default template to be used for quoted replies.
918 #
919 # default: quoted_reply
920 #quoted-reply=quoted_reply
921
922 # The default template to be used for forward as body.
923 #
924 # default: forward_as_body
925 #forwards=forward_as_body