Bug: Import txt file as Address book - not auto set for .txt - auto sets email address as 'None' - In Write contact displayed as not in address book.
Status: NEW
Priority: --
Created: 2024-10-21 15:09:52+00:00
Resolved: 2024-10-22 07:51:47+00:00

Using Windows 10 OS
Tested in versions 128.3.2esr and beta 132.0b5

A Text file (*.txt) contains these column headers and example of a contact.
- First Name, Last Name, Email
- Bob, Job, bobjob@anemailaddress.com

**Process:**
- Tools > Import
- Select: 'Import from a file' 
- click on 'Continue'
- Select: 'Import Address Books' 
- click on 'Continue'
- Select: 'Comma or tab separated file (.csv, .tsv)'
- click on 'Continue'

First problem....
 - Select: 'Comma or tab separated file (.csv, .tsv)' -
Expected this to also include *.txt

*Actual Results*
Window opens 
Choose the location where the .txt file is located, but obviously nothing is shown because it's auto sets to show (*.csv; *.tsv; *.tab)

*Expected Results*
Window opens 
Choose the location where the .txt file is located, files are shown because it's auto sets to show (*.csv; *.tsv; *.tab;*txt)

**Continue with process:**
- click on drop down to select 'All Files (*.*)'
- Select the relevant *.txt file
- click on 'Open'

*Actual Results and Process*
- Selected 'First row contains field names'
- Second item in list - Source field - 'Last name' -  is auto mapped to 'First name' in Thunderbird.
- First item in list - Source field - 'First name' - select the blue checkbox
- Source field - 'First Name'  - no drop down option to select 'first name' - becaue it's excluded from list as it's been incorrectly  - - auto selected for another source field.
- Second item in list - Source field - 'Last name' -  uncheck the blue checkbox.
- First item in list - Source field - 'First Name'  - use drop down option to select 'first name' as it's now displaying.
- Second item in list - Source field - 'Last name' - select the blue checkbox
- Second item in list - Source field - 'Last name' - use drop down to select 'Last Name'
- Third item in list - Source field - 'Email' - select the blue checkbox
- Third item in list - Source field - 'Email' - use drop down to select 'Primary Email'
- click on 'Continue'
- Select create a new directory called  ImportTest
- click on 'Continue'
- Click on 'Start Import'
- Click on 'Finish'

*Actual Results*
All imported into Address Book and all appears correct in the contact list.

**Process**
- Select the imported Address Book name
- Highlight all names
- click on 'Write'

Write window opens
- Prompt to use Bcc instead - select 'Use Bss instead'
All email address are displaying in Bcc field.

But...every email address has a white dot.
when I hover over an email address, it says ' x email address is not in your address book' !
Obviously, it is in the address book.

- Select Address Book
- Select address book name
- Select any contact
- click on 'Edit'

*Email Addresses*
'None' and the email address is correctly displaying.

IF 'none' is selected and Thunderbird does this by default on import then email address in Write window says it's not in address book.
Change the 'none' to 'Home' or 'Work' 
Do this for all contacts - one at a time - very time consuming.
Reselect all contacts in list and click on 'Write'

*Actual and Expected Results*
All contacts/email addresses has lost the 'dot' and there is no popup on hover saying not in address book.


**Problems highlighted are:**
1. .txt files not auto recognised.
2. mapping can be confusing because some or all fields are preselected - and not necessarilly  correctly- when none need to be selected. see bug 1808128
3. No helpful advise - eg: If drop down has no option for field - it means it has already been selected - uncheck blue check box to release field and make it available for reselection.
4. Imported Email addresses mapped as 'Primary Email' has auto setting as 'None' instead of 'Home' or 'Work.
5.  Set as 'None' results in Write new Message displaying a dot on email address and tooltip says email address in not in address book.