Commit Graph

878 Commits (bb80de91aee1fd2953ba142693076188e64223a5)
 

Author SHA1 Message Date
Manos Pitsidianakis bb80de91ae
Makefile: add debian/ and deb-dist target to build *.deb package 4 years ago
Manos Pitsidianakis cd1ed5ef40
melib/mbox: replace unimplemented!() with Error 4 years ago
Manos Pitsidianakis 51d9405c72
melib/mbox: fix parse error
First line of an mbox message is a "From ..." header without the colon
required in RFC822. Skip it when parsing the actual e-mail.

This was lost somewhere in the commit history when mbox was added,
weird.
4 years ago
Manos Pitsidianakis 6a096dd405
Add missing copyright preambles 4 years ago
Manos Pitsidianakis 901cc3494f
ui/themes: add theming support in tab bar 4 years ago
Manos Pitsidianakis e3cd33f0e3
Update Makefile
- Add BINDIR, MANDIR env vars
- add check-dep target that checks for cargo/rustc version
- add ANSI formatting output with NO_COLOR support
- add help target
- move manpage installation to install-doc target
- move bin installation to install-bin target
- add dist target
- add warning if BINDIR is not inside $PATH
- add warning if MANDIR is not inside $MANPATH/manpath
4 years ago
Manos Pitsidianakis f55311bfbd
meli-themes.5: split tables into pages
This seems to be a bug with debian's  troff renderer; tables spanning
more than one page were silently dropped and were not visible.

tbl(1) says to use the macro .TS H with .TH to define the headers but
this is not supported in debian nor openbsd's mandoc implementation.
4 years ago
Manos Pitsidianakis 43395461dd
ui/conf: replace include macro with m4 include macro 4 years ago
Manos Pitsidianakis 60457725a4
Correct mdoc lint warnings 4 years ago
Manos Pitsidianakis dbc0fd81af
Rename config file to config.toml 4 years ago
Manos Pitsidianakis 449e526953
Add meli-themes.5 doc, update others 4 years ago
Manos Pitsidianakis 6a7cae0988
ui/themes: add NO_COLOR support
https://no-color.org/
4 years ago
Manos Pitsidianakis ee65f355c7
ui/themes: print theme name that contains error in Theme::validate 4 years ago
Manos Pitsidianakis f15e569627
ui/themes: add status.{bar,notification} and theme_default keys
- theme_default replaces general for all default colors/attributes
- add status.{bar,notification} support
4 years ago
Manos Pitsidianakis 5dc477bcd5
Fix some unused etc warnings 4 years ago
Manos Pitsidianakis b823969ae2
small fixes
- Don't debug print Timer events in src/bin.rs event loop; they're too
frequent and pollute the logs
- chain set_{fg,bg,..} method calls for &mut Cell
- remove unneeded u8 to u8 cast
4 years ago
Manos Pitsidianakis 3c7328d901
ui: correctly turn on/off terminal attributes in draw_horizontal_segment()
`Attr` (terminal attributes such as bold, underline, etc) were not being
printed properly: their bitmap representation was printed instead of the
correct ANSI codes to turn them on/off. This worked so far because the
attributes and {fore,back}ground color was reset in every character
print.

draw_horizontal_segment() now keeps state of current_{fg,bg,attr} to
keep from resetting in each column draw.
4 years ago
Manos Pitsidianakis 77d9cef6fc
melib/imap: small fixes
- Ignore final line ("M__ OK ...") when parsing FETCH response.

- Remove unnecessary import and reword some error messages
4 years ago
Manos Pitsidianakis 254028fa47
melib/threads: fix thread splintering case when inserting reply
When inserting reply, its thread group was re-inserted with the reply as
the root. This is a mistake as threads should never be re-inserted, only
modified.
4 years ago
Manos Pitsidianakis 8ec82b836a
Add 2 theme-related cli flags 4 years ago
Manos Pitsidianakis 5230ce2d03
ui/themes: load other themes from ./themes/ dir 4 years ago
Manos Pitsidianakis ab0b4f5168
ui/themes: add defaults in add!() macro 4 years ago
Manos Pitsidianakis eedb03dcd0
ui/themes: fix attr parsing not recognizing links 4 years ago
Manos Pitsidianakis fc4b9f8919
ui/themes: add other_themes field to Theme
Add support for multiple arbitrarily named themes.
4 years ago
Manos Pitsidianakis 72e1d5d52d
ui/themes: add link cycle detection in theme validation 4 years ago
Manos Pitsidianakis 2a4ecc8314
Micro fix in meli.conf.5 4 years ago
Manos Pitsidianakis 1e2b3c073d
ui/themes: add ThemeAttribute
Consolidate {fg,bg} color theme settings to ThemeAttribute and add Attr
(bold, etc).
4 years ago
Manos Pitsidianakis f787eb75b6
ui/themes: add ThemeValue struct
ThemeValue is either a Color or a theme key, meaning the value is linked
to another key's value.
4 years ago
Manos Pitsidianakis aa04ddda3d
ui/themes: add envelope view headers/body theme colors 4 years ago
Manos Pitsidianakis dc63e1f657
Minor changes 4 years ago
Manos Pitsidianakis 1e2acd3b29
melib: add complete() method to ShellExpandTrait
complete(force: bool) returns String path segments that when appended to
the path will form a valid location. Example:

  - User types: save-attachment 1 /t
  - User presses <TAB>.
  - complete() returns the suggestion: "mp/"
  - User sees: save-attachment 1 /tmp/

complete() uses openat() and getdents64 syscalls hoping it's faster than
using stdlib.
4 years ago
Manos Pitsidianakis 6d9f584de3
Update nix to 0.16.1 4 years ago
Manos Pitsidianakis a1c449e585
ui/themes: add theming to ConversationsListing, sidebar 4 years ago
Manos Pitsidianakis a9842cacee
ui: add theming support
Configuration flag "terminal.themes" has two default theme entries,
"dark" and "light".

This commit alters only CompactListing for theme support.
4 years ago
Manos Pitsidianakis 63ff25b36a
ui/listings: add folder_hash field
No reason not to have it stored and discover it whenever it's needed.
4 years ago
Manos Pitsidianakis e07b5faf6e
melib/threads: already-exists check in threads insert 4 years ago
Manos Pitsidianakis 350fafb515
melib/thread: add attachments field to Thread 4 years ago
Manos Pitsidianakis 5e68d600b9
melib/threads: Split ThreadGroup::Group to Thread
Create Thread struct.
4 years ago
Manos Pitsidianakis d9269335a1
melib/threads: rename thread hashes
- Rename ThreadHash to ThreadNodeHash
- Rename ThreadGroupHash to ThreadHash
4 years ago
Manos Pitsidianakis 47a69f8eb9
melib: add ThreadGroup
Instead of using Union/Find to gather mail that belongs in the same
e-mail thread together, add a new entity ThreadGroup that ThreadNodes
point to. ThreadGroup represents an actual Thread: A thread root
ThreadGroup::Group or a reply ThreadGroup::Node.

To make semantics more accurate:

- ThreadNode hash should be renamed to ThreadNodeHash
- ThreadGroupHash should be renamed to ThreadHash
- ThreadGroup::Group should be a struct named Thread instead
- move ThreadGroup::Node logic to ThreadNode akin to Union/Find
- rename ThreaddGroup::Group to Thread
4 years ago
Manos Pitsidianakis 20f86f2741
ui/listing: add mailbox reload rate limit 4 years ago
Manos Pitsidianakis 0ac10aa4d0
Some listing refactoring 4 years ago
Manos Pitsidianakis f58ed387dd
ui: add ratelimiting in UI notifications and drawing 4 years ago
Manos Pitsidianakis 1eb49efb22
melib/threads: use all References in thread building
WIP
4 years ago
Manos Pitsidianakis 56e3ea1548
melib/imap: refactor early error exit 4 years ago
Manos Pitsidianakis 7f8c638361
melib/imap: add mailbox creation ability 4 years ago
Manos Pitsidianakis 853fe14128
melib: fix two minor email parsing bugs
- windows-1250 encoding not being recognized
- spaces in Message-ID header messing up parsing '<' + msg-id + '>'
structure
4 years ago
Manos Pitsidianakis 6835968d9a
melib/datetime: convert date to utc before converting to unix epoch 4 years ago
Manos Pitsidianakis 86d8419ce7
ui: add manual_refresh, refresh_command settings
manual_refresh Ar boolean
  (optional) if true, do not monitor account for changes (shortcut listing.refresh)
  refresh_command Ar String
  (optional) command to execute when manually refreshing (shortcut listing.refresh)
4 years ago
Manos Pitsidianakis 5e912db461
Send timer ID as si_value to SIGALRM handler
Associate each alarm signal with the timer of its origin.
4 years ago