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
3 years ago
Manos Pitsidianakis
bcca9abe66
docs: Use example.com in documentation
...
Closes #96
3 years ago
Manos Pitsidianakis
24b4c117e7
melib: don't use both {set,push}_references()
...
set_references() already calls push_references()
3 years ago
Manos Pitsidianakis
b0fba401e6
melib/mbox: consistent line endings in MboxFormat::append
4 years ago
Manos Pitsidianakis
63d2fb93f4
melib/nntp: fix not connecting with TLS
4 years ago
Manos Pitsidianakis
cf9457882a
melib/mbox: add MboxMetadata type and write support
4 years ago
Manos Pitsidianakis
3fa9e355c2
melib/email: add Flag is_*() methods
4 years ago
Manos Pitsidianakis
3dae84182c
melib/mbox: add module-level doc
4 years ago
Manos Pitsidianakis
4050f6893f
melib/mbox: add MboxFormat::append() method
...
Add support for writing mbox files
4 years ago
Manos Pitsidianakis
dcccd303ac
melib/mbox: rename MboxReader to MboxFormat
4 years ago
Manos Pitsidianakis
22a64e2d76
melib: Remove unnecessary "pub use" std exports
4 years ago
Manos Pitsidianakis
781a1d0e1b
melib/backends: add collection() method to MailBackend
...
Keep track of the Collection state in the backend side
4 years ago
Manos Pitsidianakis
08af46f5ef
melib/datetime: fix test compile failure
4 years ago
Manos Pitsidianakis
2f47f1eebd
melib/jmap: fix mailbox children relationships being ignored
4 years ago
Manos Pitsidianakis
eca10a5660
melib/backends: add mailbox management events to RefreshEventKind
...
Add mailbox management events from RFC 5423 Internet Message Store
Events
https://tools.ietf.org/html/rfc5423#page-8
4 years ago
Manos Pitsidianakis
a697dfabbd
melib/jmap: use receivedAt as alternative to Date in Envelope gen
4 years ago
Manos Pitsidianakis
23997bdec0
melib/jmap: add UTCDate queries in EmailFilterCondition
...
Not necessarily working, added as stubs for future work
Closes #62
4 years ago
Manos Pitsidianakis
2e6a1e1ef8
melib/datetime: rename tests for consistency
4 years ago
Manos Pitsidianakis
fe200a3218
melib/datetime: isolate unsafe blocks
...
Isolate unsafe blocks where possible to make code review easier
4 years ago
Manos Pitsidianakis
bf9143d8e4
melib/datetime: use Cow<'_, CStr> in timestamp_to_string()
...
Use Cow to avoid unnecessary allocations when provided a nul-terminated
format string
4 years ago
Manos Pitsidianakis
441dcb62ca
melib/datetime: add format string constants
4 years ago
Manos Pitsidianakis
4cd3e28244
melib/datetime: fix import style inconsistencies
4 years ago
Manos Pitsidianakis
3dba6fdf60
melib/datetime: add posix locale arg in timestamp_to_string()
4 years ago
Manos Pitsidianakis
50cd81772f
melib/jmap: impl watch() with polling
...
Concerns #22
4 years ago
Manos Pitsidianakis
613c3de3d2
melib/connections: add async sleep(dur: Duration)
4 years ago
Manos Pitsidianakis
62db7d7f32
melib/jmap: put JmapSession behind mutex
...
And deserialize API urls to Arc<String>.
4 years ago
Manos Pitsidianakis
db69349251
melib/notmuch: avoid parsing entire email in Envelope creation
4 years ago
Manos Pitsidianakis
806254436b
melib/notmuch: add AccountHash field to NotmuchDb
4 years ago
Manos Pitsidianakis
4f164dc700
melib/notmuch: cleanup Query new() method
4 years ago
Manos Pitsidianakis
ab0ef1b63c
melib/thread: hash Message-ID for ThreadNodeHash
...
Make ThreadNodeHash predictable.
4 years ago
Manos Pitsidianakis
b966ee8fbd
melib/email: return &mut Self in set_*() methods
...
Return &mut Self to allow chaining setter methods
4 years ago
Manos Pitsidianakis
34e970d922
melib/datetime: Add Locale struct for error checking
4 years ago
Zisu Andrei
f7cbd9a64d
melib/datetime: Set C locale for strptime parsing
...
This is the locale that should be used for computer interoperability
when doing date and time parsing and formatting.
Without this, on systems which don't have the US locale set, the parsing
returns 0.
4 years ago
Manos Pitsidianakis
829f1243fb
melib/imap: fix invalid FETCH edge case
...
If mailbox was empty, this FETCH would request "0:*" which is an invalid
message set since message sequence numbers start with 1.
4 years ago
Manos Pitsidianakis
1be30968ca
melib/mbox: fix FreeBSD compilation
...
Reported in #92
4 years ago
Manos Pitsidianakis
92475c349a
melib/mbox: return Result in file locking
4 years ago
Zisu Andrei
0034f195e3
melib/imap: Lazy evaluate idle capability
...
With the eager evaluation, you run the risk of checking the capabilities
store before any connection to the server may have been opened.
Therefore, the capabilities uid_store will be empty and it will fall
back to poll_with_examine even if the server might have support for
idle.
4 years ago
Manos Pitsidianakis
b2e853dd7b
melib/imap: update unseen count on \Seen set_flags()
4 years ago
matzipan@gmail.com
aa503deb76
melib/imap: Set special usage attributes for INBOX
...
Without this change, the usage is not correctly identified when calling
imap_mailboxes in the imap backend.
4 years ago
Manos Pitsidianakis
fee8f5b575
melib/backends: move IsSubscribedFn to backends mod
4 years ago
Manos Pitsidianakis
7e977fe627
melib/imap/cache/sync: explicitly remove new seen messages from unseen counter
4 years ago
Manos Pitsidianakis
09684e821d
melib/imap: check INBOX when pausing IDLE
4 years ago
Manos Pitsidianakis
68f9d1220b
melib/imap: remove DoubleEndedIterator for ImapLineIterator
4 years ago
Manos Pitsidianakis
1408690a9a
melib/imap: don't retry watch conn on non-network error
4 years ago
Manos Pitsidianakis
5327dae02d
melib/text_processing: add LineBreakText iterator
...
A lazy stateful iterator for line breaking text. Useful for very long text where you don't want to linebreak it completely before user requests specific lines.
4 years ago
Manos Pitsidianakis
453bb0b2b2
melib/smtp: implement gmail XOAUTH2 authentication method
4 years ago
Manos Pitsidianakis
bedf181aff
melib/imap: examine all mailboxes before idle
4 years ago
Manos Pitsidianakis
9dd21eea50
melib/threads: prefer local ThreadNode env_hash
...
When inserting an envelope in a thread and its Message-ID already exists
with an associated envelope, overwrite the association if the previous
associated envelope is from a foreign mailbox and current envelope is
not. This happens when mail from a sent folder has been inserted in eg
your INBOX, but somehow INBOX has a copy of your own message as well.
This can happen when mailing lists that send you copies of your own
posts.
The problem with this was that in IMAP your mailing list copy was unseen
and you could not mark it seen because the thread only knew about your
Sent mailbox copy.
4 years ago
Manos Pitsidianakis
4939a1ad9e
melib/imap: remove some debug prints
4 years ago
Manos Pitsidianakis
8e7583a32f
melib/imap: don't clear mailbox counts before fetching
4 years ago