Manos Pitsidianakis
aa9a6a3128
melib: add SpecialUseMailbox::detect_usage method
2019-12-13 00:04:59 +02:00
Manos Pitsidianakis
6f76cd9acc
melib: add special_usage() method to BackendFolder
...
Eventually after loading potential usage values from configuration,
backends will be able to change the usage values themselves. IMAP and
JMAP have the ability to set Mailbox roles (IMAP needs LIST-SPECIAL
extension
2019-12-11 00:15:36 +02:00
Manos Pitsidianakis
b858fcb0ab
ui/conf: change field order
...
Change field order because FolderConf has an extra_settings sinkhole
field for serde, which catches any setting that could go to the other
field.
2019-12-07 17:17:08 +02:00
Manos Pitsidianakis
bca33370cc
Add tag settings in UI config module
2019-12-01 12:09:35 +02:00
Manos Pitsidianakis
0b845a0d16
Small fixes
...
- Update documentation on include config syntax
- Accept relative paths in include config syntax
- Fix one line clearing that shouldn't be redrawn in html view
- Fix shortcuts not being honored in Composer
2019-11-29 12:15:05 +02:00
Manos Pitsidianakis
c04513ac94
ui: add shortcut! macro to compare shortcuts values
...
This is used in process_event() functions of UI Components. When a key
has been input we have to compare it with the configured shortcuts from
a hashmap.
Add shortcut! macro that checks shortcut hashmaps for the given name and
doesn't panic if it's missing.
2019-11-28 22:16:56 +02:00
Manos Pitsidianakis
4048eab424
ui/conf: Add include file feature
...
Use
#include "path/to/file"
In configuration file to include other files.
2019-11-27 22:21:25 +02:00
Manos Pitsidianakis
ba52c59859
bin: add backend specific validation functions for --test-config flag
2019-11-27 17:42:11 +02:00
Manos Pitsidianakis
af365fa8d4
Set 600 perm mode to all created files
...
When creating a data file, set permissions to read/write for the user.
2019-11-24 17:00:55 +02:00
Manos Pitsidianakis
12e4258ae4
conf: add * glob expansion to subscribed_folders field
...
You can now do:
subscribed_folders = [ "*", ]
2019-11-23 19:34:16 +02:00
Manos Pitsidianakis
3d3ead02e9
bin: add --test-config flag
...
meli --test-config PATH tests a configuration file for syntax issues or missing options.
Caveat: right now undefined options/values do not return an error.
Backend specific options are also not validated.
2019-11-22 18:43:24 +02:00
Manos Pitsidianakis
321be8555f
Cleanup startup error exit paths
...
Make startup methods return Results so that the main binary can exit
cleanly instead of using std::process::exit from arbitrary positions,
which exits the process immediately and doesn't run destructors.
2019-11-16 00:33:22 +02:00
Manos Pitsidianakis
ede512200b
conf: move FolderConf to melib
...
This will be needed to add notmuch-specific configuration settings in
the FolderConf struct in the next commit
2019-11-15 19:52:39 +02:00
Manos Pitsidianakis
74672f0807
ui: Add CacheType option in configuration
...
CacheType's value dictates which cache backend to use: none, or sqlite3
2019-11-08 17:51:01 +02:00
Manos Pitsidianakis
e9d17f6897
add cache struct in Account
2019-11-08 15:13:41 +02:00
Manos Pitsidianakis
9ef9293a45
ui/conf: use custom deserializer for extra settings
...
If the user gives a configuration value in an `[account]` sections that
isn't hard-coded, it gets filed up under the
`extra: HashMap<String, String>` field of `FileAccount`. If the setting
is something that isn't a string like key = true, the parsing will fail
since it expects string values. We want to accept key = true as well as
key = "true".
2019-10-24 18:16:41 +03:00
Manos Pitsidianakis
ccc58860e6
conf: move serde default attributes from field to struct
2019-10-15 23:47:37 +03:00
Manos Pitsidianakis
b25f10f92a
conf: add a light theme option
2019-10-06 11:31:53 +03:00
Manos Pitsidianakis
9a3b9b1409
conf: move html_filter to PagerSettings
...
html_filter was in Account settings, but it makes more sense for it to
be in PagerSettings
2019-10-03 19:51:34 +03:00
Manos Pitsidianakis
e35a93336a
Add GPG signing and sig verifying
2019-09-28 12:19:22 +03:00
Manos Pitsidianakis
713c4f73b9
conf: add editor_cmd setting
...
Set the editor to launch in configuration. If it's missing, check for
$EDITOR
2019-09-27 13:39:55 +03:00
Manos Pitsidianakis
ef338f353d
ui: add PGP settings in configuration
2019-09-26 14:09:01 +03:00
Manos Pitsidianakis
8795c2da4f
ui: small configuration fixes
...
- unused options were removed,
- renamed `index` conf option to `index_style`
2019-09-16 16:41:22 +03:00
Manos Pitsidianakis
bd8424c1f8
ui: add notification `play_sound`, `sound_file` conf settings
2019-09-15 23:38:32 +03:00
Manos Pitsidianakis
3ae2d03663
ui: add triptych thread mailing view
...
This mail list view shows one entry per thread just like CompactListing,
but the entry is slightly bigger just like in some GUIs, and when the
thread is opened the view becomes 3 columned:
+--+-------+----+
|~~|-------|~~~ |
|~~|-------|~~ |
| |-------| |
| |-------|~~~ |
+--+-------+----+
This is meant to be used with bigger terminal sizes
2019-09-15 23:38:31 +03:00
Manos Pitsidianakis
fd38dbed48
override configuration with per-folder configs
2019-09-15 13:21:14 +03:00
Manos Pitsidianakis
0812242f60
Add IMAP backend
...
TODOs: new message events (untagged responses)
2019-09-15 13:21:13 +03:00
Manos Pitsidianakis
1328f994f3
Make config objects Serializable with serde
2019-08-25 21:44:19 +03:00
Manos Pitsidianakis
02b0f69e14
Replace config crate with toml
...
config crate was not really needed
2019-08-25 14:14:54 +03:00
Manos Pitsidianakis
b474b44b10
Add special use semantics for mailboxes
2019-08-25 10:48:01 +03:00
Manos Pitsidianakis
76909a1959
add folder subscriptions
2019-08-25 10:48:01 +03:00
Matthias Beyer
fecb66e877
Print to stderr when printing error
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-02 01:00:53 +03:00
Matthias Beyer
092f3694d2
Print error message to stderr
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-02 01:00:53 +03:00
Manos Pitsidianakis
8543a06f59
ui: rename ignore to subscribe to match IMAP term
2019-07-18 20:26:49 +03:00
Manos Pitsidianakis
a62f1d6c01
add read-only option in accounts
2019-07-18 20:16:51 +03:00
Manos Pitsidianakis
24831b3c13
Fix warnings, lints, and 2018 errors
2019-06-18 21:14:14 +03:00
Manos Pitsidianakis
9de93b98d5
Update sample-config, and generate it if missing on startup
2019-06-10 19:40:51 +03:00
Manos Pitsidianakis
4582bcd5ae
fix warnings and lints
2019-06-10 19:40:49 +03:00
Manos Pitsidianakis
de81fd1a68
ui: don't show notifications if folder is ignore
...
Also ignore Sent folder by default
2019-06-10 19:40:49 +03:00
Manos Pitsidianakis
42a512d010
ui: save sent messages to Sent folder
2019-06-10 19:40:44 +03:00
Manos Pitsidianakis
6b3c4d57d6
ui: add mailer setting and send shortcut in composer
2019-06-10 19:40:43 +03:00
Manos Pitsidianakis
cfb7dcec64
ui: make html filter optional in config
...
closes #92
2019-06-10 19:40:43 +03:00
Manos Pitsidianakis
bf038428c2
Run rustfmt
2019-06-10 19:40:39 +03:00
Manos Pitsidianakis
b437e55b67
use shortcuts from config or default
...
closes #63
2019-06-10 19:40:39 +03:00
Manos Pitsidianakis
d4c64916f0
Add configurable shortcuts for compact mail listing
...
concerns #63
2019-06-10 19:40:39 +03:00
Manos Pitsidianakis
1bb1cf7aac
add notification filter
...
concerns #64
2019-06-10 19:40:38 +03:00
Manos Pitsidianakis
62168e9183
Add contact view page, edit headers in compose, index style in conf
2019-06-10 19:40:37 +03:00
Manos Pitsidianakis
30b1808bdb
ui: save draft to draft_folder
...
tracking-issue: #38
2019-06-10 19:40:37 +03:00
Manos Pitsidianakis
04411f1003
rename 'mod.rs' files
...
closes #53
2019-06-10 19:40:37 +03:00