Manos Pitsidianakis
1e084c1d85
melib: move backends out of the backends module
...
No reason to have such a deep module tree.
2023-07-22 22:17:01 +03:00
Manos Pitsidianakis
8e698cabcf
Fix unreachable-pub and disjoint-capture lint errors
Tests / Test on ${{ matrix.build }} (linux-amd64, ubuntu-latest, stable, x86_64-unknown-linux-gnu) (push) Failing after 6m8s
Details
2023-07-20 00:19:42 +03:00
Manos Pitsidianakis
48a10f7241
melib: remove unused BackendOp::fetch_flags() method
2023-07-18 16:13:58 +03:00
Manos Pitsidianakis
d4e605c098
Add tagref source code annotations
...
Source Code Annotation Tags:
Global tags (in tagref format <https://github.com/stepchowfun/tagref >)
for source code annotation:
- [tag:hardcoded_color_value] Replace hardcoded color values with user
configurable ones.
- [tag:needs_unit_test]
- [tag:needs_user_doc]
- [tag:needs_dev_doc]
- [tag:FIXME]
- [tag:TODO]
- [tag:VERIFY] Verify whether this is the correct way to do something
- [tag:DEBT] Technical debt
2023-07-13 16:47:11 +03:00
Manos Pitsidianakis
5f29faa640
melib: clippy lint fixes
2023-07-03 09:38:47 +03:00
Manos Pitsidianakis
5699baecfb
melib: add utils::{futures, random}
2023-06-19 10:01:02 +03:00
Manos Pitsidianakis
6bf1756de8
melib/search: implement more search criteria in Query type
2023-06-04 17:07:06 +03:00
Manos Pitsidianakis
428f752b20
Remove obsolete crate::components::mail::get_display_name()
2023-05-16 19:22:13 +03:00
Manos Pitsidianakis
b1a7188771
Clippy fixes
2023-04-30 20:47:53 +03:00
Manos Pitsidianakis
3adf72aed0
Add support for utf-7 encoding
...
Closes #175
2023-04-10 10:33:46 +03:00
Manos Pitsidianakis
7606317f24
melib/notmuch: add support for virtual mailbox hierarchy
...
Add optional "parent" property to notmuch mailbox configuration.
Closes #167
https://git.meli.delivery/meli/meli/issues/167
2022-12-09 12:35:10 +02:00
Manos Pitsidianakis
5634f95553
Rename MeliError struct to Error
2022-12-08 22:20:05 +02:00
Manos Pitsidianakis
259aeb0087
Convert {Account,Mailbox}Hash from typedef to wrapper struct
2022-12-08 22:10:58 +02:00
Manos Pitsidianakis
7382e30160
Convert EnvelopeHash from typedef to wrapper struct
2022-12-08 20:43:52 +02:00
Manos Pitsidianakis
eaecc5ea12
melib/notmuch: remove hardcoded major .so version for non linux/macos target_os
...
Credits to http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/mail/meli/patches/patch-melib_src_backends_notmuch_rs?rev=1.1&content-type=text/x-cvsweb-markup for discovering this.
2022-12-04 15:44:20 +02:00
Manos Pitsidianakis
bd22f986f0
melib: fix clippy lints
2022-11-14 19:14:19 +02:00
_
ded9adde61
More descriptive "Unimplemented" messages
2022-11-13 19:04:29 +02:00
Manos Pitsidianakis
b138d9bc61
melib: fix some clippy lints
2022-09-19 15:18:25 +03:00
Manos Pitsidianakis
a484b397c6
melib/notmuch: show informative error messages if libloading fails
...
Add instructions on how to solve this, and also a config setting
`library_file_path` to set the path manually if necessary.
2022-09-02 15:17:30 +03:00
Manos Pitsidianakis
480000ebbb
melib/notmuch: show error if account directory does not contain ".notmuch" subdirectory
...
Bug reported by user on mailing list.
2022-08-30 12:23:25 +03:00
Manos Pitsidianakis
2c23ca34cd
Update most Cargo dependencies
2022-05-02 17:03:56 +03:00
Manos Pitsidianakis
aa3524dd30
melib/backends/notmuch: fix tag not being removed in set_flags()
...
May be related to #132
Cannot remove tags in the notmuch backend #132
> Running tag remove TAG on the notmuch backend does nothing. At a
> glance, this seems to be because NotmuchMailbox::set_flags never bothers
> to remove tags that are already present but not in the list of new tags.
> I could try fixing it, but I have no idea how the contribution process
> works here (my guess is the mailing list, but, well, #131 ).
https://git.meli.delivery/meli/meli/issues/132
2022-03-21 13:13:47 +02:00
Manos Pitsidianakis
f5dc25ae0d
conf.rs: check that all conf flags are recognized in validation
...
This commit adds logic in configuration file validation that checks that
each account "extra" field is empty after getting it back from the
backend validation. This is to ensure the user doesn't set options that
are invalidly stated in the documentation or by accident.
Closes #135
Configuration error (xxx): the following flags are set but are not recognized: ["index_style"] https://git.meli.delivery/meli/meli/issues/135
2022-03-20 16:35:18 +02:00
Manos Pitsidianakis
733de5a5fb
Fix some clippy suggestions
2021-09-12 14:33:00 +03:00
Ludovic LANGE
b08570349d
Notmuch dynamic library can now be loaded on macos
...
On macos, the name of dynamic libraries is a little bit different than on Unix.
The code was looking for a `libnotmuch.so.5` library, while on macos
it's installed as `libnotmuch.5.dylib`.
This commit uses cfg attribute to conditionally change the library name.
Closes #106
2021-07-19 05:04:04 +03:00
Manos Pitsidianakis
781a1d0e1b
melib/backends: add collection() method to MailBackend
...
Keep track of the Collection state in the backend side
2021-01-10 01:31:27 +02:00
Manos Pitsidianakis
db69349251
melib/notmuch: avoid parsing entire email in Envelope creation
2021-01-05 17:12:13 +02:00
Manos Pitsidianakis
806254436b
melib/notmuch: add AccountHash field to NotmuchDb
2021-01-05 17:12:12 +02:00
Manos Pitsidianakis
4f164dc700
melib/notmuch: cleanup Query new() method
2021-01-05 17:11:08 +02:00
Manos Pitsidianakis
cd68008e67
melib: Implement delete_messages for IMAP, Maildir
2020-10-13 13:57:04 +03:00
Manos Pitsidianakis
4829e13c47
melib/maildir: impl copy_messages for Maildir
2020-09-11 17:02:27 +03:00
Manos Pitsidianakis
f8f3f1817d
melib/notmuch: fix search
...
Search was not available, it had been left out of date
2020-08-28 14:27:46 +03:00
Manos Pitsidianakis
f7ac1703e8
melib/notmuch: add watch/refresh methods to backend
2020-08-26 00:54:07 +03:00
Manos Pitsidianakis
341ff9164b
melib/notmuch: add Message,TagIterator,Thread types
2020-08-26 00:54:07 +03:00
Manos Pitsidianakis
94433cfc40
melib/backends: cleanup MailBackend trait definition
2020-08-26 00:54:06 +03:00
Manos Pitsidianakis
3eadaba34e
Replace old pseudo-async code with blocking rust async
2020-08-26 00:54:06 +03:00
Manos Pitsidianakis
a190805384
melib/backends: Add BackendEvent enum
2020-08-26 00:54:06 +03:00
Manos Pitsidianakis
92a9127758
melib/notmuch: don't read messages to String
2020-08-09 20:29:55 +03:00
Manos Pitsidianakis
79b2b38e32
melib: add supports_submission backend capability
...
To be used by NNTP, JMAP and some IMAP servers with BURL capability
2020-08-09 14:56:34 +03:00
Manos Pitsidianakis
5485e7b941
melib/notmuch: fetch mail in chunks
...
notmuch fetch took too much time on large mailboxes because it sent the
result as one big vec, instead of chunking it.
2020-08-02 16:52:19 +03:00
Manos Pitsidianakis
ec0153e7b2
melib: add protocol extension info in MailBackendCapabilities
2020-08-02 00:22:15 +03:00
Manos Pitsidianakis
3f8aa560f0
melib/MailBackend: add MailBackendCapabilities struct
2020-07-25 17:53:04 +03:00
Manos Pitsidianakis
00acba7717
melib/MailBackend: add copy_messages,set_flags,delete_messages methods
2020-07-25 15:19:53 +03:00
Manos Pitsidianakis
fadb3634e0
melib: take MailboxHash instead of &Mailbox in fetch*()
2020-07-23 13:23:23 +03:00
Manos Pitsidianakis
9103d05617
melib: s/get/fetch in MailBackend methods
2020-07-18 12:34:13 +03:00
Manos Pitsidianakis
32f196143e
melib: add supports_search() method to MailBackend
2020-07-17 00:02:02 +03:00
Manos Pitsidianakis
231471fa8c
MailBackend: add is_{async,online} methods
2020-07-06 15:27:08 +03:00
Manos Pitsidianakis
94e0aa4fe7
MailBackend: change get() ret type to Result<_>
2020-07-06 15:27:08 +03:00
Manos Pitsidianakis
a7e177586a
Fix clippy lints
2020-07-06 15:27:08 +03:00
Manos Pitsidianakis
b3876113aa
BackendOp: return future in as_bytes()
2020-07-06 15:26:39 +03:00