After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 530632 - Beagle with Thunderbird 3.0alpha
Beagle with Thunderbird 3.0alpha
Status: RESOLVED WONTFIX
Product: beagle
Classification: Other
Component: General
0.3.x
Other All
: Normal enhancement
: ---
Assigned To: Pierre Östlund
Beagle Bugs
gnome[unmaintained]
: 574240 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-04-29 22:07 UTC by Sachin Garg
Modified: 2018-07-03 09:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sachin Garg 2008-04-29 22:07:22 UTC
Hi

I trying to use the beagle with thunderbird 3.0alpha. But indexing fails with following error.

----
An error occurred while indexing. Error description: TypeError: hdr.folder.path is undefined
----
Comment 1 Debajyoti Bera 2008-04-29 22:17:20 UTC
Is the extension supposed to TB 3.0 compatible ?

Anyway, assigning to Pierre. He will know better.
Comment 2 Paul Wellner Bou 2008-05-21 06:12:46 UTC
Same here.

I really would like to help here. I'll have a look at the code of the thunderbird plugin but not sure if this is enough. Is there somebody who can say what is happening here and point me to the right direction in the code?
Comment 3 Debajyoti Bera 2008-05-24 20:34:36 UTC
I dont know much but I think you want to look at the .js files in beagle/thunderbird-extension/{content,components}. I suspect there is some API change in the TB3 and its probably just a matter of finding what should be used in place of hdr.folder.path

Also, a modified version of the backend and extension is used in tracker and they might have some fixes. Unfortunately we cannot use their code if it is GPL.
Comment 4 Marques Johansson 2008-07-24 15:14:32 UTC
I encountered the same problem in the tracker extension.

I replaced all the js references to "path.unixStyleFilePath" with "nativePath" and the warnings went away.

It says it is indexing, although I haven't been able to confirm this yet.

http://developer.mozilla.org/en/docs/nsIMsgFolder#Attributes
http://developer.mozilla.org/en/docs/nsIFile
Comment 5 Debajyoti Bera 2008-11-22 21:15:45 UTC
Marques, can you confirm if indexing is done correctly with your changes ?
Comment 6 marques 2008-11-23 16:13:17 UTC
Although it appears to index (the index tracking works - it knows what it has indexed, what needs to be indexed, can be told to reindex, and can be disabled), the results do not appear in tracker when I search. 
Comment 7 marques 2008-11-24 15:56:37 UTC
That last reply was meant for the "Tracker" conversion of this plugin.  As far as Beagle is concerned, the javascript changes make it appear to work, but I'm not using Beagle to test it.

When enabled, the plugin can be seen doing this:
stat64("/home/mjohansson/.xesam//ThunderbirdEmails/ToIndex/40432.tms", {st_mode=S_IFREG|0644, st_size=866, ...}) = 0
stat64("/home/mjohansson/.xesam//ThunderbirdEmails/ToIndex/55327.tms", {st_mode=S_IFREG|0644, st_size=830, ...}) = 0

I assume that is prepping it for Beagle.  Tracker doesn't use xesam so more work would be needed in the conversion of this plugin for Tracker use.
Comment 8 Joe Shaw 2009-03-05 16:21:49 UTC
*** Bug 574240 has been marked as a duplicate of this bug. ***
Comment 9 Joe Shaw 2009-03-05 16:22:38 UTC
From the duplicate bug, which is specifically from beta 1:

The warning that is generated is:
An error occurred while indexing. Error description: TypeError: hdr.folder.path
is undefined
Comment 10 Marques Johansson 2009-03-05 16:32:46 UTC
@ Joe Shaw

See comment #4.  I believe that converting "path.unixStyleFilePath" references to "nativePath" made that problem go away for me.



Comment 11 Carl 2009-03-05 19:51:38 UTC
I changed those path references in the beagle.jar file and re-packaged it. It does indeed eliminate the errors, but the mail content does not seem to be indexed. At least, it does not end up in Beagle.

When I now request a beagle status, I get the following message:
Blocked Tasks:
Cancelled task: Exceptions in DoTaskReal
        Tag: ThunderbirdIndexer
    Creator:
Description:
   Priority: Delayed (0)

So it looks like something is blocking the data to enter into the index.
Comment 12 Tobias Mueller 2010-03-04 18:44:29 UTC
Reopening as information which was requested in comment #5 has been provided.
Comment 13 André Klapper 2018-07-03 09:50:50 UTC
Beagle is not under active development anymore and had its last code changes in early 2011. Its codebase has been archived (see bug 796735):
https://gitlab.gnome.org/Archive/beagle/commits/master

"tracker" is an available alternative.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the
responsibility for active development again.