worker/imap: rig up search directory handler
worker/imap: implement search
aerc-config: [viewer] should be [compose]
Fix Cc & Bcc handling in replies
Fix reply bindings in [view]
Makefile: fix -ldflags -X invocation
Aerc uses the go linker to add some variables like main.Prefix / main.ShareDir
etc. however the go linker only considers the last -ldflags invocation it seems.
This commit fixes the makefile to use only a single -ldflags invocation, which
again sets the vars as expected.
account-wizard: automatically replace imap.* with smtp.*
Many email providers use the imap sub-domain for imap and the smtp
sub-domain for smtp. FastMail is an example of this. This is a small
quality-of-life improvement which automatically replaces imap.* with
smtp.* when going from the imap screen to the smtp screen in the wizard
Insert nil check before handling prev/next message
If these are called before the store is setup, `acct.Store()` returns
`nil`, and we SEGFAULT in `MessageStore.nextPrev`.
Add aerc -v to print the installed version
commands/msgview: add open command
Make part encoding checks case insensitive
commands/msgview/save and commands/msgview/pipe now use case
insensitive comparisons to determine if the part is encoded as base64
Ensure that flags are set properly
The current implementation has three classes of flags:
The logic to check for them should be in parallel if branches rather
than in sequential if-else ladder.
Document collecting log output
Redirecting stdout writes log output to that file, but this wasn't
v2 removes changes to aerc-tutorial; I was also on the fence about that,
and agree that it isn't on-topic for the tutorial.
imap: block until directory list is fully received
This fixes issues with INBOX mysteriously not being present at times
Set empty message in dirlist if no folder exist.
imap: respect the folder config option
Add uninstall target to Makefile
Also removes leftover directories if there isn't anything else in them.
Support directories in path to :save
This adds new functionality to :save in the message view for specifying
directories in the path. A new flag, -p, is also added to :save for
automatically creating any directories in the path that do not exist.
If the path ends in a / (e.g. "Downloads/mail/") or if the path is an
existing directory, the part's file name is the filename from the mail
header for the part. Otherwise, it uses the last element in the path as
the filename (e.g. 'blah.jpg' is the filename if the path is
Make awk filters more portable