Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
PyYIMt out dated?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 71 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Shawn S  
View profile  
 More options Sep 28, 8:49 pm
From: Shawn S <una...@gmail.com>
Date: Mon, 28 Sep 2009 17:49:50 -0700 (PDT)
Local: Mon, Sep 28 2009 8:49 pm
Subject: PyYIMt out dated?
A few hours ago (perhaps around midnight UTC, but that's a guess),
Yahoo started failing on connect with the following (logged) message.

<body xmlns="jabber:client">You are using an older version of Yahoo!
Messenger that is no longer supported. Please upgrade by downloading
the newest version by going to: http://messenger.yahoo.com/download.php</body>

Does anyone have a notion how much needs to be changed to have the
Transport use (or at least pretend to use) a new version of the
protocol?

    Shawn


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikita V. Youshchenko  
View profile  
 More options Sep 29, 1:26 am
From: "Nikita V. Youshchenko" <yo...@cs.msu.su>
Date: Tue, 29 Sep 2009 09:26:58 +0400
Local: Tues, Sep 29 2009 1:26 am
Subject: Re: [py-transports] PyYIMt out dated?

> A few hours ago (perhaps around midnight UTC, but that's a guess),
> Yahoo started failing on connect with the following (logged) message.

Same here.

Taking the latest git snapshot from http://xmpppy.sourceforge.net/yahoo/
does not help.

Looks like yahoo transport is useless until new protocol support is
implemented :(


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ewan Marshall  
View profile  
 More options Sep 29, 6:45 am
From: Ewan Marshall <ewan...@googlemail.com>
Date: Tue, 29 Sep 2009 11:45:48 +0100
Local: Tues, Sep 29 2009 6:45 am
Subject: Re: [py-transports] Re: PyYIMt out dated?

Odd, it's working fine here...

Yahoo servers like to send out these messages on the use of any protocol
command that the other side doesn't implement.

Ewan Marshall
Geek by Nature, Linux by choice.

On 29/09/2009 06:26, Nikita V. Youshchenko wrote:

  signature.asc
< 1K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Reynolds  
View profile  
 More options Sep 29, 6:56 am
From: "Phil Reynolds" <emleym...@gmail.com>
Date: Tue, 29 Sep 2009 11:56:42 +0100
Local: Tues, Sep 29 2009 6:56 am
Subject: Re: [py-transports] Re: PyYIMt out dated?
Quoting "Ewan Marshall" <ewan...@googlemail.com>:

> Odd, it's working fine here...

> Yahoo servers like to send out these messages on the use of any protocol
> command that the other side doesn't implement.

Not working for me and no message. Connects for just a moment when tried.

Getting it working again could take a little working out. Of course,  
really I want it to work as well as the others do, but that can wait...

--
Phil Reynolds
mail: emleym...@gmail.com
GTalk/Jabber: emleym...@hallam.tinsleyviaduct.com

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikita V. Youshchenko  
View profile  
 More options Sep 29, 7:07 am
From: "Nikita V. Youshchenko" <yo...@cs.msu.su>
Date: Tue, 29 Sep 2009 15:07:21 +0400
Local: Tues, Sep 29 2009 7:07 am
Subject: Re: [py-transports] Re: PyYIMt out dated?

> Quoting "Ewan Marshall" <ewan...@googlemail.com>:
> > Odd, it's working fine here...

> > Yahoo servers like to send out these messages on the use of any
> > protocol command that the other side doesn't implement.

> Not working for me and no message. Connects for just a moment when
> tried.

> Getting it working again could take a little working out. Of course,
> really I want it to work as well as the others do, but that can wait...

Kopete (at least KDE3 one) also can't connect to Yahoo server here.

However some people are able to connect. This very looks similar to ICQ
stories.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
joeuser  
View profile  
 More options Sep 29, 4:01 pm
From: joeuser <l...@uark.edu>
Date: Tue, 29 Sep 2009 13:01:10 -0700 (PDT)
Local: Tues, Sep 29 2009 4:01 pm
Subject: Re: PyYIMt out dated?
I am also unable to connect to Yahoo services with PyYIMt,  CVS
version 1.73 2009/02/13, but with a different message when I try to
register with the Transport.  Is anyone else seeing this error?  It
says:

A remote server or service specified as part or all of the JID of the
intended recipient (or required to fulfill a request) could not be
contacted within a reasonable amount of time.
A remote server or service specified as part or all of the JID of the
intended recipient could not be contacted within a reasonable amount
of time.

On Sep 29, 12:26 am, "Nikita V. Youshchenko" <yo...@cs.msu.su> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Markley  
View profile  
 More options Sep 29, 8:13 pm
From: Mike Markley <mmark...@gmail.com>
Date: Tue, 29 Sep 2009 17:13:59 -0700 (PDT)
Local: Tues, Sep 29 2009 8:13 pm
Subject: Re: PyYIMt out dated?
If I strace the transport, I see both XMPP messages (my client doesn't
seem to pass them along in a form that I can view directly). It then
appears that the socket is closed by Yahoo.

On Sep 29, 1:01 pm, joeuser <l...@uark.edu> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Norman Rasmussen  
View profile  
 More options Sep 30, 12:02 am
From: Norman Rasmussen <norm...@gmail.com>
Date: Tue, 29 Sep 2009 21:02:41 -0700
Local: Wed, Sep 30 2009 12:02 am
Subject: Re: [py-transports] Re: PyYIMt out dated?

Yea, I was warned a while ago by someone who knew about yahoo's server
upgrade that the servers running the older protocol were going away.  I
haven't had time to see what needs changing, and no one has posted any
patches that I know about.  Additionally most people I need to IM with are
on a jabber capable network, so I don't bother to log into yahoo much
anymore.

If anyone produces a patch to make the transport work with the latest
servers, send it my way, and I'll apply it to git (or I'll just give you git
commit access)

On Tue, Sep 29, 2009 at 4:07 AM, Nikita V. Youshchenko <yo...@cs.msu.su>wrote:

--
- Norman Rasmussen
- Email: nor...@rasmussen.co.za
- Home page: http://norman.rasmussen.co.za/

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
wik  
View profile  
 More options Sep 30, 3:03 am
From: wik <w...@osmonitoring.com>
Date: Wed, 30 Sep 2009 00:03:12 -0700 (PDT)
Local: Wed, Sep 30 2009 3:03 am
Subject: Re: PyYIMt out dated?

Hello,

I had exactly same symptoms as Phil mentioned, i.e. connects for just
a moment...

And here is quick workaround I found:
# in ylib.py, line #30,
# replace:
hostlist = socket.gethostbyname_ex('scs.msg.yahoo.com')[2]
# to:
hostlist = socket.gethostbyname_ex('cn.scs.msg.yahoo.com')[2]

NOTE:
I am using most recent version from the http://github.com/normanr/yahoo-transport

Thanks.
p.s.
Not sure how long this trick will work :)

On Sep 29, 1:56 pm, "Phil Reynolds" <emleym...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nikita V. Youshchenko  
View profile  
 More options Sep 30, 5:43 am
From: "Nikita V. Youshchenko" <yo...@cs.msu.su>
Date: Wed, 30 Sep 2009 13:43:28 +0400
Local: Wed, Sep 30 2009 5:43 am
Subject: Re: [py-transports] Re: PyYIMt out dated?

> And here is quick workaround I found:
> # in ylib.py, line #30,
> # replace:
> hostlist = socket.gethostbyname_ex('scs.msg.yahoo.com')[2]
> # to:
> hostlist = socket.gethostbyname_ex('cn.scs.msg.yahoo.com')[2]

This worked for me as well, thanks.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Schnoebelen  
View profile  
 More options Sep 30, 10:39 am
From: goo...@eric.cirr.com (Eric Schnoebelen)
Date: Wed, 30 Sep 2009 09:39:36 -0500
Local: Wed, Sep 30 2009 10:39 am
Subject: Re: [py-transports] Re: PyYIMt out dated?

"Nikita V. Youshchenko" writes:

- > And here is quick workaround I found:
- > # in ylib.py, line #30,
- > # replace:
- > hostlist = socket.gethostbyname_ex('scs.msg.yahoo.com')[2]
- > # to:
- > hostlist = socket.gethostbyname_ex('cn.scs.msg.yahoo.com')[2]
-
- This worked for me as well, thanks.

Beware, that connects to a Yahoo server in China. (as might be
suggested by the hostname.)

--
Eric Schnoebelen                e...@cirr.com         http://www.cirr.com
Fourth Law of Thermodynamics, the Law of Conservation of Bureaucracy:
        For every practical engineering solution, there is an equal and
          contradictory obstacle put forward by a regulator because the
            politics cannot be overcome. -- Adam H. Kerman


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
skeeziks  
View profile  
 More options Sep 30, 11:04 am
From: skeeziks <t...@stoo.org>
Date: Wed, 30 Sep 2009 08:04:31 -0700 (PDT)
Local: Wed, Sep 30 2009 11:04 am
Subject: Re: PyYIMt out dated?
Norman,

On Sep 30, 12:02 am, Norman Rasmussen <norm...@gmail.com> wrote:

> If anyone produces a patch to make the transport work with the latest
> servers, send it my way, and I'll apply it to git (or I'll just give you git
> commit access)

I'm working on a patch right now.  I've already succeeded in
authenticating using version 16 of the protocol (the HTTPS method).
However, now that I'm advertising support for the new protocol in the
client I am receiving message types that pyyimt doesn't yet know how
to handle.  So far I've seen types 190, 239, 240, and 241, and they
appear to be related to buddy's online status and possibly the roster.

I'll keep you guys updated with my progress.

--
-TimS

Tim Stewart
Stoo Research
t...@stoo.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
unayok  
View profile  
 More options Sep 30, 2:15 pm
From: unayok <una...@gmail.com>
Date: Wed, 30 Sep 2009 11:15:18 -0700 (PDT)
Local: Wed, Sep 30 2009 2:15 pm
Subject: Re: PyYIMt out dated?
On Sep 30, 11:04 am, skeeziks <t...@stoo.org> wrote:

> I'm working on a patch right now.  I've already succeeded in
> authenticating using version 16 of the protocol (the HTTPS method).
> However, now that I'm advertising support for the new protocol in the
> client I am receiving message types that pyyimt doesn't yet know how
> to handle.  So far I've seen types 190, 239, 240, and 241, and they
> appear to be related to buddy's online status and possibly the roster.

> I'll keep you guys updated with my progress.

This sounds great, Tim.  I'll offer my assistance though I don't know
much about the yahoo protocol itself.  I have delved into the
transport code, so I do have a slight grasp of it.  Definitely willing
to test anything whole or partial you might end up with.

    Shawn


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Stewart  
View profile  
 More options Sep 30, 2:49 pm
From: Tim Stewart <t...@stoo.org>
Date: Wed, 30 Sep 2009 14:49:56 -0400
Local: Wed, Sep 30 2009 2:49 pm
Subject: Re: [py-transports] Re: PyYIMt out dated?
Hello,

On Sep 30, 2009, at 2:15 PM, unayok wrote:

> On Sep 30, 11:04 am, skeeziks <t...@stoo.org> wrote:
>> I'm working on a patch right now.  I've already succeeded in
>> authenticating using version 16 of the protocol (the HTTPS method).
>> However, now that I'm advertising support for the new protocol in the
>> client I am receiving message types that pyyimt doesn't yet know how
>> to handle.  So far I've seen types 190, 239, 240, and 241, and they
>> appear to be related to buddy's online status and possibly the  
>> roster.

>> I'll keep you guys updated with my progress.

> This sounds great, Tim.  I'll offer my assistance though I don't know
> much about the yahoo protocol itself.  I have delved into the
> transport code, so I do have a slight grasp of it.  Definitely willing
> to test anything whole or partial you might end up with.

I've finished with the initial version of the patch and it seems to be  
working within my test environment.  I'm able to sign on, the roster  
gets updated, I can send and receive messages, and buddy status  
changes seem to work.

I'll package up what I have and send out a patch against the latest  
version in source control.

Stay tuned...

--
-TimS

Tim Stewart
Stoo Research
t...@stoo.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Stewart  
View profile  
 More options Sep 30, 4:43 pm
From: Tim Stewart <t...@stoo.org>
Date: Wed, 30 Sep 2009 16:43:08 -0400
Local: Wed, Sep 30 2009 4:43 pm
Subject: Re: [py-transports] Re: PyYIMt out dated?
Hello all,

Here's a patch against the latest versions of ylib.py and  
yahoo_helper.py.  This is enough to make my transport behave in the  
tests I've run; hopefully it's complete enough to work for everyone.  
Please test it and see how it works for you.

I hope my mail client won't botch this...

Good luck!

--
-TimS

Tim Stewart
Stoo Research
t...@stoo.org

diff --git a/yahoo-transport/yahoo_helpers.py b/yahoo-transport/
yahoo_helpers.py
index 2760c08..61a89b6 100644
--- a/yahoo-transport/yahoo_helpers.py
+++ b/yahoo-transport/yahoo_helpers.py
@@ -46,6 +46,7 @@ Y_chtmsg = 168      # Chat Message
  Y_avatar = 188      # Avatar Image update
  Y_statusupdate = 198 #update of status (like away/back etc)
  Y_advstatusupdate = 199 #update of advanced status (like avatar etc)
+Y_statusupdate15 = 240 # Protocol 15: status update (away/back, etc.)
  Y_cloud = 241       # 0 = Yahoo!, 2 = LiveID (WLM)

  Yahoosep = '\xc0\x80'
diff --git a/yahoo-transport/ylib.py b/yahoo-transport/ylib.py
index 9731057..fccdb24 100644
--- a/yahoo-transport/ylib.py
+++ b/yahoo-transport/ylib.py
@@ -7,6 +7,9 @@ import socket, time
  import avatar
  import re
  import random
+import httplib
+import md5
+import base64

  def printpacket(packet):
@@ -30,7 +33,7 @@ class YahooCon:
      hostlist = socket.gethostbyname_ex('scs.msg.yahoo.com')[2]
      #hostlist =  
['cs1
.msg.dcn.yahoo.com
','cs2
.msg.dcn.yahoo.com
','cs3
.msg.dcn.yahoo.com
','cs4
.msg.dcn.yahoo.com
','cs5
.msg.dcn.yahoo.com
','cs6
.msg.dcn.yahoo.com
','cs7
.msg.dcn.yahoo.com
','cs8
.msg.dcn.yahoo.com
','cs9
.msg.dcn.yahoo.com
','cs10
.msg.dcn.yahoo.com
','cs11
.msg.dcn.yahoo.com
','cs12
.msg.dcn.yahoo.com
','cs13
.msg.dcn.yahoo.com
','cs14
.msg.dcn.yahoo.com
','cs15
.msg.dcn.yahoo.com
','cs16
.msg.dcn.yahoo.com
','cs17
.msg.dcn.yahoo.com
','cs18
.msg.dcn.yahoo.com
','cs40
.msg.dcn.yahoo.com
','cs41
.msg.dcn.yahoo.com
','cs42
.msg.dcn.yahoo.com
','cs43
.msg.dcn.yahoo.com
','cs44
.msg.dcn.yahoo.com
','cs45
.msg.dcn.yahoo.com
','cs46
.msg.dcn.yahoo.com
','cs50
.msg.dcn.yahoo.com','cs51.msg.dcn.yahoo.com','cs52.msg.dcn.yahoo.com']
      port = 5050
-    version = 0x000c0000
+    version = 0x00100000
      sock = None
      # a dictionary of groups and members
      buddylist = {}
@@ -111,8 +114,74 @@ class YahooCon:
          session = hdr[5]
          self.session=session
          chalstr = pay[0][94]
-        (crypt1, crypt2) = YahooMD5.curphoo_process_auth
(self.username,self.password,chalstr)
-        npay = ymsg_mkargu({6:crypt1,96:crypt2,0:self.username,
1:self.username,2:self.username,135:'5,6,0,1358',148:'360'})
+
+        # Do HTTPS login.
+        h = httplib.HTTPSConnection('login.yahoo.com')
+        h.request('GET', '/config/pwtoken_get?src=ymsgr&ts=&login=
%s&passwd=%s&chal=%s' % (self.username, self.password, chalstr))
+        resp = h.getresponse().read().splitlines()
+        code = resp[0]
+        if code != '0':
+            # Interpret login problems.  These should broken out into  
individual conditionals and given
+            # more specific messages in yahoo.py.
+            if code == '100' or code == '1212' or code == '1235':
+                # Username or password is missing (100), username or  
password is incorrect (1212),
+                # or username does not exist (1235).
+                if self.handlers.has_key('loginfail'):
+                    self.handlers['loginfail'](self,'badpassword')
+                return None
+
+            elif code == '1013':
+                # Username contains @yahoo.com or similar which needs  
removing.
+                if self.handlers.has_key('loginfail'):
+                    self.handlers['loginfail'](self,'badusername')
+                return None
+
+            elif code == '1213' or code == '1214' or code == '1236'  
or code == '1218':
+                # Security lock on account due to failed login  
attempts (1213 and 1236), general security
+                # lock (1214), or account deactivated by Yahoo! (1218).
+                if self.handlers.has_key('loginfail'):
+                    self.handlers['loginfail'](self,'locked')
+                return None
+
+            else:
+                # Other error not listed.
+                if self.handlers.has_key('loginfail'):
+                    self.handlers['loginfail'](self)
+                return None
+
+        # No error in code, so get remaining fields.
+        ymsgr = resp[1][resp[1].index('=') + 1:]
+        partnerid = resp[2][resp[2].index('=') + 1:]
+        if self.dumpProtocol: print "HTTPS pwtoken_get response  
{code: %s, ymsgr: %s, partnerid: %s}" % (code, ymsgr, partnerid)
+
+        # Login successful, grab our crumb.
+        h.request('GET', '/config/pwtoken_login?src=ymsgr&ts=&token=
%s' % ymsgr)
+        resp = h.getresponse().read().splitlines()
+        code = resp[0]
+        crumb = resp[1][resp[1].index('=') + 1:]
+        y_crumb = resp[2][resp[2].index('=') + 1:]
+        t_crumb = resp[3][resp[3].index('=') + 1:]
+        validfor = resp[4][resp[4].index('=') + 1:]
+        if self.dumpProtocol: print "HTTPS pwtoken_login response  
{code: %s, crumb: %s, y_crumb: %s, t_crumb: %s, validfor: %s}" %  
(code, crumb, y_crumb, t_crumb, validfor)
+
+        # Calculate hash of crumb and challenge string.
+        mhash = md5.new()
+        mhash.update(crumb)
+        mhash.update(chalstr)
+        bhash = base64.encodestring(mhash.digest()).replace('+',  
'.').replace('/', '_').replace('=', '-').strip()
+
+        # Assemble response packet.
+        npay = ymsg_mkargu({
+            1:   self.username,
+            0:   self.username,
+            277: y_crumb,
+            278: t_crumb,
+            307: bhash,
+            244: '2097087',
+            2:   self.username,
+            2:   '1',
+            98:  'us',
+            135: '9.0.0.1389'})
          nhdr = ymsg_mkhdr(self.version,len(npay),Y_challenge,
0x5a55aa55,self.session)
          return nhdr+npay

@@ -224,6 +293,9 @@ class YahooCon:
                                          self.handlers['offline']
(self,pay[each][7])
                      if not self.resources.has_key(pay[each][7]) or  
self.resources[pay[each][7]] == []:
                          self.roster[pay[each][7]]=('unavailable',  
None, None)
+                        if self.handlers.has_key('offline'):
+                            self.handlers['offline'](self,pay[each][7])
+
          elif len(pay[0].keys()) == 0:
              if self.handlers.has_key('closed'):
                  self.handlers['closed'](self)
@@ -443,6 +515,76 @@ class YahooCon:
                  if self.handlers.has_key('roommessagefail'):
                      self.handlers['roommessagefail'](self, pay[0]
[109], pay[0][104], msg)

+    def ymsg_cloud(self, hdr, pay):
+        # Loop through the payload entries and pull out groups and  
buddy names.  The odd loop construct is to make
+        # sure the entries are parsed in order; I'm not convinced  
(yet) that dict's .values() will always iterate
+        # in the desired order.
+        group = 'Top Level'
+        i = 0
+        while pay.has_key(i):
+            entry = pay[i]
+            i = i + 1
+
+            # Entry is a group.
+            if entry.has_key(65):
+                group = entry[65]
+                self.buddylist[group] = []
+
+            # Entry is a buddy.
+            if entry.has_key(300) and entry.has_key(7):
+                buddy = entry[7]
+                self.buddylist[group].append(buddy)
+                if not self.roster.has_key(buddy):
+                    self.roster[buddy]=('unavailable',None, None)
+                if self.handlers.has_key('subscribe'):
+                    self.handlers['subscribe'](self, buddy, 'XXX Test  
message XXX')
+
+    def ymsg_statusupdate15(self, hdr, pay):
+        # If we're here then buddy is online in some sense.  Let's  
figure out how online they are.  This message may
+        # contain more than one buddy status (this seems to happen  
right after login).
+        for entry in pay.values():
+            if not entry.has_key(7):
+                continue
+
+            buddy = entry[7]
+            typ = int(entry[10])
+
+            # Grab status message, if any.
+            status = ''
+            if entry.has_key(19):
+                status = entry[19]
+
+            # Determine idle/away status.
+            away = 0
+            idle = 0
+            if typ > 0 and typ < 12:
+                away = 1
+            if entry.has_key(47) and int(entry[47]) > 0:
+                away = 1
+            if typ == 999:
+                idle = 1
+
+            # Update roster and presence.
+            if typ < 1000 and typ != 12:
+                # Buddy is online...
+                if away == 1:
+                    # ... but away.
+                    self.roster[buddy] = ('available', 'dnd', status)
+                elif idle == 1:
+                    # ... but idle.
+                    self.roster[buddy] = ('available', 'away', status)
+                else:
+                    # ... and not idle or away.
+                    self.roster[buddy] = ('available', None, status)
+
+                if self.handlers.has_key('online'):
+                    self.handlers['online'](self, buddy, '')
+            else:
+                # Buddy is offline.
+                self.roster[buddy] = ('unavailable', None, None)
+                if self.handlers.has_key('offline'):
+                    self.handlers['offline'](self, buddy)
+
      def ymsg_init(self):
          try:
              challenge = self.ymsg_send_challenge()
@@ -688,8 +830,9 @@ class YahooCon:
                  if s[3] == Y_chalreq:           #87
                      # give salt
                      challenge = self.ymsg_challenge(s,t)
-                    if self.dumpProtocol: printpacket(challenge)
-                    self.sock.send(challenge)
+              
...

read more »


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Stewart  
View profile  
 More options Sep 30, 4:49 pm
From: Tim Stewart <t...@stoo.org>
Date: Wed, 30 Sep 2009 16:49:32 -0400
Local: Wed, Sep 30 2009 4:49 pm
Subject: Re: [py-transports] Re: PyYIMt out dated?

Hello again.

I think the last mailing was botched.  I'll attach the file instead.

Good luck,

--
-TimS

Tim Stewart
Stoo Research
t...@stoo.org

  ymsg16.patch
9K Download

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Reynolds  
View profile  
 More options Sep 30, 6:13 pm
From: "Phil Reynolds" <emleym...@gmail.com>
Date: Wed, 30 Sep 2009 23:13:55 +0100
Local: Wed, Sep 30 2009 6:13 pm
Subject: Re: [py-transports] Re: PyYIMt out dated?
Quoting "Tim Stewart" <t...@stoo.org>:

> Hello again.

> I think the last mailing was botched.  I'll attach the file instead.

Just applied this - now I get a password error!

I will investigate further.

--
Phil Reynolds
mail: emleym...@gmail.com
GTalk/Jabber: emleym...@hallam.tinsleyviaduct.com

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Stewart  
View profile  
 More options Sep 30, 6:44 pm
From: Tim Stewart <t...@stoo.org>
Date: Wed, 30 Sep 2009 18:44:12 -0400
Local: Wed, Sep 30 2009 6:44 pm
Subject: Re: [py-transports] Re: PyYIMt out dated?
Phil,

On Sep 30, 2009, at 6:13 PM, Phil Reynolds wrote:

>> I think the last mailing was botched.  I'll attach the file instead.

> Just applied this - now I get a password error!

> I will investigate further.

Yes, please let me know what you find!

Was the error a stack trace of some sort, or just Yahoo telling you  
your password was incorrect?

--
-TimS

Tim Stewart
Stoo Research
t...@stoo.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Reynolds  
View profile  
 More options Sep 30, 6:49 pm
From: "Phil Reynolds" <emleym...@gmail.com>
Date: Wed, 30 Sep 2009 23:49:16 +0100
Local: Wed, Sep 30 2009 6:49 pm
Subject: Re: [py-transports] Re: PyYIMt out dated?
Quoting "Tim Stewart" <t...@stoo.org>:

> Was the error a stack trace of some sort, or just Yahoo telling you
> your password was incorrect?

The latter. It wouldn't take my password on site either.

Changed it and got site back but no messenger. Changed it again to one  
slightly less secure and all restored.

If ever we meet, I owe you one!

--
Phil Reynolds
mail: emleym...@gmail.com
GTalk/Jabber: emleym...@hallam.tinsleyviaduct.com

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Stewart  
View profile  
 More options Sep 30, 6:52 pm
From: Tim Stewart <t...@stoo.org>
Date: Wed, 30 Sep 2009 18:52:40 -0400
Local: Wed, Sep 30 2009 6:52 pm
Subject: Re: [py-transports] Re: PyYIMt out dated?
Phil,

On Sep 30, 2009, at 6:49 PM, Phil Reynolds wrote:

> Quoting "Tim Stewart" <t...@stoo.org>:

>> Was the error a stack trace of some sort, or just Yahoo telling you
>> your password was incorrect?

> The latter. It wouldn't take my password on site either.

> Changed it and got site back but no messenger. Changed it again to one
> slightly less secure and all restored.

Ah, glad to hear it worked!

> If ever we meet, I owe you one!

Hey, no worries.  I was very motivated by the many users at my company  
that use PyYIM-t every day :)

Cheers,

--
-TimS

Tim Stewart
Stoo Research
t...@stoo.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vishal  
View profile  
 More options Oct 1, 3:05 am
From: Vishal <sms...@gmail.com>
Date: Thu, 1 Oct 2009 00:05:05 -0700 (PDT)
Local: Thurs, Oct 1 2009 3:05 am
Subject: Re: PyYIMt out dated?
Hi Tim

I applied the patch and got the following:

Traceback (most recent call last):
  File "C:\yahoo-t-0.4\yahoo.py", line 18, in <module>
    import config, roomlist, xmlconfig, ylib
  File "C:\yahoo-t-0.4\ylib.py", line 151
    ymsgr = resp[1][resp[1].index('=')  1:]
                                        ^
SyntaxError: invalid syntax

Can you kindly suggest whats to be done?

Thanks

Vishal
On Oct 1, 3:52 am, Tim Stewart <t...@stoo.org> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Stewart  
View profile  
 More options Oct 1, 8:42 am
From: Tim Stewart <t...@stoo.org>
Date: Thu, 1 Oct 2009 08:42:55 -0400
Local: Thurs, Oct 1 2009 8:42 am
Subject: Re: [py-transports] Re: PyYIMt out dated?
Vishal,

On Oct 1, 2009, at 3:05 AM, Vishal wrote:

> I applied the patch and got the following:

> Traceback (most recent call last):
>  File "C:\yahoo-t-0.4\yahoo.py", line 18, in <module>
>    import config, roomlist, xmlconfig, ylib
>  File "C:\yahoo-t-0.4\ylib.py", line 151
>    ymsgr = resp[1][resp[1].index('=')  1:]
>                                        ^
> SyntaxError: invalid syntax

> Can you kindly suggest whats to be done?

Did you apply the version that I mailed out as an attachment?  I'm  
pretty sure that the one included inline in the mail is corrupt.

Also, were there any warnings during the patch run itself?

--
-TimS

Tim Stewart
Stoo Research
t...@stoo.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Stewart  
View profile  
 More options Oct 1, 8:46 am
From: Tim Stewart <t...@stoo.org>
Date: Thu, 1 Oct 2009 08:46:47 -0400
Local: Thurs, Oct 1 2009 8:46 am
Subject: Re: [py-transports] Re: PyYIMt out dated?
Hello all,

On Sep 30, 2009, at 4:49 PM, Tim Stewart wrote:

> I think the last mailing was botched.  I'll attach the file instead.

I've found a bug in my code that will occasionally crash an individual  
connection (not the whole transport).  I'll update with a new patch  
soon.

--
-TimS

Tim Stewart
Stoo Research
t...@stoo.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vishal  
View profile  
 More options Oct 1, 9:15 am
From: Vishal <sms...@gmail.com>
Date: Thu, 1 Oct 2009 06:15:08 -0700 (PDT)
Local: Thurs, Oct 1 2009 9:15 am
Subject: Re: PyYIMt out dated?
Hi Tim

Thanks for your inputs. I tried the emailed attatchment only. There
are no other warnings. Can you kindly email the excat patched
yahoo_helpers.py and ylib.py file so that i can just replace the
existing 2 files and test this out?

Thanks once again

Regards
Vishal

On Oct 1, 5:42 pm, Tim Stewart <t...@stoo.org> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Stewart  
View profile  
 More options Oct 1, 2:13 pm
From: Tim Stewart <t...@stoo.org>
Date: Thu, 1 Oct 2009 14:13:49 -0400
Local: Thurs, Oct 1 2009 2:13 pm
Subject: Re: [py-transports] Re: PyYIMt out dated?
Norman,

On Sep 30, 2009, at 12:02 AM, Norman Rasmussen wrote:

> ... snip ...

> If anyone produces a patch to make the transport work with the  
> latest servers, send it my way, and I'll apply it to git (or I'll  
> just give you git commit access)

I've found the GitHub page for yahoo-transport, but I've been tracking  
all of xmpppy's changes via CVS for some time now, including the yahoo-
transport subdirectory.

For both Git and CVS I see that the latest yahoo-transport change was  
``Added support for large buddies list fragmentation. Thanks to Donald  
Town,'' so it looks like Git and CVS are in sync.  Do you plan to  
retire the CVS version in the future?

The patch I wrote seems to be working well but I've got a new version  
coming that fixes an occasional error.  I'll send out the new one to  
the list once it's done.  Or, I could commit it directly if that's  
what you prefer.

--
-TimS

Tim Stewart
Stoo Research
t...@stoo.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 71   Newer >
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google