Skip to content
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

Message delivery notification #4343

Merged
merged 1 commit into from Jan 14, 2021
Merged

Message delivery notification #4343

merged 1 commit into from Jan 14, 2021

Conversation

kesselb
Copy link
Contributor

@kesselb kesselb commented Jan 12, 2021

Fix #1467

Compose a new message

image

Message with mdn request

image

lib/Controller/MessagesController.php Outdated Show resolved Hide resolved
lib/Controller/MessagesController.php Outdated Show resolved Hide resolved
@@ -560,6 +564,10 @@ public function findIdsByQuery(Mailbox $mailbox, SearchQuery $query, ?int $limit
}
}

if (isset($flags[Horde_Imap_Client::FLAG_MDNSENT])) {
$select->andWhere($qb->expr()->eq('flag_mdnsent', $qb->createNamedParameter('flag_mdnsent', IQueryBuilder::PARAM_BOOL)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add this flag to the array above at L550-558?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's just about the leading $ then we can maybe add 'mdnsent', right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lib/Model/IMAPMessage.php Outdated Show resolved Hide resolved
lib/Model/NewMessageData.php Outdated Show resolved Hide resolved
src/components/MdnRequest.vue Outdated Show resolved Hide resolved
src/components/MdnRequest.vue Outdated Show resolved Hide resolved
@ChristophWurst
Copy link
Member

ChristophWurst commented Jan 13, 2021

Works nicely!

Some smaller things

  • Let's update the envelope/message's flag on the client-side immediately. If you navigate to another message right now after sending the confirmation and than back to that message you see the button again, simply because the flag isn't updated yet by the background sync.

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise you will always see the button after a page refresh or navigating away any back 😉

src/components/MdnRequest.vue Outdated Show resolved Hide resolved
src/components/MdnRequest.vue Outdated Show resolved Hide resolved
@kesselb kesselb marked this pull request as ready for review January 13, 2021 17:40
@ChristophWurst ChristophWurst added this to the v1.8 milestone Jan 13, 2021
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please increase the version to beta-3 in info.xml

src/components/MessagePlainTextBody.vue Outdated Show resolved Hide resolved
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, didn't give this the final test but will do so soon!

@ChristophWurst ChristophWurst changed the title Mdn Message delivery notification Jan 14, 2021
Copy link
Contributor

@GretaD GretaD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works great.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
@ChristophWurst ChristophWurst merged commit 94c9fdb into master Jan 14, 2021
@ChristophWurst ChristophWurst deleted the enh/1467/mdn branch January 14, 2021 14:23
@ChristophWurst ChristophWurst mentioned this pull request Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

read confirmation & acknowledgment of receipt
3 participants