SourceForge has been redesigned. Learn more.
Close

#108 Yahoo -- Body empty

closed
nobody
None
5
2007-07-09
2006-11-11
Anonymous
No

I previously had problems with Yahoo and empty bodies.
I applied the patch submitted by patchomatic and it
resolved the issue for a while. Now, the problem has
surfaced again.

Has Yahoo made changes? Has anyone else noted this problem?

Discussion

  • Ted Heatherington

    Logged In: YES
    user_id=182461

    I've looked at an email here and it looks like the last
    "fix" is where it's broken. The last fix allowed:

    <div id="<<messageid>>" classid="clearfix"
    style=overflow:hidden;">

    as the message delimiter and (as of today), my "full
    message" only has:

    <div id="<<messageid>>"

    That is what the "old" script used, so just remove the
    latest version or make the older one "current".

    Ted

     
  • Ted Heatherington

    Logged In: YES
    user_id=182461

    slight error: no quotes for the message Id:

    <div id=messageid>

    There is no space before closing >, either. Message ID
    varies for each message.

     
  • Ari Sitnik

    Ari Sitnik - 2006-11-17

    Logged In: YES
    user_id=772318
    Originator: NO

    Ditto here - but with a twist: my yahoo.com account works well after the patch posted in the forums, but my yahoo.ca account does not. There was another suggestion in the forums that reversed the problem: fixed the yahoo.ca and "broke" the yahoo.com accounts!

     
  • Nobody/Anonymous

    Logged In: NO

    Didn't seem to work, sorry!

     
  • Ted Heatherington

    Logged In: YES
    user_id=182461
    Originator: NO

    #found,msg.text = match(page,"<div id=\"message\" class=\"clearfix\" style=\"overflow:hidden;\">(.*)</div>\s*<!-- END TOC -->")

    found,msg.text = match(page,"<div id=message\s*>(.*)</div>\s*<script>")
    if(!found)
    found,msg.text = match(page,"<div id=\"message\" class=\"clearfix\" style=\"overflow:hidden;\">(.*)</div>\s*<!-- END TOC -->")
    end

    This is working for me in both .CA and .COM of Yahoo - it alters the previous fix and tries both methods to find a body (I think the outer is the more common .COM, the inner is the .CA)

     
  • Donn

    Donn - 2006-11-21

    Logged In: YES
    user_id=1172456
    Originator: NO

    It all depends on the mail server you are getting your mail from. I have many yahoo accounts and only one of the gets empty message bodies. I ony have accounts on yahho.com. Here is a patch file that fixes the problem and adds a delete option. Used the delete option while checking out the changes.

    # patch file

    --- yahoo.script 2006-11-21 14:28:30.000000000 -0500
    +++ yahoo.script.new 2006-11-21 14:29:45.000000000 -0500
    @@ -68,6 +68,13 @@
    info.options["adjustIds"].value = false
    info.options["adjustIds"].label = "EXP: Adjust Message Ids"
    info.options["adjustIds"].description = "Remove changing part from message ids (experimental)"
    + # ==========
    + # added DWP 11/21/06
    + info.options["delete"].order = 5
    + info.options["delete"].value = true
    + info.options["delete"].label = "Delete Messages"
    + info.options["delete"].description = "Move the messages to the Tash Folder"
    + # ==========
    #--- german texts
    info.options["useHttps"].de.label = "HTTPS verwenden"
    info.options["useHttps"].de.description = "Für das Anmelden HTTPS anstatt HTTP verwenden"
    @@ -246,7 +253,29 @@
    msg.mimetype = "text/html"
    #--- now get the actual message (we use the encoding of the header instead of that of the page):
    status,page = get(msg.link,map(),map(),msg.charset)
    - found,msg.text = match(page,"<div id=message>(.*)</div>\s*<!-- END TOC -->")
    + # ==========
    + # Changed 11/21/2006 DWP
    + # Changed for us.f328.mail.yahoo.com also works for all others
    + # was getting empty message bodys, this is the line that was changed:
    + # Before:
    + # <div id=message>
    + # was changed to this
    + # <div id="message" class="clearfix" style="overflow:hidden;">
    + # seems to work on all my yahoo e-mail accounts (20 of them)
    + # found,msg.text = match(page,"<div id=message>(.*)</div>\s*<!-- END TOC -->")
    + # debug(true)
    + # below will work if all msg's that does not have the function
    + # in it, have not been able to find out what mail servers for
    + # yahoo does not add this.
    + if (!find(page,"function rmvScroll"))
    + found,msg.text = match(page,"<!-- type = text -->(.*)</div>\s*<!-- END TOC -->")
    + end
    + # this will work on all other yahoo mail srvers
    + if (find(page,"function rmvScroll"))
    + found,msg.text = match(page,"<!-- type = text -->(.*)</div>\n<script>")
    + end
    + # debug(false)
    + # ==========
    #-- get attachments
    msg.attachments = list()
    if (find(page,"<div\s+class=\"splittercontent\""))
    @@ -304,7 +333,14 @@
    end
    if (i > 0)
    mydelparams["DEL"] = "Delete"
    - status,page = post(mydellink,mydelparams)
    + # ==========
    + # added 11/21/06 DWP
    + # added the if and end, line that starts with status
    + # the same
    + if (info.options["delete"].value)
    + status,page = post(mydellink,mydelparams)
    + end
    + # ==========
    end
    end
    return true

    # end of patch

    If you hand add this watch the line wraps.

     
  • Donn

    Donn - 2006-11-21

    Logged In: YES
    user_id=1172456
    Originator: NO

    For the patch file yahoo.script.patch see item 1600676 in the patches area.

     
  • Nobody/Anonymous

    Logged In: NO

    I have the same problem. Where is the patch from patch-o-matic?

     
  • Nobody/Anonymous

    Logged In: NO

    Thank you dpike21. Unfortunately, I have tried 1000 ways from Sunday to get this patch applied to my Windows box and can't get it working. Sometimes I just break other things. Does anyone have a copy of what the modified script should look like? I simple cut and paste would save my day.

    Thanks in advance,

    Z

     
  • Martin Vlcek

    Martin Vlcek - 2007-06-24

    Logged In: YES
    user_id=1020004
    Originator: NO

    Script updated on home page (thanks to xordos).
    Use "update scripts".

     
  • Martin Vlcek

    Martin Vlcek - 2007-06-24
    • status: open --> pending
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.