Wagner Riffel
feacca3c5c
all: use fmt.Errorf for fomartting errors
...
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
2019-09-04 16:30:57 -10:00
Wagner Riffel
6838c23478
all: purge redundant underscores
...
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
2019-09-04 16:30:57 -10:00
Reto Brunner
94b9d557de
extract search criteria parsing into the backends
2019-08-29 08:44:10 +09:00
Daniel Bridges
72204d1f24
Add optional body argument to compose command
2019-08-13 10:49:34 +09:00
Ben Cohen
4d95676274
Joining the args in cf for folders with spaces
2019-08-12 09:02:24 +09:00
Jelle Besseling
4478c6a4b7
Ignore scroll command when msgstore is nil
...
Fixes ~sircmpwn/aerc2#205. Many functions do a nil check on the store,
so this changes Store() so it returns nil when msglist is nil.
It also places the Scroll() behind the nil check in the next-message command.
https://todo.sr.ht/~sircmpwn/aerc2/205
2019-08-12 08:58:57 +09:00
Daniel Bridges
5b523880b4
Let user edit arbitrary headers in composer
2019-08-12 08:57:04 +09:00
Jelle Besseling
507c90537c
Implement next-message in msgview using account
...
This makes sure that the next-message command accepts the same arguments
in the account view and the msgview
2019-08-07 15:10:24 +09:00
Jelle Besseling
3650b72ca6
Implement next-folder using NextPrev with amount
...
This fixes ~sircmpwn/aerc2#182
https://todo.sr.ht/~sircmpwn/aerc2/182
2019-08-07 15:02:11 +09:00
Reto Brunner
3424c36d52
ChangeFolder: do not depend on the msgstore
...
We need to clear the filtering etc upon folder switch.
Not having a valid msgstore is however no reason not to switch directories.
2019-08-02 09:26:10 -04:00
Daniel Bridges
67fb0938a6
Support configurable header layout in compose widget
2019-07-26 14:22:04 -04:00
Kevin Kuehler
f81e4bd41c
Implement :filter, :clear
...
Signed-off-by: Kevin Kuehler <keur@ocf.berkeley.edu>
2019-07-19 11:30:32 -04:00
Kevin Kuehler
8bb115dbae
commands: Don't crash when store is nil
...
On a slow network connection, running these commands without this guard
will cause aerc to panic.
Signed-off-by: Kevin Kuehler <keur@ocf.berkeley.edu>
2019-07-15 09:46:49 -04:00
Drew DeVault
363aab5cc1
Make :pipe command more generic
2019-07-05 12:21:12 -04:00
Gregory Mullen
f9d26eef58
Add IMAP folder tab completion
...
Credit for this fix goes to Reto; I guess if we're not gonna be mutt
we should probabaly do things correctly.
2019-07-04 11:28:04 -04:00
Gregory Mullen
2a0961701c
Implement basic tab completion support
...
Tab completion currently only works on commands. Contextual completion
will be added in the future.
2019-06-29 14:24:19 -04:00
Drew DeVault
91a75cd98b
Implement :search, :next-result, :prev-result
2019-06-26 20:50:54 -04:00
Martin Hafskjold Thoresen
53df15ae06
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`.
2019-06-18 19:39:42 -04:00
Kevin Kuehler
9746f4858c
commands/msgview: Add next/prev commands
...
Signed-off-by: Kevin Kuehler <kkuehler@brave.com>
2019-06-11 09:34:48 -04:00
Drew DeVault
d22a9140cd
Implement :mkdir command
2019-06-09 19:21:26 -04:00
Kevin Kuehler
753adb9069
widget: Add ProvidesMessage interface
...
Consists of 3 functions
* Store: Access to MessageStore type
* SelectedAccount: Access to Account widget that the target widget
belongs to
* SelectedMessage: Current message (selected in msglist or the one we
are viewing)
Signed-off-by: Kevin Kuehler <keur@ocf.berkeley.edu>
2019-06-02 10:16:29 -04:00
Drew DeVault
1894a7e91b
Fix infinite recursion in reply.go:findPlaintext
2019-06-02 09:36:21 -04:00
Drew DeVault
cf50b98768
Fetch plaintext part when replying
2019-06-01 19:47:09 -04:00
Galen Abell
28fc9fa53d
Add :save and :pipe commands to viewer
...
* :save takes a path and saves the current message part to that location
* :pipe is the same as pipe on the account page, but uses the current
message part rather than the whole email (ie :pipe gzip -d)
* Refactored account:pipe and extracted common pipe code to
commands.util.QuickTerm
* Added helper command aerc.PushError
2019-05-27 09:37:07 -04:00
Drew DeVault
38e71659ff
Implement :forward
2019-05-25 14:52:57 -04:00
Drew DeVault
cef784bf52
Fix special characters in address.PersonalName
2019-05-25 11:56:56 -04:00
Drew DeVault
511fea3944
Flesh out multipart switcher
2019-05-20 16:43:08 -04:00
Drew DeVault
22cc40f4d4
pipe.go: let tab widget handle ellipsis
2019-05-20 14:01:13 -04:00
Drew DeVault
ef57300faf
Missed a spot
2019-05-19 18:25:38 -04:00
Drew DeVault
455c6f0b77
Rename :delete-message et al to :delete et al
2019-05-19 18:23:34 -04:00
Drew DeVault
fa5d8d7a00
Advance cursor after :delete and :move
...
So that you can repeat the action on the next message if appropriate
2019-05-19 18:21:02 -04:00
Drew DeVault
ca2cd00fe7
Fix scdoc & gofmt issues
2019-05-18 15:34:16 -04:00
Drew DeVault
98da4c9509
s/aerc2/aerc/g
2019-05-17 20:57:10 -04:00
Drew DeVault
ce0d0e887c
Improve reply-all recipient enumeration strategy
2019-05-16 14:16:45 -04:00
Drew DeVault
5701b6e949
Decode email when reading it for quoting
2019-05-16 14:09:57 -04:00
Drew DeVault
7f97e0b605
Don't prefix Re: if prefix already present
2019-05-16 12:42:46 -04:00
Drew DeVault
8be59cae6c
Implement :reply -q and :reply -a
2019-05-16 12:39:22 -04:00
Drew DeVault
475b697bdf
Implement (basic form) of :reply
2019-05-16 12:15:34 -04:00
Drew DeVault
b0bf09b98f
Copy sent emails to the Sent folder
...
Or rather, to a user-specified folder
2019-05-15 19:41:21 -04:00
Drew DeVault
2e5ae1946b
Implement move, mv commands
2019-05-14 16:55:50 -04:00
Drew DeVault
db213fd0ae
Implement :copy (aka :cp)
2019-05-14 16:44:59 -04:00
Drew DeVault
2c486cb7f5
Update tab name as subject changes
...
Also moves truncation to the tab widget
2019-05-14 16:18:59 -04:00
Drew DeVault
065da5e372
Add $EDITOR, internal config for compose
2019-05-14 15:25:30 -04:00
Drew DeVault
17bd2dc4db
Populate "From" header from config for new emails
2019-05-13 16:04:01 -04:00
Drew DeVault
577248f5e1
Add initial compose widget
2019-05-12 00:06:09 -04:00
Drew DeVault
71c13c9078
"Press any key to close" for completed processes
2019-05-11 14:15:29 -04:00
Tom Lebreux
6e11a020d4
Fix segfault on :select-message for unloaded messages
...
Signed-off-by: Tom Lebreux <tomlebreux@cock.li>
2019-04-17 20:02:12 -04:00
Tom Lebreux
3cd0d5bc28
Fix segfault on :view-message for unloaded message
...
This also fixes segfault on :view-message on empty directory
Signed-off-by: Tom Lebreux <tomlebreux@cock.li>
2019-04-10 15:40:06 -04:00
Drew DeVault
1a4cc31d67
Make tab width of :pipe consistent
2019-03-31 15:13:47 -04:00
Drew DeVault
bbdf9df75e
Add basic filter implementation
2019-03-31 14:24:53 -04:00