Comments (3)
TL;DR - Will do after #92 is merged.
After using mime-decode hook to view HTML-only emails, I'm feeling the same need for this to be configurable.
A super-clean-and-correct approach would be extract the snippet-composing logics from message-loading time and move it to rendering time.
But for now I can settle with a config-based solution since the message-loading time already reads from config.
Besides, the truncating logic doesn't look good on non-ascii string. I'll wait for merging #92 first, which introduces wide-char-aware slicing.
from sup.
I think snippets are stored in the index, while re-calculating a snippet would require the message source to be read again. Worth taking into consideration. Upping the snippet length to say 250 chars and then using a screen-size dependent length at render time could be an option.
from sup.
Closing, no activity.
from sup.
Related Issues (20)
- "wrong id called on nil" (RuntimeError)
- Exception while importing mail HOT 1
- unknown encoding causes crash HOT 4
- ERROR: oh crap, an exception HOT 1
- undefined method `encode' for URI:Module HOT 5
- Send mail? HOT 1
- Cant get sup properly installed or running, what am i missing? HOT 3
- sup-mail_1.0.orig.tar.gz HOT 1
- ERROR: oh crap, an exception HOT 2
- Emails without Date: header are always on top
- Wiki link to home page HOT 1
- RFC6532 support ("international email"): UTF-8 in headers, message/global MIME type
- sup-sync-back-maildir crashes: tried to create Proc object without a block (ArgumentError) HOT 1
- Login with Outlook / Office 365 Mail HOT 2
- Missing `mime/types` dependency in Debian Bullseye HOT 2
- just hitting 'j' to move through 40k messages and the whole program crashed HOT 3
- Sup on M1, M2 Mac / Apple Silicon HOT 15
- XDG_CONFIG_HOME
- Config Issue HOT 1
- Exception encountered on first run HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sup.