mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 13:05:53 +03:00
[GH-ISSUE #450] Coloring the messages in list to get a fast overview of the account they belong to #369
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#369
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @codiflow on GitHub (Jan 11, 2021).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/450
Originally assigned to: @jasonmunro on GitHub.
🗣 Suggestion
I'd like to have a fast overview if there are (important) mails from some of my accounts in my inbox. As I added 9 accounts its sometimes a bit messy in my inbox. To keep me informed it would be great to have a color attached to every smtp account which gets applied as a background (or marker or anything else) so see to which account the incoming mail belongs to.
As I'm firm with PHP, CSS and HTML I would implement this feature but first I wanted to ask, if there were feature requests like mine in the past or if theres an easier way to implement this. My plan was to add a seperate field to the IMAP servers with the color which is then used for this. So I can easily change this for every account if I need to.
I found this answer on a closed issue but I don't know where to apply this styling and if thats really what I had in mind: https://github.com/jasonmunro/cypht/issues/20#issuecomment-146524094
I would be happy to build this feature as I think this would improve my productivity a lot :-)
@marclaporte commented on GitHub (Jan 12, 2021):
This is a fantastic idea! I will use it!
A related idea: https://github.com/jasonmunro/cypht/issues/9 (I would add colors to messages from certain people)
Thanks!
@codiflow commented on GitHub (Jan 12, 2021):
For those who want a "fast fix" for that:
Every "message row" has the whole emailaddress / smtp account name set as css class name. So styling it in your browser is no big thing.
So just add this to have a red background on every email from that account for example:
.my\@mailaddress\.com { background-color: red }@codiflow commented on GitHub (Jan 12, 2021):
Using the Firefox addon Stylus this took me 5 minutes:
@marclaporte commented on GitHub (Jan 12, 2021):
Thank you @codiflow! This is a great quick workaround until we figure out a built-in solution.
@jasonmunro commented on GitHub (Jan 15, 2021):
This is a neat idea. @codiflow your solution is exactly how I was thinking we should code this up. We can create a new module set, and for each account you can pick background/foreground colors, and then we use the row classes you identified to apply the CSS rules. Should be a pretty easy module set to build.
@jasonmunro commented on GitHub (Jun 8, 2021):
Initial version of a "highlight" module set is pushed to master. I have not added it to the sample ini yet but you can enable it with:
modules[]=highlightsIt supports rules to alter background or text colors based on 3 sources (E-mail, RSS, Github) and within each you can setup per source limits (so just E-mail account foo for example, or E-mail accounts foo + bar), AND for E-mail you can also add a flag (unseen, flagged, etc). Finally each rule can also have the CSS !important flag set to force an override of a previously applied rule.
Just committed this and so far testing is good but it likely has some kinks to work out.
@marclaporte commented on GitHub (Feb 2, 2022):
For the record, here is the code: https://github.com/jasonmunro/cypht/tree/master/modules/highlights
@marclaporte commented on GitHub (Feb 2, 2022):
I saw this in another webmail client, and I liked it: A color for flagged messages.
@jasonmunro commented on GitHub (Feb 2, 2022):
well good thing the highlight module set already supports that :)
@marclaporte commented on GitHub (May 1, 2024):
This already exists:
