Page MenuHomekolab.org

MessageNew events on shared folders are not logged by egara
Open, NormalPublic3 Story Points

Description

I have a shared email folder "Collected" which is configured to receive messages at collected@example.org. Messages are delivery via lmtp into this mailbox. Cyrus triggers the event notification below but egara fails to compose a valid folder path for metadata lookups and crashes with

.

{
    "event": "MessageNew",
    "bodyStructure": "(\"TEXT\" \"PLAIN\" (\"CHARSET\" \"US-ASCII\" \"FORMAT\" \"flowed\") NIL NIL \"7BIT\" 55 3 NIL NIL NIL NIL)",
    "messageSize": 929,
    "messages": 3,
    "modseq": 23,
    "pid": 13466,
    "service": "lmtpunix",
    "timestamp": "2015-04-20T16:22:39.019+02:00",
    "uidnext": 4,
    "uri": "imap://kolab34.example.org/Shared%20Folders/shared/Collected%40example.org;UIDVALIDITY=1429518712/;UID=3",
    "user": "",
    "vnd.cmu.envelope": "(\"Mon, 20 Apr 2015 16:22:30 +0200\" \"Fetch me in shared folder\" ((\"Thomas Bruederli\" NIL \"thomas.bruederli\" \"example.org\")) ((NIL NIL \"thomas.bruederli\" \"example.org\")) ((\"Thomas Bruederli\" NIL \"thomas.bruederli\" \"example.org\")) ((NIL NIL \"collected\" \"example.org\")) NIL NIL NIL \"<97ef0c843de1178c82373f085cbc68c9@example.org>\")",
    "vnd.cmu.midset": [
        "<97ef0c843de1178c82373f085cbc68c9@example.org>"
    ],
    "vnd.cmu.sessionId": "kolab34.example.org-13466-1429539759-1-1229831671433373573",
    "vnd.cmu.unseenMessages": 3
}

Details

Ticket Type
Task

Event Timeline

bruederli updated the task description. (Show Details)
bruederli raised the priority of this task from to High.
bruederli assigned this task to seigo.
bruederli added a project: Egara.
bruederli changed Ticket Type from Task to Task.
bruederli added a subscriber: bruederli.
bruederli updated the task description. (Show Details)Apr 20 2015, 5:09 PM
schum added a subscriber: schum.Apr 21 2015, 3:05 AM

@petersen, is this eligible for inclusion with #sprint_server_201518?

petersen added a project: Restricted Project.Apr 27 2015, 11:34 AM

imap://kolab34.example.org/Shared%20Folders/shared/Collected%40example.org

Does cyrus always add the domain name to shared folders? ... it almost looks like the URI cyrus is generating is using the sent email address rather than the destination folder, but it is hard to tell since the name of the shared folder and the email address are the same in this test case.

Related note: the crash in egara is intentional given what occurs. It is getting a "no such mailbox" and so it refuses to process the notification (by crashing the worker process). This will happen a few times (retries) and then the notification will eventually get archived as not processable.

Shared Folders/shared/Collected@example.org seems to have a mistaken shared namespace prefix, and the uri parameter should be shared/Collected@example.org.

vanmeeuwen lowered the priority of this task from High to 60.Apr 28 2015, 11:44 AM

Everything's medium until product owners say different.

vanmeeuwen edited projects, added Sprint Server 201522; removed Restricted Project.May 22 2015, 9:34 AM

I think maybe 3 story points because it is just validation of the work in Cyrus IMAP on which this / with which this crash should have been resolved.

vanmeeuwen edited a custom field.May 22 2015, 9:37 AM
seigo moved this task from Backlog to Doing on the Sprint Server 201522 board.Jun 1 2015, 11:09 AM
petersen added a project: Restricted Project.Dec 10 2015, 3:19 PM
vanmeeuwen lowered the priority of this task from 60 to Normal.Mar 28 2019, 8:13 AM