Steve Ramage <[EMAIL PROTECTED]> writes:

> <message from="[EMAIL PROTECTED]" to="[EMAIL PROTECTED]" >
> <body>You have been invited into a groupchat on the legacy service. You
> must join this room to switch into groupchat mode [EMAIL PROTECTED]
> If you do not join this room you will not be able to participate in the
> groupchat, but you will still appear to have joined it to contacts on
> the MSN service.</body>
> <x xmlns="jabber:x:conference" jid="[EMAIL PROTECTED]" />
> </message>

By the way, it would be nice if this message were a "modern" MUC
invite, as in example 44 of JEP-0045.  That is, the 'from' attribute
of the message is the room instead of the inviter, and it also
contains:

<x xmlns='http://jabber.org/protocol/muc#user'>
   <invite from='[EMAIL PROTECTED]'/>
</x>

If you let the 'jabber:x:conference'-namespaced element stay, this
invite should work with both old and new clients.

Magnus
From [EMAIL PROTECTED]  Sun Sep  4 23:42:04 2005
From: [EMAIL PROTECTED] (Trejkaz)
Date: Sun Sep  4 23:42:57 2005
Subject: [py-transports] Patch for PyMSNt-0.10: Fixing the spool file
        renaming bug.
Message-ID: <[EMAIL PROTECTED]>

This (extremely simple) patch fixes the housekeeper so that it only replaces the
last % with a @.  Replacing both results in the illegal JID bug that terminates
the transport, which I mentioned the other day.

TX


--- src/housekeep.py.orig       Mon Sep  5 09:33:35 2005
+++ src/housekeep.py    Mon Sep  5 09:34:51 2005
@@ -60,7 +60,7 @@
        print "Checking spool files and stringprepping any if necessary...",

        for file in os.listdir(pre):
-               file = file.replace("%", "@").decode("utf-8")
+               file = "@".join(file.rsplit("%", 1)).decode("utf-8")
                filej = jid.JID(file).full()
                if(file != filej):
                        file = file.replace("@", "%")


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
From [EMAIL PROTECTED]  Mon Sep  5 08:41:39 2005
From: [EMAIL PROTECTED] (James Bunton)
Date: Mon Sep  5 08:41:41 2005
Subject: [py-transports] Patch for PyMSNt-0.10: Fixing the spool file
        renaming bug.
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

Thanks.

I've actually fixed this a different way. Could people please check out 
current CVS and make sure it works.

---

James



On 05/09/2005, at 9:42 AM, Trejkaz wrote:

> This (extremely simple) patch fixes the housekeeper so that it only 
> replaces the
> last % with a @.  Replacing both results in the illegal JID bug that 
> terminates
> the transport, which I mentioned the other day.
>
> TX
>
>
> --- src/housekeep.py.orig       Mon Sep  5 09:33:35 2005
> +++ src/housekeep.py    Mon Sep  5 09:34:51 2005
> @@ -60,7 +60,7 @@
>         print "Checking spool files and stringprepping any if 
> necessary...",
>
>         for file in os.listdir(pre):
> -               file = file.replace("%", "@").decode("utf-8")
> +               file = "@".join(file.rsplit("%", 1)).decode("utf-8")
>                 filej = jid.JID(file).full()
>                 if(file != filej):
>                         file = file.replace("@", "%")
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> _______________________________________________
> py-transports mailing list
> py-transports@blathersource.org
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>

Reply via email to