Open Bug 1274229 Opened 4 years ago Updated 3 years ago

Nothing happened when import a Filters from Becky!2

Categories

(MailNews Core :: Import, defect)

x86
Windows 7
defect
Not set

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: baffclan, Unassigned)

References

Details

Attachments

(1 file)

Steps to Reproduce:
1. Tools -> Import
2. appear Import dialog
3. select Filters and click [Next>]
4. select Becky! Internet Mail and click [Next>]
5. nothing happened

User Agent: Mozilla/5.0 (Windows NT 6.1; rv:49.0) Gecko/20100101 Thunderbird/49.0a1
Build ID: 20160517030214
Blocks: 684455
Anything in Tools->Error console after it fails? Also what does "nothing happened" mean?
I assume TB has not crashed. Is there some empty dialog shown?
Or you click "Next" but nothing changes, you are still in the same selection where you can select Becky?
(In reply to :aceman from comment #1)
> Anything in Tools->Error console after it fails? Also what does "nothing
> happened" mean?
> I assume TB has not crashed. Is there some empty dialog shown?
> Or you click "Next" but nothing changes, you are still in the same selection
> where you can select Becky?

Steps to Reproduce:
1. Tools -> Import
2. appear Import dialog
3. select Filters and click [Next>]
4. select Becky! Internet Mail and click [Next>]

Actual Results:
5. nothing happened

Expected Results:
5. Appear File Select Window
6. Select file, and import Filters


--- Error Console ---
Timestamp: 2016/05/24 8:14:40
Error: NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIImportFilters.Import]
Source File: chrome://messenger/content/importDialog.js
Line: 931
---
Do you know if Becky has the filters in some particular file with some special extension?
IFilter.def : Filter for incoming mail
OFilter.def : Filter for outgoing mail
Looking at the code, it looks for the IFilter.def file in some default location (like user/documents/becky/). Do you have the file somewhere else? There does not seem to be a way to select a file.

Also, it does not import outgoing filters. But that could probably be done.
Could you attach a sample incoming and outgoing filter file so I can see if they are the same format?
(In reply to :aceman from comment #5)
> Looking at the code, it looks for the IFilter.def file in some default
> location (like user/documents/becky/). Do you have the file somewhere else?
> There does not seem to be a way to select a file.
It must be the same design a import of the setting.

ex.
I have few mail Account.
(e.g, baffclan _at_ bugzilla.example.org, baffclan _at_ bugzilla.example.net)

Becky!/11111111.mb is mailbox for baffclan _at_ b.e.o
Becky!/22222222.mb is mailbox for baffclan _at_ b.e.n

Each has a different filter.
Becky!/11111111.mb/IFilter.def is Filter for baffclan _at_ b.e.o
Becky!/22222222.mb/IFilter.def is Filter for baffclan _at_ b.e.n
Is that C:/Becky!/11111111.mb/.... ?
Attached image B2 MailFolders
(In reply to :aceman from comment #7)
> Is that C:/Becky!/11111111.mb/.... ?
Sorry...
I'm Not used default folder.

*.mb Folder is E-mail account folder
(Using a random 8 characters)
All of a account folder has IFilter.def.
And individual settings.
(In reply to baffclan from comment #8)
> (In reply to :aceman from comment #7)
> > Is that C:/Becky!/11111111.mb/.... ?
> Sorry...
> I'm Not used default folder.

Can you COPY your IFilters file to such a default C:/Becky!/11111111.mb/ folder?
Then try to import Filters in TB and see if it then finds the file? It seems there is no way to tell TB where the file is if it is no in default location. I can try to add that possibility. But at least we need to know if it can import it correctly from the default location.
(In reply to :aceman from comment #9)
I do not know where a default folder.
However, I put email data in C:/Becky!/11111111.mb/ and tried it,
but nothing happens.

--- Error Console --- 
Timestamp: 2016/06/07 15:37:58
Error: NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIImportFilters.Import]
Source File: chrome://messenger/content/importDialog.js
Line: 931
---
By reading the code I think you need to do this, assuming you are on Windows 7+:
1. In your C:/Users/name/Documents folder, create a folder Becky
2. Copy your file Folder.lst into that Becky folder
3. Edit that file in Notepad and change the first line to some folder name, e.g. 11111111.mb
4. Then create folder 11111111.mb in C:/Becky!
5. Copy IFilter.def into C:/Users/name/Documents/Becky/11111111.mb/ now.

6. try the import.
Depends on: 1278987
I tested newest Daily(x64)/Windows 7 Pro

--- 
Name: Thunderbird
Version: 50.0a1
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:50.0) Gecko/20100101 Thunderbird/50.0a1
Profile Folder: (Local drive)
Application Build ID: 20160709030254
--- 

--- Error Console --- 
NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIImportFilters.Import] 	importDialog.js:891
  ImportFilters 	chrome://messenger/content/importDialog.js:891:10
  ImportDialog 	OKButtonchrome://messenger/content/importDialog.js:292:16
  next 	chrome://messenger/content/importDialog.js:1007:5
  oncommand 	chrome://messenger/content/importDialog.xul:1:1
  toImport 	chrome://messenger/content/mailCore.js:382:3
  oncommand 	chrome://messenger/content/messenger.xul:1:1
---
I think the process from comment 11 should work, but it is not that great for the user.

I need to see how hard it would be to just allow to pick a file.
You need to log in before you can comment on or make changes to this bug.