summaryrefslogtreecommitdiffstats
path: root/src/conf.rs
AgeCommit message (Collapse)Author
2020-11-25Allow configuration of the sidebar dividerAndrew Jeffery
This adds the config option listing.sidebar_divider to set the character used to show the divider (defaults to ' ') along with the corresponding theme in mail.sidebar_divider which defaults to the default theme.
2020-10-21Remove unused plugin interfaceManos Pitsidianakis
2020-10-17README.md: Add screenshots and update textManos Pitsidianakis
2020-09-18SearchBackend: add Auto variant as defaultManos Pitsidianakis
2020-09-12Lookup tag color/ignore settings in all three setting levelsManos Pitsidianakis
There are three setting levels for tag settings: - per mailbox override ^ - per account override | - global setting | depth So lookup in each of them in this order for configuration, not just the deepest level.
2020-09-10conf: impl DotAddressable for NotificationsSettingsManos Pitsidianakis
2020-08-26Replace old pseudo-async code with blocking rust asyncManos Pitsidianakis
2020-08-26Preserve Account order from configuration fileManos Pitsidianakis
Use IndexMap to preserve the order of accounts in the UI from the account definitions.
2020-08-03conf.rs: reject unknown configuration optionsManos Pitsidianakis
Closes #11
2020-07-26conf/DotAddressable: impls for more typesManos Pitsidianakis
2020-07-26conf.rs: fix struct decl/impl order in fileManos Pitsidianakis
Impls and type declarations were out of order
2020-07-26conf/shortcuts.rs: implement DotAddressable for ShortcutsManos Pitsidianakis
2020-07-17Add print setting actionManos Pitsidianakis
Add experimental print setting action. The command is of the form: print account_name listing.index_style account_name is currently ignored. The path, e.g. listing.index_style is split by "." and fed to DotAddressable lookup trait method. The method checks the first segment in the path if it matches any of the struct's fields, and then calls the field's lookup method.
2020-07-16conf: Rename cache_type to search_backendManos Pitsidianakis
2020-07-13Remove some needless clones and stuff (thanks to Clippy)Manos Pitsidianakis
2020-07-10conf.rs: accept default action "Y" when asking to create configManos Pitsidianakis
Reported by: bronsen
2020-07-06conf/accounts: add is_{async,remote} fieldsManos Pitsidianakis
2020-07-06Add somewhat-working async IMAP backendManos Pitsidianakis
2020-06-20build.rs: add proc-macro to generate Override structs for configurationManos Pitsidianakis
2020-06-13conf: set default override value to NoneManos Pitsidianakis
2020-06-10Add `view` subcommandManos Pitsidianakis
Add subcommand to view standalone e-mail files in meli's pager without instantiating any accounts.
2020-06-09src/conf.rs: Remove debug! printsManos Pitsidianakis
2020-06-08Use structopt for command line parsingManos Pitsidianakis
2020-06-02Add samples/ directory with config and themesManos Pitsidianakis
2020-06-02themes: Add Theme structManos Pitsidianakis
Wrap HashMap<Cow<'static, str>, ThemeAttributeInner> into a struct, in order to add more fields in the future.
2020-06-02themes: Rename Theme struct to ThemesManos Pitsidianakis
2020-05-29Make serde default for manual_refresh = falseManos Pitsidianakis
2020-05-28conf: add options for loggingManos Pitsidianakis
Add options for log file location and maximum log level. Also add manpage entries for these options in `meli.conf.5`
2020-03-18Add conf_override! macroManos Pitsidianakis
conf_override! wraps struct definitions and defines a secondary Override struct that wraps each field in an Option. The macro mailbox_settings! is used to select settings from an account & mailbox index. If a user defines an overriding setting, the macro returns the override instead of the immediately next in the hierarchy setting. The selection is done for a specific field as follows: if per-folder override is defined, return per-folder override else if per-account override is defined, return per-account override else return global setting field value.
2020-03-01Add config overrides to mailbox filterManos Pitsidianakis
If per-folder config filter is defined, it overrides the app-wide filter.
2020-02-26Replace every use of Folder with MailboxManos Pitsidianakis
Use Mailbox for consistency.
2020-02-08ui/conf: expand include() paths in configManos Pitsidianakis
Expand variables and `~` in included paths in user configuration.
2020-02-08ui: fix wrong subscription status in foldersManos Pitsidianakis
Subscription status was checked/modified in various places, whereas now the universal truth is the `BackendFolder::is_subscribed()` method set by the backend when a folder is created. The `Account` struct passes a closure to the backend constructor that determines whether the folder is subscribed or not according to the user configuration. - If subscribed_folders field is empty, then all folders are subscribed. - OR check explicit folder configuration - OR check if folder path matches to a glob in subscribed_folders.
2020-02-04Remove text_processingManos Pitsidianakis
Unwrap text_processing into melib In preparation for uploading meli as a separate crate on crates.io.
2020-02-04Remove ui crateManos Pitsidianakis
Merge ui crate with root crate. In preparation for uploading `meli` as a separate crate on crates.io. Workspace crates will need to be published as well and having a separate `ui` crate and binary perhaps doesn't make sense anymore.