Skip to content

Commit 85955fd

Browse files
committed
fix(ews): compose error Uncaught Error: Call to undefined method Hm_EWS::supports_dsn()"
1 parent 01f3abd commit 85955fd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

modules/imap/hm-ews.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ public function get_capability() {
6161
return '';
6262
}
6363

64+
public function supports_dsn() {
65+
// For EWS, "receipt-like" behavior should use EWS flags instead:
66+
// - IsDeliveryReceiptRequested (already used in send_message)
67+
// - IsReadReceiptRequested (can be added similarly if needed)
68+
// TODO: If we decide to expose receipt options in the UI for EWS profiles,
69+
// map those UI controls to the EWS flags above and keep DSN disabled here
70+
// so that SMTP-specific DSN UI remains hidden for EWS connections.
71+
return false;
72+
}
73+
6474
public function get_folders($folder = null, $only_subscribed = false, $unsubscribed_folders = [], $with_input = false) {
6575
$result = [];
6676
if (empty($folder)) {

0 commit comments

Comments
 (0)