Commit Graph

11 Commits (7bd2b6932deefe01986686cfb8dd4e080f39c429)

Author SHA1 Message Date
Manos Pitsidianakis 3f7d962abd
melib: remove ThreadTree, use ThreadNodes for root_set
Remove ThreadTree index in Threads {} struct. Keep a Vec<ThreadHash> for
root_set state of mailbox instead of rebuilding ThreadTrees every
time.
5 years ago
Manos Pitsidianakis 8a0e702127
melib,ui: add MailboxEntry enum
Use an enum to describe a mailbox's state in ui::conf::Account instead
of Result.
5 years ago
Manos Pitsidianakis c6674a294d
melib: unwrap mailbox module 5 years ago
Manos Pitsidianakis 42654410e3
ui: move Collection to Account
Each account had one mailbox per folder, which had one associated
collection. Now each Account has one Collection for all folders and each
Mailbox object holds only the hashes of each message.

Collection also gets Threads for each folder in order to mix messages
(ie from/to Sent folder).

Insert Sent emails in chronological order

if inserted unsorted, mails a, b with a happened-before b, might never
  get added.

Fix multiple insertions in ThreadTree upon insert_reply

insert_reply was creating multiple copies in threading
5 years ago
Manos Pitsidianakis 22d868f499
save Account to disk
closes #114
5 years ago
Manos Pitsidianakis fb406667ab
add debug! macro to replace eprintlns 5 years ago
Manos Pitsidianakis 04eb8d926f
ui: remove debug_log feature, add log positions 5 years ago
Manos Pitsidianakis ee4462881e
run cargo fmt 5 years ago
Manos Pitsidianakis 1c7aa0ec9c
update to 2018 edition 5 years ago
Manos Pitsidianakis 4629e6a22f
meli: add debug_logs feature
Conditional print of debug logs in stderr. Previously they were always
printed
5 years ago
Manos Pitsidianakis 04411f1003
rename 'mod.rs' files
closes #53
5 years ago