mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 04:56:03 +03:00
[GH-ISSUE #398] Configurable custom actions (buttons) #330
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#330
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 @marclaporte on GitHub (May 6, 2020).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/398
Cypht has standard actions (delete, archive, etc.). Let's take this up a notch.
I do the same actions again and again. It would be nice to configure these actions. A bit like macros.
Part of the logic for filters: https://github.com/jasonmunro/cypht/issues/9 but manual trigger of actions.
Ex.:
Thanks!
@dumblob commented on GitHub (May 6, 2020):
@marclaporte you mean something like a button run now next to each filter chain?
@marclaporte commented on GitHub (May 14, 2020):
@dumblob: yes, that as well. Any set of actions really.
@dumblob commented on GitHub (May 14, 2020):
@marclaporte hm, I mean, having a button run now next to each filter is very easy to implement, but if there are any other actions (which? I think there do not exist any other meaningful actions except for sending emails), it'd get more complicated to implement.
@marclaporte commented on GitHub (May 14, 2020):
Maybe I am misunderstanding. Can you elaborate on "filter chain"?
"which?": This is a long term goal: Parse emails for structured data and move to a database (http://doc.tiki.org/Trackers). Imagine invoices by email that are added to the accounting system.
I would like a button to bounce an email back to sender, simulating a non existant account.
Some more ideas here:
http://james.apache.org/mailet/standard/mailet-report.html
For the short term, I want buttons like "move to accounting inbox", "move to accounting archive"
@marclaporte commented on GitHub (May 14, 2020):
Also, one of our goals is to support the use case of generic mailboxes like info@, support@, accountspayable@, etc. Please see: http://doc.tiki.org/Groupmail
Actions could be:
I realize a lot of this will go beyond the use case of standalone Cypht. Configurable buttons could have 10 possible actions in standalone and 20 when embedded within an app like Tiki. And sooner or later, other web apps will follow our footsteps for JMAP and programmable emails!
@dumblob commented on GitHub (May 15, 2020):
@marclaporte now I see what you mean. IMHO that has not much to do with Cypht, but rather with modules which Cypht already supports. Cypht itself has no need for such actions - they don't exist now, so there is no need for any buttons/... (i.e. no user interface).
But of course, you're free to write your own extension modules for Cypht and you'll get your buttons in the UI as well.
I doubt there is anything important to do in this front - Cypht is already quite extensible, so a generic support for "custom actions" is already baked in. You just need to get it moving by writing your very own modules (as the actions you mentioned are extremely specific and such module is IMHO not suited for inclusion in this repository).
Btw. "filter chains" is the "expected" outcome of https://github.com/jasonmunro/cypht/issues/9#issuecomment-623271697 - and my proposal here was to add one more button to trigger them manually in addition to triggering them automatically as soon as the user logs in and Cypht starts fetching new emails.
@marclaporte commented on GitHub (Sep 15, 2025):
I don't want to write and maintain custom code. I want to be able to add and modify these custom actions as I do for filters.
In all mail clients with filters, there are at least two parts:
So here we would add a new option for filtering (add as a "custom action")
And this would add custom action buttons in the interface, usable on one email or many (select some emails via checkboxes and the custom action buttons appear like for the "move" and "copy" actions).
Benefits: