GNOME Bugzilla – Bug 530632
Beagle with Thunderbird 3.0alpha
Last modified: 2018-07-03 09:50:50 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 ----
Is the extension supposed to TB 3.0 compatible ? Anyway, assigning to Pierre. He will know better.
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?
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.
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
Marques, can you confirm if indexing is done correctly with your changes ?
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.
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.
*** Bug 574240 has been marked as a duplicate of this bug. ***
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
@ Joe Shaw See comment #4. I believe that converting "path.unixStyleFilePath" references to "nativePath" made that problem go away for me.
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.
Reopening as information which was requested in comment #5 has been provided.
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.