Closed Bug 254047 Opened 20 years ago Closed 20 years ago

Bad selection from "to & cc & bcc" (dialog Select Addresses)

Categories

(SeaMonkey :: MailNews: Message Display, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: JasnaPaka, Assigned: neil)

Details

(Keywords: intl)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Win98; cs-CZ; rv:1.8a2) Gecko/20040714
Build Identifier: Mozilla/5.0 (Windows; U; Win98; cs-CZ; rv:1.8a2) Gecko/20040714

Mozilla Mail. I choose "File -> New -> Message" in main menu. Then i choose
"Options -> Select Addresses...". This open a new dialog. I can select adresses
there. There are three buttons - "To->" (for primary recipients), "Cc->" (for
secondary recipients) and "Bcc->" (for secondary recipients not identified to
the other recipients). In oficial (english) version of Mozilla these buttons
work correct but not with czech version of Mozilla. 

Strings "To", "Cc" and "Bcc" can be localized - known as "Komu", "Kopie" and
"Skryta kopie" in Czech version. Problem is when i select contacts from local
database and click "Cc" ("Kopie" in Czech version) and then i close dialog.
There is a problem becouse contacts aren't known as "Cc" but "To".

I know where is a problem.

messenger.jar!/content/messenger/adressbook/abSelectAddressesDialog.js

There is function SelectAddressOKButton()

A part of this function is:
=================================
          switch ( text[0] )
          {
         	
            case prefixTo[0]:
              if ( toAddress )
                toAddress += ", ";
              toAddress += text.substring(prefixTo.length, text.length);
              break;
            case prefixCc[0]:
              if ( ccAddress )
                ccAddress += ", ";
              ccAddress += text.substring(prefixCc.length, text.length);
              break;
            case prefixBcc[0]:
              if ( bccAddress )
                bccAddress += ", ";
              bccAddress += text.substring(prefixBcc.length, text.length);
              break;
          }
=================================
Problem is that Mozilla compares only first character of status. In english
version this isn't problem becouse "To", "Cc", "Bcc" - there are different first
characters but in Czech version ("Komu", "Kopie", "Skryta kopie") aren't.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Marking NEW.

http://lxr.mozilla.org/seamonkey/source/mailnews/addrbook/resources/content/abSelectAddressesDialog.js#185
This bug is in code since this file first checking in CVS.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: intl
Attached patch Proposed patchSplinter Review
Assignee: sspitzer → neil.parkwaycc.co.uk
Status: NEW → ASSIGNED
Comment on attachment 155033 [details] [diff] [review]
Proposed patch

Please could someone with a suitable locale test this.
Attachment #155033 - Flags: review?
(In reply to comment #3)
> (From update of attachment 155033 [details] [diff] [review])
> Please could someone with a suitable locale test this.
> 

I tested it for Sorbian. The patch works renaming the prefixes so that they
begin by the same letter (Komu, Kopija, Kopija skryta). The last one should be
skryta kopija but I wanted to test if the patch works too if all prefixes begin
by the same letter. Therefore I placed the adjective behind the substantive.
Attachment #155033 - Flags: review? → review?(mscott)
Attachment #155033 - Flags: review?(mscott) → review+
Attachment #155033 - Flags: superreview?(bienvenu)
Attachment #155033 - Flags: superreview?(bienvenu) → superreview+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
I can't set the approval-aviary? flag here, so I'm asking for this bug to block
the aviary 1.0 releases. The bug has a patch.
Flags: blocking-aviary1.0PR?
Flags: blocking-aviary1.0?
Attachment #155033 - Flags: approval-aviary?
Flags: blocking-aviary1.0PR?
Flags: blocking-aviary1.0?
Comment on attachment 155033 [details] [diff] [review]
Proposed patch

a=asa (on behalf of the aviary team) for checkin to the aviary branch.
Attachment #155033 - Flags: approval-aviary? → approval-aviary+
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: