~sircmpwn/aerc

aerc/widgets/compose.go -rw-r--r-- 19.2 KiB
905cb9df — Kalyan Sriram 3 months ago
Implement style configuration.

Introduce the ability to configure stylesets, allowing customization of
aerc's look (color scheme, font weight, etc). Default styleset is
installed to /path/to/aerc/stylesets/default.
Revert "Implement style configuration."

This reverts commit 1ff687ca2b0821c2cacc1fa725abb3302d2af9da.
1ff687ca — Kalyan Sriram 3 months ago
Implement style configuration.

Introduce the ability to configure stylesets, allowing customization of
aerc's look (color scheme, font weight, etc). Default styleset is
installed to /path/to/aerc/stylesets/default.
Make grid sizes dynamic

The grid used static sizes which meant that changing settings didn't
have an effect on elements of the ui, notably the sidebar width. This
patch makes the `Size` parameter of a cell a function which returns the
`int`, allowing for dynamic sizes.

A `Const` function is also included for ease of use for static sizes.
Revert "Add Style configuration"

This reverts commit 0f78f06610c0e8887aba2ae50e99b86477a384b3.
Revert "Remove duration from the status methods"

This reverts commit f06d683688e3d2139b14f67b7e349089e7200bf4.
Remove duration from the status methods

We always set 10 seconds anyhow, might as well do that without repeating ourselfs.
Add Style configuration

The following functionalities are added to configure aerc ui styles.
- Read stylesets from file with very basic fnmatch wildcard matching
- Add default styleset
- Support different stylesets as part of UiConfig allowing contextual
  styles.
- Move widgets/ui elements to use the stylesets.
- Add configuration manual for the styleset
Set AnsweredFlag on successful reply
Add recall command

This command allows recalling the selected postponed email to edit in
the composer. The command only allows recalling from the postpone
directory.
Add postpone command

This command uses the Postpone folder from the account config to save
messages to. Messages are saved as though they were sent so have a valid
'to' recipient address and should be able to be read back in for later
editing.
Remove ability to specify headers in the editor

Due to headers being essentially free text, we constantly run into issues
with parts of the body being interpreted as headers.

Remove the ability to overwrite headers to avoid that, while keeping the ability
to specify headers in the template files.

Fixes #383
compose: add space between headers and editor

Until the PGP changes, this was merged into the header widget.
Correct spelling
remove Original* check
create OriginalMail struct
Add address book completion in composer

Complete email address fields in the message composer with an external
address book command, compatible with mutt's query_cmd.
Composer: fix EOF errors

PrepareHeaders generated a fresh message ID and Date header every time.
This instead generates those headers in advance.
remove garbage headers in reply message

Very important fix. Remove garbage from reply message headers. Till
now all Original fields were send in reply, which we do not want and could
lead to uncorrect email message.
Parse headers from template

This patch parses the processed template for headers and populates
matching header editors.
Those are then stripped from the template body before prepending the template
and remaining header fields to the composer content.

The main motivation for this is keeping receiver, sender and subject
lines in the template file and generating the message subject from the
date.
Revert "Parse headers from template"

This reverts commit 31e3e9f56e0b8123f0238537112496b407055aef.
Next