Commit Graph

657 Commits (sieve)

Author SHA1 Message Date
Manos Pitsidianakis 98c1ece28d
Update xdg-util dependency to 0.4.0 4 years ago
Manos Pitsidianakis 54b2066f73
mail/view: set dirty after closing ContactSelector 4 years ago
Manos Pitsidianakis 007e6320d5
utilities: respect theme_default in shortcut dialog 4 years ago
Manos Pitsidianakis e01275cd93
utilities/dialogs: add cursot Unfocused state as default 4 years ago
Manos Pitsidianakis 879af75d88
utilities/dialogs: use align_area to create box 4 years ago
Manos Pitsidianakis 6a5bb2e057
Add align_area() and Alignment enum 4 years ago
Manos Pitsidianakis 311c1a8a95
utilities/dialogs: respect theme_default 4 years ago
Manos Pitsidianakis ce5c7848e8
utilities: move dialogs to its own submodule 4 years ago
Andrew Jeffery daee4e46de
Allow configuration of the sidebar divider
This adds the config option listing.sidebar_divider to set the character
used to show the divider (defaults to ' ') along with the corresponding
theme in mail.sidebar_divider which defaults to the default theme.
4 years ago
Manos Pitsidianakis 0a8a0c04c8
compose: treat inline message/rfc822 as attachments 4 years ago
Manos Pitsidianakis ede5851baf
utilities: reverse order of drawing fields in form
Reverse order of drawing since a field might have an auto complete
prompt below it, so rendering the field below instead of above next
would overwrite it.
4 years ago
Manos Pitsidianakis 79345b3e84
utilities/StatusBar: fix lack of bounds checking in hist_area 4 years ago
Manos Pitsidianakis b46cd09ca6
compose: pass body text when replying
Get rendered body text when creating a new reply Composer instead of
rendering the text in the Composer constructor.

Closes #86
4 years ago
Manos Pitsidianakis bf56c88918
compose: respect auto_choose_multipart_alternative when rendering multipart/alternative attachments to text 4 years ago
Manos Pitsidianakis 73372ff1e7
compose: add show_comments arg to attachment_displays_to_text()
Toggle display of attachment comments (for example "this html attachment
was rendered with X filter...") when rendering text.
4 years ago
Manos Pitsidianakis d4f508642a
widgets: allow text overflow in text fields
Show text content of a text field that exceeds the visible width
properly.
4 years ago
Manos Pitsidianakis f69f623818
Fix some invalid area calculations 4 years ago
Manos Pitsidianakis 458209b448
view/thread: clear empty space in draw_list 4 years ago
Manos Pitsidianakis b7c48a1ed0
view/thread: make list draw area consistent 4 years ago
Manos Pitsidianakis f25f93fccf
utilities: Fix incorrect calculations in ScrollBar 4 years ago
Manos Pitsidianakis 31e4ed006d
listing: fix off by one error in PageDown movement 4 years ago
Manos Pitsidianakis 179ed52add
compose: grey embed area when embed is stopped
When stopping the embedded terminal with Ctrl-Z or SIGSTOP, show the
terminal area greyed out with a message box.
4 years ago
Manos Pitsidianakis ebc290cc2a
compose: set format flowed if configured in pager 4 years ago
Manos Pitsidianakis 0aa5cf273f
mail/status: don't overwrite "In-progress jobs header" 4 years ago
Manos Pitsidianakis 023afbaae3
RateLimit: remove unupdated test 4 years ago
Manos Pitsidianakis 1c62de57ae
Never return true on processing JobFinished
JobFinished events are not meant to be inhibited.
4 years ago
Manos Pitsidianakis 76f8bdc558
Add configurable shortcut for 'quit'
Quit ('q' button) was hardcoded, switch to configurable shortcut setting
instead.
4 years ago
Manos Pitsidianakis c0e3e78940
listing: dont overdraw menu over listing 4 years ago
Manos Pitsidianakis aaee6d094c
Fix NO_COLOR cursor highlight in sidebar and progress spinner 4 years ago
Manos Pitsidianakis 60350eaa88
mail/status: add "general" shortcut section 4 years ago
Manos Pitsidianakis aa73bd71c3
listing: fix mailbox tree rendering
Indentation value was being interpreted mirrored (raw binary value in
parenthesis):

   0  testing_account (0)
   1   ┣━Archives     (0)
   2   ┃ ┣━2014       (1)
   3   ┃ ┃ ┗━10       (11)
   4   ┃ ┗━2015       (1)
   5     ┃ ┗━05       (10) <- invalid/mirrored
   6   ┣━Drafts       (0)

Should be:

   0  testing_account (0)
   1   ┣━Archives     (0)
   2   ┃ ┣━2014       (1)
   3   ┃ ┃ ┗━10       (11)
   4   ┃ ┗━2015       (1)
   5   ┃   ┗━05       (10)
   6   ┣━Drafts       (0)
4 years ago
Manos Pitsidianakis 72084da185
Add store_sent_mail option for gmail
- store_sent_mail boolean

Store sent mail after successful submission.
This setting is meant to be disabled for non-standard behaviour in
gmail, which auto-saves sent mail on its own.
4 years ago
Manos Pitsidianakis 23777171f2
listing: clear_area in draw_menu
Completely clear area in draw_menu instead of resetting ch, fg, bg etc.
4 years ago
Manos Pitsidianakis cbaf21764c
Remove status tab, move account status page to listing 4 years ago
Manos Pitsidianakis da69eecafe
mail/status: make AccountStatus public
And fix areas passed to write_string_to_grid() to have the same y
coordinate in upper_left and bottom_right part.
4 years ago
Manos Pitsidianakis a34f0aac5b
melib: fix bincode serialization
Previous commit changed bincode deserializes in maildir and sqlite3.rs
from bincode::deserialize_from to using bincode::config::DefaultOptions
and bincode::Options trait's method deserialize_from.

However, these two different deserializes use a different default
settings: https://github.com/servo/bincode/issues/348

Specifically, varint encoding for integers is the default for
DefaultOptions but not when using bincode::{de,}serialize_* functions.
That means that serialized structs were not able to be deserialized.
This commit makes all {de,}serializations use the DefaultOptions
interface rather than the top level functions.
4 years ago
Manos Pitsidianakis 6392904047
Replace PosixTimer with async timers 4 years ago
Manos Pitsidianakis 57e6cf3980
Limit dbus dependency to target_os = "linux" 4 years ago
Manos Pitsidianakis afa74ccfb5
compose: add From text entry autocomplete 4 years ago
Manos Pitsidianakis 560771b32a
widgets: select AutoCompleteEntry on Enter 4 years ago
Manos Pitsidianakis 7b1ab389fa
Remove unused plugin interface 4 years ago
Manos Pitsidianakis 594a2bd0dd
listing: add set operations to range select actions
Add symmetric difference (default), union, difference and intersection
modifiers for selecting ranges. That way you can quickly construct the
selection set you need.
4 years ago
Manos Pitsidianakis 05ef863a45
utilities: move PageMovement to components mod 4 years ago
Manos Pitsidianakis 4b91de3d59
state: remove overlay widgets on ComponentKill events 4 years ago
Manos Pitsidianakis eb36034740
accounts: autoload Sent folders automatically 4 years ago
Manos Pitsidianakis 9f39a7c5a1
statusbar: delete num buffer chars with Backspace 4 years ago
Manos Pitsidianakis 126ed8a189
statusbar: don't overwrite num buffer when progress spinner is deactivated 4 years ago
Manos Pitsidianakis 7919e95ddd
terminal/embed: remove some allocations and unwraps 4 years ago
Manos Pitsidianakis 89940dd606
cli-docs: compress included text 4 years ago
Manos Pitsidianakis b69bc219c3
README.md: Add screenshots and update text 4 years ago
Manos Pitsidianakis bb51d36579
composer: send NewJob event on submission 4 years ago
Manos Pitsidianakis a2456fa3f5
docs/meli.conf.5: small fixes & additions 4 years ago
Manos Pitsidianakis 3b97e66c10
docs/meli.conf.5: add progress_spinner_sequence doc 4 years ago
Manos Pitsidianakis ddfec3e207
listing: fix menu draw artifact 4 years ago
Manos Pitsidianakis a702a04043
melib/attachments: add SMIME signature variant 4 years ago
Manos Pitsidianakis 6264ee011f
terminal/embed: remove unwraps from kill() calls
If child process has exited, this will panic.
4 years ago
Manos Pitsidianakis 5acd7dfe1c
mail/view: prevent spurious redraw in special modes 4 years ago
Manos Pitsidianakis 8090d614e2
conf/pager: remove unused max_width option 4 years ago
Manos Pitsidianakis 3949cecb75
mail/composer: add scrollbars 4 years ago
Manos Pitsidianakis 1e7b40e6b3
utilities: move pager to its own module 4 years ago
Manos Pitsidianakis d8d66641e2
utilities/widgets: only advance stage by timer in ProgressSpinner 4 years ago
Manos Pitsidianakis 393c5d0d53
state: cull redraws of floating notifications
Cull redraws by keeping track of whether the floating box has been
initialised and whether its area has been drawn over by other dirty areas.
4 years ago
Manos Pitsidianakis 4c1a9b2485
Fix minor warnings 4 years ago
Manos Pitsidianakis 03a1d5a985
listing: Update status on all update events
Envelope counter totals might remain stale in the bottom status bar.
4 years ago
Manos Pitsidianakis 279c288a22
Alter enter_command_mode shortcut to `:`
Just like vi.
4 years ago
Manos Pitsidianakis e4cddbad25
mail/view: send NewJob event on new jobs
NewJob event wasn't sent so the message loading jobs were not accounted
in the busy spinner animation
4 years ago
Manos Pitsidianakis 67f50d95f4
Add quit command 4 years ago
Manos Pitsidianakis 0c68807814
Add export-mail command 4 years ago
Manos Pitsidianakis 4e72b6552a
conf: add setting for progress spinner
Choose between 30-something built in sequences (integers between 0-30)
or define your own list of strings for the progress spinner animation.

Default: 0
4 years ago
Manos Pitsidianakis 310d02042f
Rename toggle_thread_snooze to "toggle thread_snooze"
For consistency with other toggle commands.
4 years ago
Manos Pitsidianakis 188e020bd1
Add opt-in mouse support
Sidebar width can be resized with mouse hold and drag.
4 years ago
Manos Pitsidianakis 6f31388b27
compose: add EditAttachments menu 4 years ago
Manos Pitsidianakis 5337a54d96
compose: move gpg mod to its own file 4 years ago
Manos Pitsidianakis b343530f0c
widgets: add button type parameter to FormWidget 4 years ago
Manos Pitsidianakis cd68008e67
melib: Implement delete_messages for IMAP, Maildir 4 years ago
Manos Pitsidianakis 9ce62c735a
compose: add key selection state for gpg operations
Closes #81
4 years ago
Manos Pitsidianakis 39fab67523
compose: use melib::Bytes pretty print for attachment size 4 years ago
Manos Pitsidianakis 0ca7b0042e
utilities: ensure Form/Button widgets are not always non-dirty 4 years ago
Manos Pitsidianakis 406af1848f
compose: add `add-attachment-file-picker` command 4 years ago
Manos Pitsidianakis a4b78532b7
Refactor job structs into JoinHandle
Put oneshot::channel<R> into JoinHandle<R>
4 years ago
Manos Pitsidianakis 0dd9e6a34b
compose: kill selectors on ComponentKill 4 years ago
Manos Pitsidianakis eb1cb5cec6
compose: expand cursor reach to attachment area 4 years ago
Manos Pitsidianakis e42c9281fd
Fix input events going to hidden components 4 years ago
Manos Pitsidianakis bc74379b27
mailview: don't process_event if coordinates uninitialised 4 years ago
Manos Pitsidianakis be45b0c02d
compose: add encrypt layer 4 years ago
Manos Pitsidianakis 3ec1ecb349
Add import mail action 4 years ago
Manos Pitsidianakis a2f11c341d
compose: add async draft filter stack in sending mail
Add a stack of "filter" closures that edit a draft before sending it.
Add PGP signing filter. An encryption filter will be added in a future
commit.
4 years ago
Manos Pitsidianakis 08df7f39b2
Add toggle encrypt action in composer
Does nothing for now, will be used in a future commit.
4 years ago
Manos Pitsidianakis 347b54e0f7
segment_tree: get_max() return 0 if tree empty 4 years ago
Manos Pitsidianakis 74f31875b8
listing: fix menu gaining focus if not visible 4 years ago
Manos Pitsidianakis 23ca41e3e8
add libgpgme feature 4 years ago
Manos Pitsidianakis b9c07bacef
melib: decode text inline message/rfc822 attachments 4 years ago
Manos Pitsidianakis b0e50a29bd
melib/list_management: don't ignore "NO" in List-Post 4 years ago
Manos Pitsidianakis baa44109f2
melib/thread: "merge" duplicate messages in threads 4 years ago
Manos Pitsidianakis a187cee1d3
plugins: place socket in XDG_RUNTIME_DIR, not CWD
Closes #78
4 years ago
Manos Pitsidianakis fba69d1e5d
SearchBackend: add Auto variant as default 4 years ago
Manos Pitsidianakis 7dfa6c0639
view/thread: use reverse colors in cursor in case of NO_COLOR 4 years ago
Manos Pitsidianakis 82cd690005
sqlite3: only update when SearchBackend is sqlite3 4 years ago
Manos Pitsidianakis 8eb78ae01b
sidebar: compute mailbox tree only for subscribed mailboxes 4 years ago
Manos Pitsidianakis 05e4dbcd5a
melib: update smol to 1.0.0 4 years ago
Manos Pitsidianakis fbf2b7dc7b
sidebar: add customizable mailbox tree
Concerns #72
4 years ago
Manos Pitsidianakis 83bee279e6
melib/email/compose: set attachment status
Set Content-Disposition: attachment to, well, attachments.
4 years ago
Manos Pitsidianakis d862e7bf53
statustab: don't process scrolling events if account is open 4 years ago
Manos Pitsidianakis 005c879a12
accounts: remove job timeout 4 years ago
Manos Pitsidianakis 8a8c790f8c
accounts: fix blocking jobs not spawning on blocking workers 4 years ago
Manos Pitsidianakis e60eb23f4d
statustab: show active jobs 4 years ago
Manos Pitsidianakis 07742ec053
utilities: ensure command suggestions are LIFO 4 years ago
Manos Pitsidianakis f83df69d2f
utilities/widgets: ensure ProgressSpinner is cleaned up 4 years ago
Manos Pitsidianakis 17a4ccdcbc
melib/imap: perform reconnect on IDLE failure 4 years ago
Manos Pitsidianakis 315af9bc05
shortcut!: prevent panic if shortcut key $section is missing 4 years ago
Manos Pitsidianakis fadf20d7b1
NotificationType: add melib::ErrorKind 4 years ago
Manos Pitsidianakis 46e3bb8074
conf/accounts: call is_online if Refresh job fails 4 years ago
Manos Pitsidianakis 3ef60f2688
jobs: add module doco 4 years ago
Manos Pitsidianakis c9a06b9b5c
mail/view: unset self.dirty early on draw 4 years ago
Manos Pitsidianakis 51db5b6c2f
listing/conversations: redraw selection undo on Esc 4 years ago
Manos Pitsidianakis 14de776314
listing/plain: add row_attr! macro 4 years ago
Manos Pitsidianakis 20b02ffd4f
Lookup tag color/ignore settings in all three setting levels
There are three setting levels for tag settings:

- per mailbox override    ^
- per account override    |
- global setting          |
                        depth

So lookup in each of them in this order for configuration, not just the
deepest level.
4 years ago
Manos Pitsidianakis 41664bbe91
Don't panic if no dbus notification server is available 4 years ago
Manos Pitsidianakis 4829e13c47
melib/maildir: impl copy_messages for Maildir 4 years ago
Manos Pitsidianakis a1585d4006
components/listing: draw rows select status at all times 4 years ago
Manos Pitsidianakis ed27ed604c
listing: select multiple messages with a motion
- Press a number (movement multiplier)
- Press "select_entry" shortcut (default: v)
- Press a movement (arrow keys, PageUp/Down, Home/End)
- Resulting selection will be symmetric difference of previous selection
plus all the entries traversed with movement
4 years ago
Manos Pitsidianakis bda5bd963a
mail/view: cache message body/text in MailView state 4 years ago
Manos Pitsidianakis 1fe873887f
components/utilities: keep track of finished jobs
Keep track of finished jobs in case we get a job notification more than
once.
4 years ago
Manos Pitsidianakis f05dd379ae
Send NewJob event on all job startups 4 years ago
Manos Pitsidianakis 65357625ea
conf: impl DotAddressable for NotificationsSettings 4 years ago
Manos Pitsidianakis 1ac3a7a903
Make dbus dependency optional
Put dbus dependency behing `dbus-notifications` feature.
4 years ago
Manos Pitsidianakis be57b65dae
melib/email: add flags arg to Mail::new 4 years ago
Manos Pitsidianakis d57dd9c98e
melib/email/address: return Option in get_display_name 4 years ago
Manos Pitsidianakis c6c0da7fcb
melib: cleanup commit
Cleanup melib module exports, add some document tests, change some
documentation.
4 years ago
Manos Pitsidianakis 8f46c4ebe7
Small fixes 4 years ago
Manos Pitsidianakis b94342c52b
themes/regexp: fix unwrap check on regexp match byte offsets 4 years ago
Manos Pitsidianakis f02dde46da
melib/error:Add ErrorKind::Timeout
Timeout errors lead to automatic restart of connections without
bothering the user about the details, compared to actual network errors.
4 years ago
Manos Pitsidianakis 25b325dbda
Keep bytes copy in SaveMessage job in case of failure 4 years ago
Manos Pitsidianakis ca0f37e1f3
Send AccountStatusChange event on receiving mailboxes 4 years ago
Manos Pitsidianakis 843616221e
Add logging level to Generic jobs
Not every job success should be shown to the user, for example updating
the sqlite3 database. So introduce a level to only show relevant
notifications.
4 years ago
Manos Pitsidianakis c6f11fb592
melib: update notify to 4.0.15 4 years ago
Manos Pitsidianakis 14663e46b9
Remove some old TODO comments 4 years ago
Manos Pitsidianakis 4217839155
melib/email: remove Envelope::from_token 4 years ago
Manos Pitsidianakis 9e9be0b5f3
Remove block_on from mailbox creation/deletion 4 years ago
Manos Pitsidianakis b545a0b905
Show error if watch job fails 4 years ago
Manos Pitsidianakis fc25c7b165
Fix compiler warnings 4 years ago
Manos Pitsidianakis 629997397f
Allow toggle_help (default ?) remapping 4 years ago
Manos Pitsidianakis 53e924eb33
Add edit envelope action back as async 4 years ago
Manos Pitsidianakis 1ca0bd0d96
sqlite3: add schema versioning
To potentially be used with automatic migrations on version update
4 years ago
Manos Pitsidianakis 8d50e83a33
melib/email: add case-insensitive Header struct
- HeaderName is either 32 or less inlined bytes or heap-allocated vec for more than that.
- Equality and hashing is case-insensitive
- A HeaderMap is a hashmap from HeaderName to Strings that can be
indexed with &str, case insensitive. Insertion order is also preserved
4 years ago
Manos Pitsidianakis 94433cfc40
melib/backends: cleanup MailBackend trait definition 4 years ago
Manos Pitsidianakis 3eadaba34e
Replace old pseudo-async code with blocking rust async 4 years ago
Manos Pitsidianakis a190805384
melib/backends: Add BackendEvent enum 4 years ago
Manos Pitsidianakis 9928ee78e7
Add Reply{ToAuthor,ToAll} actions
- previous Reply action now lets you select recipients by default
- ReplyToAuthor selects the Envelope author as recipient
- ReplyToAll selects all addresses
4 years ago
Manos Pitsidianakis d95aae1987
terminal/keys: add `Space` identifier in Key Display impl 4 years ago
Manos Pitsidianakis 9afbdd4887
Add insert_user_agent option in composing
Add option for automatically inserting a 'User-Agent' header in new
drafts.
4 years ago
Manos Pitsidianakis bb4754e38a
themes/shortcuts: preserve order of keys 4 years ago
Manos Pitsidianakis 8a6bf3b217
Preserve Account order from configuration file
Use IndexMap to preserve the order of accounts in the UI from the
account definitions.
4 years ago
Manos Pitsidianakis b9e53a7451
melib/smtp: add recipient argument in mail_transaction() 4 years ago
Manos Pitsidianakis 79b2b38e32
melib: add supports_submission backend capability
To be used by NNTP, JMAP and some IMAP servers with BURL capability
4 years ago
Manos Pitsidianakis fe4dae12df
listing/*: show MailboxEntry::status() when length is 0
Show the MailboxEntry::status() string when self.length == 0, instead of
"MAILBOX is empty".
4 years ago
Manos Pitsidianakis c88eac1cc5
melib/jmap: implement search
Closes #59
4 years ago
Manos Pitsidianakis 52bcecfd4a
conf.rs: reject unknown configuration options
Closes #11
4 years ago
Manos Pitsidianakis 750e32c8e1
mail/listing: use mailbox count() total instead of loaded total 4 years ago
Manos Pitsidianakis 5db749c258
terminal/cells.rs: fix resize to grow actually making the grid smaller 4 years ago
Manos Pitsidianakis fb523c140a
terminal/cells: resize growable grid when exactly at bounds 4 years ago
Manos Pitsidianakis 890000bd0e
status page: trim extension name at 30 chars
NNTP has some long protocol extension names
4 years ago
Manos Pitsidianakis c5d0a6c3b6
conf/accounts.rs: don't retry connect on auth error 4 years ago
Manos Pitsidianakis ec0153e7b2
melib: add protocol extension info in MailBackendCapabilities 4 years ago
Manos Pitsidianakis 3ac2c12e7a
Small fixes 4 years ago
Manos Pitsidianakis 44fdc0765e
conf/accounts.rs: add 30s job timeout 4 years ago
Manos Pitsidianakis 2db983ae1f
mail/view.rs: try restarting future if get bytes fails 4 years ago
Manos Pitsidianakis 70a4409e59
mail/listing*: various theme color fixes 4 years ago
Manos Pitsidianakis 74673880e6
command.rs: add eof() parser to action parsers 4 years ago
Manos Pitsidianakis 26b327d86a
mail/listing*: clear selection after perform_action() 4 years ago
Manos Pitsidianakis b5530860d2
conf/DotAddressable: impls for more types 4 years ago
Manos Pitsidianakis 0d198dbb56
conf.rs: fix struct decl/impl order in file
Impls and type declarations were out of order
4 years ago
Manos Pitsidianakis 7fd511e149
conf/shortcuts.rs: implement DotAddressable for Shortcuts 4 years ago
Manos Pitsidianakis 1cc1b0604c
conf/accounts.rs: use QueryTrait when search_backend is None 4 years ago
Manos Pitsidianakis 3f8aa560f0
melib/MailBackend: add MailBackendCapabilities struct 4 years ago
Manos Pitsidianakis 4aaa784d8f
Fix panic on empty command history when browsing history 4 years ago
Manos Pitsidianakis 8b90c7fcb6
conf/shortcuts: add shortcut for COMMAND mode
Replace hardcoded Key value with customisable shortcut
"general.enter_command_mode"
4 years ago
Manos Pitsidianakis c2550f60b6
Rename EXECUTE mode to COMMAND
vim uses COMMAND, and we want to be consistent with vim when possible.
4 years ago
Manos Pitsidianakis b20bdea8f0
EXECUTE: cancel command with Esc 4 years ago
Manos Pitsidianakis 989cfcc877
conf/accounts.rs: use mailbox alias if available in MailboxEntry::name() 4 years ago
Manos Pitsidianakis 7744ef1462
conf/accounts.rs: make JobRequest::Generic name Cow<'_, str> 4 years ago
Manos Pitsidianakis d6ef3567f4
conf/accounts.rs: add hash() method 4 years ago
Manos Pitsidianakis 688060ceb6
conf/accounts.rs: always load Inbox 4 years ago
Manos Pitsidianakis ed3b2fa6c8
types.rs: add JobCanceled event 4 years ago
Manos Pitsidianakis 00acba7717
melib/MailBackend: add copy_messages,set_flags,delete_messages methods 4 years ago
Manos Pitsidianakis a049a83fe3
conf/accounts: add insert_job() method 4 years ago
Manos Pitsidianakis 246ac4b84a
Update smallvec dependency to 1.4.1 4 years ago
Manos Pitsidianakis f9efaea0ec
ConversationsListing: fix invalid update_line colors 4 years ago
Manos Pitsidianakis 99fbac3806
Remove unused variables/functions 4 years ago
Manos Pitsidianakis 1bd89b3c96
themes: add mail.sidebar_account_name key 4 years ago
Manos Pitsidianakis 44ffbe54e2
input_thread: add atomic refcount to check if thread is dead 4 years ago
Manos Pitsidianakis 0882dbbad0
melib/Collection: put all fields behind a mutex 4 years ago
Manos Pitsidianakis fadb3634e0
melib: take MailboxHash instead of &Mailbox in fetch*() 4 years ago
Manos Pitsidianakis 9103d05617
melib: s/get/fetch in MailBackend methods 4 years ago
Manos Pitsidianakis 996abd323f
Add print setting action
Add experimental print setting action. The command is of the form:

  print account_name listing.index_style

account_name is currently ignored.

The path, e.g. listing.index_style is split by "." and fed to
DotAddressable lookup trait method. The method checks the first segment
in the path if it matches any of the struct's fields, and then calls the
field's lookup method.
4 years ago
Manos Pitsidianakis b4dadf20b6
ThreadListing: don't print previous link on root envelopes
If a thread root is missing (i.e. we never received that message or it
was deleted) threads rendered like this:

 ├─>Re: original subject
 ├─>Re: original subject
 └─>Re: original subject

This causes visual ambiguity if the parentless thread follows another:

 Another thread
 └─>Re: Another thread
 ├─>Re: original subject
 ├─>Re: original subject
 └─>Re: original subject

This commit removes the "previous link" from every first message in a group:

 ┬─>Re: original subject
 ├─>Re: original subject
 └─>Re: original subject
4 years ago
Manos Pitsidianakis 08d8c05a67
CompactListing: update self.rows{,_drawn} on row update
self.rows{,_drawn} were left unupdated, and stale envelope hashes could
result in panics
4 years ago
Manos Pitsidianakis 1bac926bdc
CompactListing: add row_attr macro
Add macro to calculate theme attribute for given thread row
4 years ago
Manos Pitsidianakis 5e1fa2d8d7
CompactListing: add select command
Select envelopes based on query
4 years ago
Manos Pitsidianakis 0d3fe288c5
sqlite3: make reindex operation async 4 years ago