Manos Pitsidianakis
ae25ffba43
melib/smtp: don't do plain EHLO before starting Tls connection
2023-07-24 10:57:35 +03:00
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
9216e7bc65
melib/connections: add opt id string for tracing
2023-07-22 22:17:01 +03:00
Manos Pitsidianakis
8ecdb6df31
melib/imap: add imap-trace feature
2023-07-22 21:27:05 +03:00
Manos Pitsidianakis
b65934facc
melib/nntp: add nntp-trace feature
2023-07-22 21:15:59 +03:00
Manos Pitsidianakis
89c90f224a
melib: add nntp
feature
2023-07-22 21:01:42 +03:00
Manos Pitsidianakis
7db930cabd
melib: rename jmap_backend
feature to jmap
2023-07-22 20:54:55 +03:00
Manos Pitsidianakis
e9f09a153c
melib: rename mbox_backend
feature to mbox
2023-07-22 20:52:37 +03:00
Manos Pitsidianakis
fe7dcc508e
melib: rename notmuch_backend
feature to notmuch
2023-07-22 20:51:12 +03:00
Manos Pitsidianakis
fe027fa300
melib: rename maildir_backend
feature to maildir
2023-07-22 20:48:09 +03:00
Manos Pitsidianakis
129f10911b
melib: rename imap_backend
feature to imap
2023-07-22 20:46:23 +03:00
Manos Pitsidianakis
4874e30f3c
melib: add smtp-trace feature
...
If it's enabled, every read/write in an SMTP transaction will be logged
on TRACE level.
2023-07-22 16:25:54 +03:00
Manos Pitsidianakis
073d43b9b8
melib/test: move data files to data subdir
2023-07-21 18:12:39 +03:00
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