Commit Graph

405 Commits (72e301887f78d5f34c23c426d6f073d921d00ad6)

Author SHA1 Message Date
Manos Pitsidianakis 72e301887f
ui/compose: clear empty space area properly 5 years ago
Manos Pitsidianakis 3a86a7ca16
ui: harden bounds check in inspect_bounds macro 5 years ago
Manos Pitsidianakis 565b11634a
ui: add two readline shortcuts in text fields 5 years ago
Manos Pitsidianakis 1a02491f04
ui/compose: add modification detection
Detect if modifications were done to the draft in the compose tab so
that we can ask for confirmation if user wants to quit an unsaved draft.
5 years ago
Manos Pitsidianakis 5beed91df2
contacts: add support for externally managed contacts
Adds support for contacts (Cards) marked as `external_resource` which
prevents modifications from happening. No way to import external
contacts is added yet.
5 years ago
Manos Pitsidianakis dc525b9ddd
contacts: make CardId an enum
CardId is the "Primary Key" of the contact type, Card. Meli-created
contacts had UUIDs for their CardId. In order to import external
contacts and ensure their primary key is the same each time, CardId is
made into an enum to add hashing as a choice.
5 years ago
Manos Pitsidianakis f3e08c17aa
Update uuid dependency to 0.7.4 5 years ago
Manos Pitsidianakis 9de15284d8
ui: initialise cursor in fields at the end
By convention and usability reasons, the cursor in a text field should
be initialised at the end of the string.
5 years ago
Manos Pitsidianakis fa3e3791e9
Fix test compilation error 5 years ago
Manos Pitsidianakis 271cae025b
ui/listing: add search shortcut 5 years ago
Manos Pitsidianakis b075501ef7
ui/listing: tidy mail listing shortcuts
- move set_seen to Listing component (instead of having it in Listing's
child Component)
- add default values to shortcut definition macro `shortcut_key_values`
- do not redefine default values in each `shortcuts` method after
getting all valid shortcuts from `context.settings.shortcuts.*.key_values()`
5 years ago
Manos Pitsidianakis 9c3284d3fe
ui/listings: add set_movement method to ListingComponent
Page movements is an enum that describes the movements of the keyboard
keys "Home, End, PageUp, PageDown". Some mail listing Components
interpret these keys as changes to their cursors.
5 years ago
Manos Pitsidianakis 205ebe2f1c
ui: add window title config option
Use xterm window title escape sequences to set window title when
launched and restoring the previous one when exiting. If option is
blank, no title setting occurs.
5 years ago
Manos Pitsidianakis ccc58860e6
conf: move serde default attributes from field to struct 5 years ago
Manos Pitsidianakis d17deaca01
ui: add M-{i} tab change 5 years ago
Manos Pitsidianakis ea3f47fa44
ui: clear all state in Listing::set_coordinates
If a listing lists search results, ie when "filtering" with a filter
term, it sets up its state in filtered_selection, filtered_order etc.
set_coordinates() should reset that state.
5 years ago
Manos Pitsidianakis fe4349692e
ui: break line when printing mailing list actions
Break line instead of hiding the mailing list actions from the user.
5 years ago
Manos Pitsidianakis febea423d9
ui: Add RawBuffer component for raw ansi content 5 years ago
Manos Pitsidianakis 6f816d29c5
conf: add ascii_drawing option
If set to true, box drawing is done with ascii characters.
5 years ago
Manos Pitsidianakis b25f10f92a
conf: add a light theme option 5 years ago
Manos Pitsidianakis 9a3b9b1409
conf: move html_filter to PagerSettings
html_filter was in Account settings, but it makes more sense for it to
be in PagerSettings
5 years ago
Manos Pitsidianakis f14381056f
ui: small fix in view.rs 5 years ago
Manos Pitsidianakis f485079404
ui: align buttons in Selector
Correct alignment of Ok, Cancel buttons
5 years ago
Manos Pitsidianakis 37a4b553bc
ui: ask user if they want to reply or reply to all in mailing lists 5 years ago
Manos Pitsidianakis cd761b3166
ui: revamp option dialog
Selector component shows choices/options to the user. Ok and Cancel
buttons were added, along with a window border and window title.
5 years ago
Manos Pitsidianakis 51bb50abf3
Add support for aarch64 target 5 years ago
Manos Pitsidianakis 2b5472adc3
Add set_seen shortcut in CompactListing 5 years ago
Manos Pitsidianakis b7edec0274
Bump version to 0.3.2 5 years ago
Manos Pitsidianakis e35a93336a
Add GPG signing and sig verifying 5 years ago
Manos Pitsidianakis 250129665b
Pass attachment names through decoding
Attachment names in Content-Type parameters can be encoded (eg
=?UTF-8...), so try decoding with phrase() first
5 years ago
Manos Pitsidianakis 19ec6e54fc
Dont show notification for seen or draft Envelopes 5 years ago
Manos Pitsidianakis 31543bf2f9
ui: update CompactListing based on ConversationsListing 5 years ago
Manos Pitsidianakis b3e1d88898
compose: rename Overview to ThreadView 5 years ago
Manos Pitsidianakis d8ada69897
compose: don't lose draft if Draft folder isn't available
Try saving in INBOX or another folder instead. On complete failure, save
in /tmp/
5 years ago
Manos Pitsidianakis 68c40a2920
melib: return Result with error when an IO operation fails
Don't unwrap anything because this might be temporary, for example a
short IMAP disconnection.
5 years ago
Manos Pitsidianakis d44a68ec69
ui: don't quit if editing a draft
Ask user to save draft or discard it.
5 years ago
Manos Pitsidianakis 713c4f73b9
conf: add editor_cmd setting
Set the editor to launch in configuration. If it's missing, check for
$EDITOR
5 years ago
Manos Pitsidianakis 0ece51612f
update bincode to 1.2.0 5 years ago
Manos Pitsidianakis fa121820f7
Bump version to 0.3.1 5 years ago
Manos Pitsidianakis ef338f353d
ui: add PGP settings in configuration 5 years ago
Manos Pitsidianakis 6d40a57a2e
ui: scroll in shortcuts panel 5 years ago
Manos Pitsidianakis 91ae539de1
Small fixes 5 years ago
Manos Pitsidianakis f27b815aa7
Add verification of GPG signed messages 5 years ago
Manos Pitsidianakis 9305e543cf
melib: add a `body` field to Attachment
Attachment needs to know the range of bytes where the body part of the
attachment is located. The Attachment.raw field contains the entire
attachment, headers and body. The new Attachment.body fields contains a
`StrBuilder` which contains the offset and length of the body part inside
`raw`.
5 years ago
Manos Pitsidianakis 5a53020f3d
Add debug-tracing feature to all crates
The feature needs to be defined in all manifests in order to be enabled
in all crates.
5 years ago
Manos Pitsidianakis 26e4d50b40
Try to save sent messages elsewhere if Sent folder fails
If Sent folder wasn't correctly configured, the sent message would be
lost. With this change it tries these folders in this order:

 1. Sent
 2. Inbox
 3. Any other normal folder

The check is done by looking at the special usage metadata on each
folder. If everything fails, the message is saved in a file in the
tmpfs.
5 years ago
Manos Pitsidianakis 415fb2455b
ui: display status bar messages for 5 seconds 5 years ago
Manos Pitsidianakis b07db29a19
ui: add timer tick every 300ms
Check for pending events in the main process by receiving a timer event
every 300ms. This way loaded folders or received emails will get
recognized even if the appropriate informing signals got lost.
5 years ago
Manos Pitsidianakis 7fe6532c73
ui: add log on child waiting error 5 years ago
Manos Pitsidianakis fb7b038ee1
ui: add set_seen shortcut in {Compact,Conversation}
Shortcut sets an entire thread as seen.
5 years ago