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.
2020-11-25 15:54:47 +02:00
Manos Pitsidianakis
92c12d3526
melib/imap: implement OAUTH2 authentication
2020-11-24 14:28:28 +02:00
Manos Pitsidianakis
0a8a0c04c8
compose: treat inline message/rfc822 as attachments
2020-11-24 14:28:28 +02:00
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.
2020-11-24 14:28:28 +02:00
Manos Pitsidianakis
79345b3e84
utilities/StatusBar: fix lack of bounds checking in hist_area
2020-11-24 14:28:28 +02:00
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
2020-11-24 10:36:31 +02:00
Manos Pitsidianakis
bf56c88918
compose: respect auto_choose_multipart_alternative when rendering multipart/alternative attachments to text
2020-11-24 10:36:31 +02:00
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.
2020-11-24 10:36:21 +02:00
Manos Pitsidianakis
d4f508642a
widgets: allow text overflow in text fields
...
Show text content of a text field that exceeds the visible width
properly.
2020-11-24 10:36:21 +02:00
Manos Pitsidianakis
f69f623818
Fix some invalid area calculations
2020-11-24 02:23:07 +02:00
Manos Pitsidianakis
2ef2add67f
imap: fix untrimmed query str resulting in invalid search criteria in cyrus
2020-11-24 02:18:41 +02:00
Manos Pitsidianakis
458209b448
view/thread: clear empty space in draw_list
2020-11-24 02:18:41 +02:00
Manos Pitsidianakis
b7c48a1ed0
view/thread: make list draw area consistent
2020-11-24 02:18:41 +02:00
Manos Pitsidianakis
f25f93fccf
utilities: Fix incorrect calculations in ScrollBar
2020-11-24 02:18:31 +02:00
Manos Pitsidianakis
31e4ed006d
listing: fix off by one error in PageDown movement
2020-11-24 02:18:31 +02:00
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.
2020-11-24 02:18:21 +02:00
Manos Pitsidianakis
ebc290cc2a
compose: set format flowed if configured in pager
2020-11-24 02:18:21 +02:00
Manos Pitsidianakis
f9ce5327c2
melib/imap: fix some LazyCountSet logic errors in sync
2020-11-24 02:18:21 +02:00
Manos Pitsidianakis
5b86c342fb
Update smallvec dependency to 1.5.0
...
Fixes panicking when loading cached serialized email from older versions
of meli.
https://github.com/servo/rust-smallvec/pull/238
2020-11-22 06:24:38 +02:00
Manos Pitsidianakis
0aa5cf273f
mail/status: don't overwrite "In-progress jobs header"
2020-11-21 02:09:39 +02:00
Manos Pitsidianakis
041257f9a6
melib/text_processing: fix CodePointsIterator implementation
...
Old implementation was redundant and broken.
2020-11-21 02:09:18 +02:00
Manos Pitsidianakis
1da6d75b08
melib/text_processing: add new wcwidth implementation
...
Download and parse Unicode data files to judge code point width.
Inspired by https://github.com/ridiculousfish/widecharwidth/
2020-11-21 02:09:18 +02:00
Manos Pitsidianakis
a7c0bca8ce
Fix test errors and warnings
2020-11-21 02:09:18 +02:00
Manos Pitsidianakis
023afbaae3
RateLimit: remove unupdated test
2020-11-16 00:45:18 +02:00
Manos Pitsidianakis
1c62de57ae
Never return true on processing JobFinished
...
JobFinished events are not meant to be inhibited.
2020-11-15 21:30:54 +02:00
Manos Pitsidianakis
76f8bdc558
Add configurable shortcut for 'quit'
...
Quit ('q' button) was hardcoded, switch to configurable shortcut setting
instead.
2020-11-15 21:30:54 +02:00
Manos Pitsidianakis
d404910a0f
melib/smtp: impl AUTH LOGIN
...
AUTH LOGIN is deprecated but predictably still around.
2020-11-15 21:30:54 +02:00
Manos Pitsidianakis
c0e3e78940
listing: dont overdraw menu over listing
2020-11-15 21:30:54 +02:00
Manos Pitsidianakis
aaee6d094c
Fix NO_COLOR cursor highlight in sidebar and progress spinner
2020-11-12 03:19:56 +02:00
Manos Pitsidianakis
60350eaa88
mail/status: add "general" shortcut section
2020-11-12 03:19:56 +02:00
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)
2020-11-11 17:14:34 +02:00
Manos Pitsidianakis
aa7ebf2918
melib/smtp: fix SMTP syntax error on DSN notify use
2020-11-10 20:30:50 +02:00
Manos Pitsidianakis
2544f54107
melib/compose: prevent bare newlines in finalised drafts
2020-11-10 17:26:06 +02:00
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.
2020-11-09 22:22:11 +02:00
Manos Pitsidianakis
23777171f2
listing: clear_area in draw_menu
...
Completely clear area in draw_menu instead of resetting ch, fg, bg etc.
2020-11-09 19:45:09 +02:00
Manos Pitsidianakis
cbaf21764c
Remove status tab, move account status page to listing
2020-11-09 19:35:47 +02:00
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.
2020-11-09 18:44:56 +02:00
Manos Pitsidianakis
f0800f38a8
melib/maildir: make MaildirOp return Result<PathBuf>
2020-11-09 03:36:40 +02:00
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.
2020-11-09 00:40:32 +02:00
Manos Pitsidianakis
353ac2d029
melib: set upper limit for bincode deserialize
...
If struct memory layout changes, bincode deserialize fails with memory
allocation error of an obscene amount of bytes. Set upper limit to
deserialized bytes in each place deserialize happens.
2020-11-06 19:05:09 +02:00
Manos Pitsidianakis
6c07046b66
Update bincode dependency to 1.3.1
2020-11-06 18:38:18 +02:00
Manos Pitsidianakis
8ac5558d65
Makefile: add CARGO_ARGS env var
...
Intended for use with cross-arch compilation flags (--target etc).
2020-11-05 21:11:27 +02:00
Manos Pitsidianakis
43d3d3681e
Makefile: replace install(1) with mkdir, rm, cp, chmod
...
install(1) is missing in some systems, so replace it with POSIX tools.
Closes #83 .
2020-11-05 21:09:42 +02:00
Rudi Horn
f1bdae65ee
melib/jmap: add HTTP redirect policy to client
...
Meli currently uses the .well-known/jmap URL and the RFC8620 requires that any redirects are followed (https://tools.ietf.org/html/rfc8620#section-2.2 ). This small change allows redirects to happen.
2020-11-04 20:07:51 +02:00
Manos Pitsidianakis
6cc43540d6
docs/meli.conf.5: add SmtpPassword examples
2020-10-30 22:40:56 +02:00
Manos Pitsidianakis
6392904047
Replace PosixTimer with async timers
2020-10-29 13:18:36 +02:00
Manos Pitsidianakis
57e6cf3980
Limit dbus dependency to target_os = "linux"
2020-10-28 23:28:41 +02:00
Manos Pitsidianakis
9a9c876f4a
melib: add more encodings
...
Add more encodings already supported by `encoding` crate:
- iso-8859-3,
- iso-8859-4,
- iso-8859-5,
- iso-8859-6,
- iso-8859-8,
- iso-8859-10,
- iso-8859-13,
- iso-8859-14,
- iso-8859-16,
- gb-2312
- big-5
- iso-2022-jp
- euc-jp
- koi8-r
- koi8-u
- utf-16
2020-10-26 22:26:29 +02:00
Manos Pitsidianakis
afa74ccfb5
compose: add From text entry autocomplete
2020-10-24 14:36:39 +03:00
Manos Pitsidianakis
560771b32a
widgets: select AutoCompleteEntry on Enter
2020-10-24 14:32:02 +03:00