When receiving emails added via IMAP APPEND, an EmailDelivery push notification is not generated. This results in downstream clients not registering a notification for the new email (Bulwark mail), while other emails deliver a normal push notification.
In addition, servers that implement the “urn:ietf:params:jmap:mail”
capability MUST support pushing state changes for a type called
“EmailDelivery”. There are no methods to act on this type; it only
exists as part of the push mechanism. The state string for this MUST
change whenever a new Email is added to the store, but it SHOULD NOT
change upon any other change to the Email objects, for example, if
one is marked as read or deleted.
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
This confirms the suspicion. Let’s check the delivery.rs and import.rs/set.rs to compare which paths include EmailDelivery.
Based on the server source, this matches what’s happening. IMAP APPEND and JMAP Email/import both only broadcast a StateChange with the Email, Mailbox, and Thread types:
The EmailDelivery/EmailPush notification (used for the JMAP Email Push mechanism, which is what drives push clients like Bulwark) is only emitted from the SMTP local-delivery path, in deliver_message:
So messages added via IMAP APPEND (and also via JMAP Email/import) do update the Email state and will show up to IDLE/JMAP clients polling for state changes, but they do not trigger the dedicated EmailPush/EmailDelivery push event that mobile/push-notification clients rely on. This appears to be a gap relative to the RFC 8621 requirement you quoted, since the spec says the EmailDelivery state must change whenever a new Email is added to the store, regardless of how it arrived.
A human maintainer will need to confirm whether this is intended scope (EmailPush reserved for SMTP-delivered mail) or should be extended to cover IMAP APPEND and JMAP import as well.
This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.