Projects
Wiki     Timeline     Roadmap     Browse Source     View Tickets     New Ticket     Search

Ticket #457 (closed Defect: Software changed)

Opened 23 months ago

Last modified 5 months ago

regression: Reply does not work because of urn:uuid usernames anymore

Reported by: mail@… Owned by: sagen@…
Priority: 5: Not set Milestone:
Component: Calendar Server Severity: Crash/data loss
Keywords: Cc: kurt.leubner@…
Port:

Description

Hi,

I missed several response mails to meeting invitations. Looking into this I found that this is because the organizer now is stored as urn:uuid.

2011-07-03 00:44:56+0200 [-] [mailgateway] 2011-07-03 00:44:56+0200 [IMAP4DownloadProtocol,client] [twistedcaldav.mail.MailHandler#error] Mail gateway didn't find an icalendar attachment in message <4E0F9F53.3000205@derklecks.de>
2011-07-03 00:44:56+0200 [-] [mailgateway] 2011-07-03 00:44:56+0200 [IMAP4DownloadProtocol,client] [twistedcaldav.mail.MailHandler#error] looking at organizer urn:uuid:272c501f-366c-517d-8af3-44c37777ef83
2011-07-03 00:44:56+0200 [-] [mailgateway] 2011-07-03 00:44:56+0200 [IMAP4DownloadProtocol,client] [twistedcaldav.mail.MailHandler#error] Don't have an email address for the organizer; ignoring reply.

this is caused by the following code in mail.py

           result = self.db.lookupByToken(token)
        if result is None:
            # This isn't a token we recognize
            self.log_error("Mail gateway found a token (%s) but didn't recognize it in message %s" % (token, msg['Message-ID']))
            return

        organizer, attendee, icaluid = result
        organizer = str(organizer)
        attendee = str(attendee)
        icaluid = str(icaluid)

        for part in msg.walk():
            if part.get_content_type() == "text/calendar":
                calBody = part.get_payload(decode=True)
                break
        else:
            # No icalendar attachment
            self.log_error("Mail gateway didn't find an icalendar attachment in message %s" % (msg['Message-ID'],))
            self.log_error("looking at organizer %s" % (organizer,))
            if not organizer.startswith("mailto:"):

which checks if the organizer starts with urn:uuid ....

The reply emails are lost and therefore data loss occurs.

Change History

comment:1 Changed 23 months ago by sagen@…

  • Owner changed from wsanchez@… to sagen@…

Right, the tokens DB has the organizer's CUA in urn: form and not mailto: any longer. mail.py needs to look up the mailto: form so the reply can be forwarded. This only happens in the case where the attendee's calendar client didn't include an actual IMIP text/calendar attachment though.

comment:2 Changed 23 months ago by sagen@…

  • radar set to 9723245

comment:3 Changed 23 months ago by mail@…

is there a fix for this?

This happens every time if the receiver replies via a plain mail client, which at least in my setup is really common...

comment:4 Changed 23 months ago by sagen@…

  • Status changed from new to closed
  • Resolution set to Software changed

comment:5 Changed 23 months ago by mail@…

thanks this works.

comment:6 Changed 5 months ago by kurt.leubner@…

  • Cc kurt.leubner@… added

Cc Me!

comment:7 Changed 5 months ago by kurt.leubner@…

  • Cc kurt.leubner@… removed

Cc Me!

comment:8 Changed 5 months ago by kurt.leubner@…

  • Cc kurt.leubner@… added

Cc Me!

Note: See TracTickets for help on using tickets.