Manos Pitsidianakis
8e698cabcf
Fix unreachable-pub and disjoint-capture lint errors
2023-07-20 00:19:42 +03:00
Manos Pitsidianakis
bb7e119ade
Add gitea CI workflows
2023-07-19 17:12:15 +03:00
Manos Pitsidianakis
29b43e2c88
melib/datetime: replace mktime with timegm
2023-07-19 15:53:30 +03:00
Manos Pitsidianakis
6280bc75e5
melib/jmap: fix blob download URL formatting
2023-07-18 16:13:58 +03:00
Manos Pitsidianakis
48a10f7241
melib: remove unused BackendOp::fetch_flags() method
2023-07-18 16:13:58 +03:00
Manos Pitsidianakis
0219dc8707
melib/jmap: respect max_objects_in_get when fetching email
...
Fixes #144
2023-07-18 16:13:44 +03:00
Manos Pitsidianakis
c4c245ee19
melib/jmap: respect danger_accept_invalid_certs setting
2023-07-18 16:13:41 +03:00
Manos Pitsidianakis
e9cd800f49
melib/nntp: add support for storing read status locally
2023-07-16 11:46:33 +03:00
Manos Pitsidianakis
ab418c1d39
pgp: refresh documentation, fix encryption/signing
...
Closes #259
2023-07-15 19:33:20 +03:00
Manos Pitsidianakis
4e55fbc90d
nntp: add SEEN flag to all envs, since NNTP has no flags
2023-07-13 21:03:55 +03:00
Manos Pitsidianakis
13fe64a027
Cache pgp signature verification results
2023-07-13 17:18:13 +03:00
Manos Pitsidianakis
6086a3789d
Fix libgpgme segfault error and re-enable gpg
...
Closes #255
2023-07-13 16:51:37 +03:00
Manos Pitsidianakis
5b5869a2ec
logging: re-enable print to stderr ifdef MELI_DEBUG_STDERR
2023-07-13 16:49:50 +03:00
Manos Pitsidianakis
866166eb8e
attachments: don't print parsing error for empty bytes
2023-07-13 16:48:59 +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
d93ee413a7
melib/datetime: add timestamp_to_string_utc
...
Tests were using `timestamp_to_string` which in turn uses `localtime_r`
which assumes the local machine's time zone. Use gmtime_r instead.
Fixes #252
2023-07-09 18:50:35 +03:00
Manos Pitsidianakis
b0e867eb68
Move src to meli/src
2023-07-08 13:58:32 +03:00
Manos Pitsidianakis
b5657201db
melib: fix doctest compilation errors
2023-07-08 13:58:15 +03:00
rek2
3803d788ab
if auth is false checks if config has password entry
2023-07-07 14:00:16 +03:00
rek2
b5f205b77b
add availability to use server_password_command in the nntp backend like in the IMAP backend
2023-07-06 05:23:24 +02:00
Damian Poddebniak
7c33f8999b
chore: Use published imap-codec 0.10.0.
2023-07-05 14:46:39 +02:00
Damian Poddebniak
34a54d3c05
docs: Add some TODO(
#222 )s.
2023-07-04 21:32:07 +02:00
Damian Poddebniak
9d51b6bd52
chore: Update imap-codec
.
2023-07-04 20:56:51 +02:00
Manos Pitsidianakis
7998e1e77e
melib/datetime: add missing LC libc constants for openbsd target_os
...
Fixes #242
"Compilation failure on master on OpenBSD" #242
2023-07-04 00:23:47 +03:00
Manos Pitsidianakis
619fbef129
melib/thread: recursively calculate update_show_subject()
...
Walk the entire thread tree and update show_subject collectively when a
new entry is added.
2023-07-03 11:05:16 +03:00
Manos Pitsidianakis
1bcc0bbece
melib/mbox: add mbox parsing test
2023-07-03 11:00:51 +03:00
Manos Pitsidianakis
e8e49e741b
melib/mbox: fix wrong per message offset
2023-07-03 11:00:49 +03:00
Manos Pitsidianakis
1dc1d86848
melib/shellexpand: fix infinite loop bug
...
Introduced in recent "fixing clippy lints" commit
2023-07-03 09:52:03 +03:00
Manos Pitsidianakis
ba7f5dce1c
listing/thread: fix display of threaded conversations tree structure
...
When missing intermediate and/or parent messages in a thread, the
printed thread tree branches were completely invalid. This commit makes
sure thread node entries that have no corresponding envelopes are
accounted for in the tree structure.
2023-07-03 09:46:28 +03:00
Manos Pitsidianakis
5f29faa640
melib: clippy lint fixes
2023-07-03 09:38:47 +03:00
Manos Pitsidianakis
f98e36cee5
melib: Replace old-style /*! module doc comments with //!
2023-07-03 09:38:37 +03:00
Manos Pitsidianakis
f0d88005fb
melib/email: change message/rfc822 Display repr
...
Put subject first.
2023-07-03 09:37:56 +03:00
Manos Pitsidianakis
e64923eeaa
melib/email/headers/names: fix debug_assert condition
...
On invalid parsings, _cnt can be equal to probe and chunk len because
the value won't be a valid header
2023-06-22 14:06:39 +03:00
Manos Pitsidianakis
f5cfbd32e6
melib/imap: on set_flags, update {un,}seen sets in all mailboxes
...
Some envelopes might be in several mailboxes, for example in Gmail's
implementation of IMAP.
2023-06-20 13:22:52 +03:00
Manos Pitsidianakis
5699baecfb
melib: add utils::{futures, random}
2023-06-19 10:01:02 +03:00
Manos Pitsidianakis
4da5366959
Remove bincode dep, use serde_json for sqlite3 values
2023-06-17 20:11:12 +03:00
Manos Pitsidianakis
fd0faade06
melib/imap: add connection instance id string for debugging in logs
...
- Add an ID field in ImapConnection and ImapStream that records where
each instance was created. This is useful for differentiating main
backend connections from watching thread connections (the ones that
listen to updates from the IMAP server with IDLE or polling).
- Add an imap_trace! macro that uses log::trace! internally but also
prepends the connection's ID string to each log line.
2023-06-17 20:11:10 +03:00
Manos Pitsidianakis
8f14a2373e
melib/imap: put imap-codec logic under the imap_backend feature
2023-06-17 20:10:23 +03:00
Damian Poddebniak
330887c4f5
refactor: Introduce imap-codec.
2023-06-17 20:10:21 +03:00
Damian Poddebniak
6c6d9f4b4e
chore: Improve ordering of flag_impl!
s.
2023-06-17 13:32:45 +03:00
Damian Poddebniak
579372b4a7
chore: Improve readability of Envelope
.
...
* Sorted according to RFC.
* Separated IMAP4rev1 and other values.
2023-06-17 13:32:45 +03:00
Manos Pitsidianakis
cd85d83324
melib/email: replace timestamp with Date value in message/rfc822 Display
2023-06-13 16:27:35 +03:00
Manos Pitsidianakis
e0257c9d8d
Run cargo-sort
2023-06-04 21:13:55 +03:00
Manos Pitsidianakis
27a4dcb916
Fix some rustdoc lints
2023-06-04 21:13:55 +03:00
Manos Pitsidianakis
bf615e7d93
melib/thread: check for case when envelope has its own message id in References and In-Reply-To
...
Emails sent from meli's gitea do this, and it makes them invisible in
thread listings.
2023-06-04 21:13:55 +03:00
Manos Pitsidianakis
b92a80a23a
melib/imap: resync even if UIDVALIDITY is missing from cache
...
I think this is related to #98 meli gets stuck on `set seen' for mail (threads) at random
https://git.meli.delivery/meli/meli/issues/98
2023-06-04 21:13:55 +03:00
Manos Pitsidianakis
f8623d4b2c
melib/imap: implement more ResponseCode cases
2023-06-04 21:13:55 +03:00
Manos Pitsidianakis
299c8e0f99
meli: restructure pub use melib::* imports
2023-06-04 21:13:54 +03:00
Manos Pitsidianakis
c5ecaceae1
melib/search: fix some search criteria in Query type
2023-06-04 21:13:49 +03:00
Manos Pitsidianakis
6bf1756de8
melib/search: implement more search criteria in Query type
2023-06-04 17:07:06 +03:00