Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Problem with stdlib/msgHdrUtils.js since TB 8 (or 9?)
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
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
rene  
View profile  
 More options Apr 22 2012, 1:52 pm
Newsgroups: mozilla.dev.apps.thunderbird
From: rene <mozilla-upd...@absorb.it>
Date: Sun, 22 Apr 2012 19:52:43 +0200
Local: Sun, Apr 22 2012 1:52 pm
Subject: Problem with stdlib/msgHdrUtils.js since TB 8 (or 9?)
Hi all,

I'm using msgHdrUtils to retrieve some headers in my extensions. They
worked up to TB8, from TB10 (upto TB14) they are broken.

The msgHdrUtils is going to retrieve the headers with onDataAvailable in
the StreamListener, the data gets streamed by
messageService.streamHeaders. With the current versions I don't get the
beginning of all the headers, it just misses about two and a half
headers in all mails and starts from there:

Example Original Header:
------------------------------------------------------------------
Return-path: <xx...@list.opennet-initiative.de>
Envelope-to: xx...@absorb.it
Received: from www.opennet-initiative.de ([46.4.52.124])
        by h1648405.stratoserver.net with esmtp (Exim 4.72)
        (envelope-from <xx...@list.opennet-initiative.de>)
        id 1SLgbO-0001ME-2V
        for xx...@absorb.it; Sat, 21 Apr 2012 22:08:21 +0200
eceived: from [127.0.0.1] (localhost [127.0.0.1])
        by www.opennet-initiative.de (Postfix) with ESMTP id 1B1CD26816B;
        Sat, 21 Apr 2012 22:08:07 +0200 (CEST)
...
------------------------------------------------------------------

Direkt Output from onDataAvailable:
------------------------------------------------------------------
tiative.de ([46.4.52.124])
        by h1648405.stratoserver.net with esmtp (Exim 4.72)
        (envelope-from <xx...@list.opennet-initiative.de>)
        id 1SLgbO-0001ME-2V
        for xx...@absorb.it; Sat, 21 Apr 2012 22:08:21 +0200
Received: from [127.0.0.1] (localhost [127.0.0.1])
        by www.xxxxx-initiative.de (Postfix) with ESMTP id 1B1CD26816B;
        Sat, 21 Apr 2012 22:08:07 +0200 (CEST)
------------------------------------------------------------------

Any idea what is going on? Any changes in the way headers should be
retrieved?

Nice regards,
Rene


 
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.
Jonathan Protzenko  
View profile  
 More options Apr 22 2012, 10:12 pm
Newsgroups: mozilla.dev.apps.thunderbird
From: Jonathan Protzenko <jonathan.protze...@gmail.com>
Date: Sun, 22 Apr 2012 22:12:34 -0400
Local: Sun, Apr 22 2012 10:12 pm
Subject: Re: Problem with stdlib/msgHdrUtils.js since TB 8 (or 9?)
Huh. I wrote that function and I haven't noticed that, although I'd
gladly accept any patch if you find out a way to fix this :)

jonathan

On Sun Apr 22 13:52:43 2012, rene wrote:


 
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.
rene  
View profile  
 More options Apr 23 2012, 2:21 am
Newsgroups: mozilla.dev.apps.thunderbird
From: rene <mozilla-upd...@absorb.it>
Date: Mon, 23 Apr 2012 08:21:08 +0200
Local: Mon, Apr 23 2012 2:21 am
Subject: Re: Problem with stdlib/msgHdrUtils.js since TB 8 (or 9?)
Hi,

the problem occured between 6th and 7th of Oct last year.

working (getting all headers):
20111006033228
http://hg.mozilla.org/mozilla-central/rev/f107192c7d59
http://hg.mozilla.org/comm-central/rev/1b02fbd2f3b0

not working (missing first headers):
20111007030013
http://hg.mozilla.org/mozilla-central/rev/c3a50afc2243
http://hg.mozilla.org/comm-central/rev/5d28210323c4

There was a change http://hg.mozilla.org/comm-central/rev/b83fba0bc529
to the streaming in between, can you re-check the commit, it's way to
complex to understand and search for the point to check...

Thanks, nice regards,
Rene

On 04/23/2012 04:12 AM, Jonathan Protzenko wrote:


 
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.
Jonathan Protzenko  
View profile  
 More options Apr 23 2012, 9:34 am
Newsgroups: mozilla.dev.apps.thunderbird
From: Jonathan Protzenko <jonathan.protze...@gmail.com>
Date: Mon, 23 Apr 2012 09:34:28 -0400
Local: Mon, Apr 23 2012 9:34 am
Subject: Re: Problem with stdlib/msgHdrUtils.js since TB 8 (or 9?)
So this commit introduces a new method for streaming just the headers
of a message. The function you're using uses this new method if
available ; otherwise, it just falls back to another, older method.

I'll try to look into it, probably next week. Thanks for the bug report!

jonathan

On Mon Apr 23 02:21:08 2012, rene wrote:


 
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.
End of messages
« Back to Discussions « Newer topic     Older topic »