-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(backend): add scheduled send functionality #1091
base: master
Are you sure you want to change the base?
feat(backend): add scheduled send functionality #1091
Conversation
7aaffb2
to
0c58a6a
Compare
Will this work with JMAP as well? |
0c58a6a
to
0aef136
Compare
Yes, anything we add for IMAP, we should check JMAP support as well. Overall, it is built on top of IMAP, so it should work but please check if the new Scheduled folder is OK for JMAP. Overall, the code is good but I have one concern - it only sends out while you are actively using Cypht and it seems to warn of unsent/scheduled messages each time you leave a page (onbeforeunload). That would be annoying for the end user. I believe this comment #576 (comment) proposes using sendAt support from jmap servers or scheduled send - if it is supported, we use it, if not, we fallback to a more annoying option. At any rate, it should be configurable. This could be fully-supported in the Cypht-Tiki integration where there could be a Tiki command run periodically in the scheduler that checks and sends scheduled messages. |
@kroky I added a commit to fix issue concerning onbeforeunload event and also add the option to change schedule time or send the message immediately. Can you check please. |
36599a8
to
2da4ff4
Compare
@amaninyumu1 If you need help with JMAP, please reach out to @Shadow243 as he set up a JMAP server for testing. |
45374ae
to
bdf9d5d
Compare
cf0574d
to
af1c185
Compare
@amaninyumu1 "This branch has conflicts that must be resolved" |
141f8d9
to
16293f5
Compare
16293f5
to
41c9b95
Compare
41c9b95
to
3fb7802
Compare
@amaninyumu1 This branch has conflicts that must be resolved |
3fb7802
to
e725bcc
Compare
Hello @marclaporte , @kroky I resolved the conflicts. please review |
There are still conflicts and I believe big part of the reason is #1266 - @jacob-js , can you check if some handlers in this PR need to be updated according to the router changes you did in 1266? |
Hello @marclaporte all tests pass successfully |
I am fine with the changes. If @mercihabam approves as well, we can merge. |
Please pay attention to the above statement. Have a commit for each thread you resolve, that way, it is easy to keep up with the scope of the changes you do. |
439801a
to
5dc5670
Compare
@amaninyumu1 you need to correct the commit history before I give you any other round of review. |
23e01d4
to
5fef6a2
Compare
Hello @mercihabam I merged the two commits that were before to make one. Maybe it's me who doesn't understand the maneuver to follow. please guide me |
@amaninyumu1 I did not ask you to combine the commits into one. I'm telling you to do the opposite. Please re-read carefully the related comments! |
5fef6a2
to
ea33598
Compare
I understand I misunderstood the comment. To be honest about the commit history, I don't know how to go about it. please guide me. THANKS |
ea33598
to
6e7357e
Compare
Hello @mercihabam , @kroky . please merge this PR if there is anything to fix we can do it later, we risk returning to square one with this presence repeating conflicts |
@amaninyumu1, I'm sorry, but we cannot merge this as long as it still contains poor code that risks introducing regressions. |
if you can't merge this while it still contains poor code that risks introducing regressions. I'm ready to fix that for the PR to merge. But when you say that it's the commit history that blocks evolution... I don't understand that |
Please see: #1091 (comment) The current situation is causing more work for the reviewers because they need to re-review everything instesd of just your latest modifications. Once everything is done, there will be the option to squash commits. |
Okay I understand @marclaporte , soon I will make a commit for each change. because going back to the old history risks losing the current changes. |
issue
issue