Manos Pitsidianakis
77dc1d74bf
Add smtp client support for sending mail in UI
...
`mailer_command` was removed, and a new setting `send_mail` was added.
Its possible values are a string, consisting of a shell command to
execute, or settings to configure an smtp server connection. The
configuration I used for testing this is:
[composing]
send_mail = { hostname = "smtp.mail.tld", port = 587, auth = { type = "auto", username = "yoshi", password = { type = "command_eval", value = "gpg2 --no-tty -q -d ~/.passwords/msmtp/yoshi.gpg" } }, security = { type = "STARTTLS" } }
For local smtp server:
[composing]
send_mail = { hostname = "localhost", port = 25, auth = { type = "none" }, security = { type = "none" } }
4 years ago
Manos Pitsidianakis
ddafde7b37
jobs: save handle for each Job
...
If we save the JoinHandle for each task, we can cancel it in future
commits if we have to timeout network requests.
4 years ago
Manos Pitsidianakis
9db6b07b71
Remove some needless clones and stuff (thanks to Clippy)
4 years ago
Manos Pitsidianakis
edfd2b1fef
conf.rs: accept default action "Y" when asking to create config
...
Reported by: bronsen
4 years ago
Manos Pitsidianakis
d914f7afd9
MailView: send NewJob event on mail body request
4 years ago
Manos Pitsidianakis
899d497c9c
Rename _cmd options to _command for consistency
4 years ago
Manos Pitsidianakis
bfc08f892d
Show account online error status in status tab
4 years ago
Manos Pitsidianakis
3a16dc6522
Show account online error status when offline
4 years ago
Manos Pitsidianakis
931863436d
imap: remove blocking imap backend, replace with async
4 years ago
Manos Pitsidianakis
89dedbedb7
imap: launch async watch when connection comes online
...
Closes #38 Make async watch/refresh work in imap
4 years ago
Manos Pitsidianakis
b5748c247a
MailBackend: remove connect() method
4 years ago
Manos Pitsidianakis
f48343ca89
conf/accounts: add is_{async,remote} fields
4 years ago
Manos Pitsidianakis
231471fa8c
MailBackend: add is_{async,online} methods
4 years ago
Manos Pitsidianakis
94e0aa4fe7
MailBackend: change get() ret type to Result<_>
4 years ago
Manos Pitsidianakis
a7e177586a
Fix clippy lints
4 years ago
Manos Pitsidianakis
bbedeed3e3
More imap async fixes
4 years ago
Manos Pitsidianakis
b3876113aa
BackendOp: return future in as_bytes()
4 years ago
Manos Pitsidianakis
4721073bc3
Rename jobs1 to jobs
4 years ago
Manos Pitsidianakis
1ddde9ccba
BackendOp: change fetch_flags() retval to future
4 years ago
Manos Pitsidianakis
ed3e66cedf
BackendOp: remove description() method
4 years ago
Manos Pitsidianakis
e06308fed2
MailBackend: change more methods to Futures
4 years ago
Manos Pitsidianakis
03522c0298
melib: Fixup warnings in imap_async, maildir
4 years ago
Manos Pitsidianakis
21051fa862
JobRequest: add more variants
4 years ago
Manos Pitsidianakis
c82367e00d
BackendOp: Change set_{flag,tag} methods
4 years ago
Manos Pitsidianakis
8c1fc031e5
BackendOp: change fetch_flags retval to Result<Flag>
4 years ago
Manos Pitsidianakis
ee10cdbcd5
Make get_async() return a Stream
4 years ago
Manos Pitsidianakis
a38764f490
Add somewhat-working async IMAP backend
4 years ago
Manos Pitsidianakis
4f3a98f90a
Add job executor
4 years ago
Manos Pitsidianakis
ca7bbd9de4
Fix pasted text not being registered immediately
...
Input thread reading from stdin should continue reading after receiving
the magic BRACKET START sequence until receiving the BRACKET END
sequence.
4 years ago
Manos Pitsidianakis
58aff83b95
Change "Draft saved" to "Message saved"
4 years ago
Manos Pitsidianakis
c0c19268ee
Add ProgressSpinner widget
4 years ago
Manos Pitsidianakis
c4bc7be5d1
Tabbed: correctly pass events to other children
...
When passing an event to the focused tab and it is not handled, the
other children weren't then each called to see if they handle the
event. That led to refresh events etc not being processed by the mail
list tab if it wasn't focused.
4 years ago
Manos Pitsidianakis
4ae7a57d45
Add save-draft command
4 years ago
Manos Pitsidianakis
bfbaf3d617
Utilize EnvelopeRemove events
...
EnvelopeRemove events were not ever used in the UI
4 years ago
Manos Pitsidianakis
efb06be09b
melib: return Result<_> from operation()
...
Envelope might have been deleted before main thread requests an
operation, which is a race condition.
4 years ago
Manos Pitsidianakis
b946b61cf1
terminal/cells.rs: remove unused variables
4 years ago
Manos Pitsidianakis
eca1921a8a
collection: add update_flags() method
...
On NewFlags events, the threads in Collection were not being updated, so
if an envelope's seen status was toggled the thread's unseen count was
not updated, and thus not reflected in the UI even though the
envelope's new flags event was registered properly.
4 years ago
Manos Pitsidianakis
a6a30f3adb
conf/accounts.rs return Result on init()
4 years ago
Manos Pitsidianakis
688a798fa2
XDGNotifications: increase rate limiting
...
3 notifications evenly spread per second did not make any sense.
Increase it to 1000 and see if it's ok
4 years ago
Manos Pitsidianakis
6bdd9b07bb
bin: remove unwrap from timer thread
4 years ago
Manos Pitsidianakis
ca11c8e474
Remove useless debug prints
4 years ago
Manos Pitsidianakis
9fb86ab2f2
components: create layouts module in utilities
4 years ago
Manos Pitsidianakis
0169025d50
build.rs: add proc-macro to generate Override structs for configuration
4 years ago
Manos Pitsidianakis
02c881ac00
Add save-attachment option for entire message as eml
4 years ago
Manos Pitsidianakis
d7e4bd9379
conf: set default override value to None
4 years ago
Manos Pitsidianakis
cecd33eb5e
SVGScreenshotFilter: make svg smaller and fix grapheme cluster textLength inaccuracies
4 years ago
Manos Pitsidianakis
58ddfae9a7
execute.rs: fix missing space parsers
4 years ago
Manos Pitsidianakis
fe655e679c
Fix rustfmt suggestions
4 years ago
Manos Pitsidianakis
0618e62ab6
Add optional feature to save SVG screenshot
4 years ago
Manos Pitsidianakis
bc0189ffa1
Spawn workers on demand
4 years ago