Example #1
0
def go_to_compose(un="digsby01", password="******", **k):
    xsnaclog.debug_s('go_to_compose %s', k)
    t = X_SNAC(get_krbtgt2(un, password))
    #should check the type of the tlv to find the right one.
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    baseurl = 'https://my.screenname.aol.com/_cqr/login/login.psp?'
    from urllib import quote
    out = UrlQuery(baseurl,
                   authToken=authTok,
                   mcState='doAAMAuth',
                   sitedomain='sns.webmail.aol.com',
                   siteState=SiteState({},
                                       ver='2',
                                       ac='WS',
                                       at='SNS',
                                       ld='webmail.aol.com',
                                       rp=quote(UrlQuery(
                                           'mail/composemessage.aspx?', **k),
                                                safe=''),
                                       uv='AIM',
                                       lc='en-us'))
    import wx
    xsnaclog.debug_s('go_to_compose out: %r', out)
    wx.LaunchDefaultBrowser(out)
Example #2
0
def go_to_mail2(un="digsby01", password="******", remainder=''):
    t = X_SNAC(get_krbtgt2(un, password))
    #should check the type of the tlv to find the right one.
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    baseurl='https://my.screenname.aol.com/_cqr/login/login.psp?'
    out = UrlQuery(baseurl,authToken=authTok)
    import wx
    wx.LaunchDefaultBrowser(out+remainder)
Example #3
0
def go_to_mail2(un="digsby01",
                password="******",
                remainder=''):
    t = X_SNAC(get_krbtgt2(un, password))
    #should check the type of the tlv to find the right one.
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    baseurl = 'https://my.screenname.aol.com/_cqr/login/login.psp?'
    out = UrlQuery(baseurl, authToken=authTok)
    import wx
    wx.LaunchDefaultBrowser(out + remainder)
Example #4
0
def go_to_mail(un="digsby01", password="******",
               baseurl='https://my.screenname.aol.com/_cqr/login/login.psp?',
               sitedomain='sns.webmail.aol.com',
               OrigUrl='http://webmail.aol.com/Suite.aspx?'):
    OrigUrl = UrlQuery(OrigUrl, app='mail')
    t = X_SNAC(get_krbtgt2(un, password))
    mytlv = t.tokens[1]['main'];
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v));
    out = UrlQuery(baseurl,
                   sitedomain=sitedomain,
                   lang='en',
                   locale='us',
                   siteState='OrigUrl=' + OrigUrl,
                   mcState='doAAMAuth',
                   authToken=authTok);
    import wx
    wx.LaunchDefaultBrowser(out)
Example #5
0
def go_to_mail(un="digsby01",
               password="******",
               baseurl='https://my.screenname.aol.com/_cqr/login/login.psp?',
               sitedomain='sns.webmail.aol.com',
               OrigUrl='http://webmail.aol.com/Suite.aspx?'):
    OrigUrl = UrlQuery(OrigUrl, app='mail')
    t = X_SNAC(get_krbtgt2(un, password))
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    out = UrlQuery(baseurl,
                   sitedomain=sitedomain,
                   lang='en',
                   locale='us',
                   siteState='OrigUrl=' + OrigUrl,
                   mcState='doAAMAuth',
                   authToken=authTok)
    import wx
    wx.LaunchDefaultBrowser(out)
Example #6
0
def go_to_msg(un="digsby01", password="******", msg='18282583'):
    t = X_SNAC(get_krbtgt2(un, password))
    #should check the type of the tlv to find the right one.
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    baseurl='https://my.screenname.aol.com/_cqr/login/login.psp?'
    from urllib import quote
    out = UrlQuery(baseurl,authToken=authTok,
                   mcState='doAAMAuth',
                   sitedomain='sns.webmail.aol.com',
                   lang='en',
                   locale='us',
                   siteState='ver:2|ac:WS|at:SNS|ld:webmail.aol.com|rp:' +
                   quote(UrlQuery('Lite/MsgRead.aspx?',
                         dict(folder='Inbox',uid='1.' +msg, seq='1', start='0')), safe='')
                   +'|uv:AIM|lc:en-us')
    import wx
    wx.LaunchDefaultBrowser(out)
Example #7
0
def go_to_compose(un="digsby01", password="******", **k):
    xsnaclog.debug_s('go_to_compose %s', k)
    t = X_SNAC(get_krbtgt2(un, password))
    #should check the type of the tlv to find the right one.
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    baseurl='https://my.screenname.aol.com/_cqr/login/login.psp?'
    from urllib import quote
    out = UrlQuery(baseurl,authToken=authTok,
                   mcState='doAAMAuth',
                   sitedomain='sns.webmail.aol.com',
                   siteState=SiteState({},ver='2',
                                       ac='WS',
                                       at='SNS',
                                       ld='webmail.aol.com',
                                       rp=quote(UrlQuery('mail/composemessage.aspx?', **k), safe=''),
                                       uv='AIM',
                                       lc='en-us'))
    import wx
    xsnaclog.debug_s('go_to_compose out: %r', out)
    wx.LaunchDefaultBrowser(out)
Example #8
0
def go_to_msg(un="digsby01",
              password="******",
              msg='18282583'):
    t = X_SNAC(get_krbtgt2(un, password))
    #should check the type of the tlv to find the right one.
    mytlv = t.tokens[1]['main']
    authTok = base64.b64encode(tlv(mytlv.t, mytlv.v))
    baseurl = 'https://my.screenname.aol.com/_cqr/login/login.psp?'
    from urllib import quote
    out = UrlQuery(
        baseurl,
        authToken=authTok,
        mcState='doAAMAuth',
        sitedomain='sns.webmail.aol.com',
        lang='en',
        locale='us',
        siteState='ver:2|ac:WS|at:SNS|ld:webmail.aol.com|rp:' + quote(
            UrlQuery('Lite/MsgRead.aspx?',
                     dict(folder='Inbox', uid='1.' + msg, seq='1', start='0')),
            safe='') + '|uv:AIM|lc:en-us')
    import wx
    wx.LaunchDefaultBrowser(out)