View Issue Details

IDProjectCategoryView StatusLast Update
0003513SOGoWeb Mailpublic2022-04-27 19:41
Reportermdacrema Assigned Tofrancis  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformChrome,SafariOSOS XOS Version10.11.3
Product Version3.0.1 
Fixed in Version5.6.0 
Summary0003513: "To" field automatically add address when "@" is writed into field on Chrome and Safari
Description

When writing or replying it's impossible to enter a address because when you insert "@" character the address is added automatically. On firefox this not happen.

Steps To Reproduce

For example take "me@example.com" as recipient. Write or reply to an email -> click on "Add a recipient" -> type "me" -> when you type "@" the field being locked

TagsNo tags attached.

Relationships

has duplicate 0003573 resolvedludovic compose message impossible due to incorrect autocomplete "To" field 
has duplicate 0004103 new email input termination by coma button shortcut 
related to 0004042 resolvedfrancis cannot enter names with Russian Be or Zhe letters (treated as separators) 

Activities

ludovic

ludovic

2016-02-11 19:21

administrator   ~0009509

I don't really understand this issue.

Can you reproduce it on demo.sogo.nu? If so, give the exact steps.

mdacrema

mdacrema

2016-02-12 09:30

reporter   ~0009515

Yes I can reproduce it on demo.sogo.nu.
I've seen that this bug happens only on OS X and only with Safari and Chrome.On windows I haven't this problem.

For reproduce it: Login into webmail -> write a new email -> add a recipient and you will see that it isn't possible to insert a recipient because when you type the "@“ character the webmail "autocomplete" the recipient

linuxgfx

linuxgfx

2016-03-10 10:08

reporter   ~0009685

I have this same problem too

bagnus

bagnus

2016-04-12 12:50

reporter   ~0009965

I found the same problem too.
With Chrome and Safari browser, when I write down a email address into the 'to:' field, when I type '@' the address is completed, without domain.

When instead the address is included in address book, it is completed.

With Internet Explorer and Firefox there is no problem.

Maybe something connected to autocompletion feature?

bagnus

bagnus

2016-06-09 08:24

reporter  

bagnus

bagnus

2016-06-09 08:30

reporter   ~0010321

Hi,

I've just completed a fresh install of sogo v.3.1.2, but the issue is still present.

On MacOSX, when using Chrome or Safari browsers, it is not possible to fully write an email address into the 'To', 'Cc' or 'Bcc' field, because when you type the '@' character, the prompt moves to next address without letting you complete the previous address.

in attached image, output of attempt of writing 'testmail@domain.com'

bagnus

bagnus

2016-06-09 09:22

reporter   ~0010322

After a further analysis, the issue is present only when using non-american keyboard layout.

e.g.: if you use Italian keyboard the '@' character is typed with combination 'Cmd + ò' and this combination is not correctly got by Chrome and Safari (it behaves like Tab).

The weird behaviour is that on the same MacOSX and the same italian keyboard layout, everything works smoothly using Firefox Browser.

Maybe it's only something related how the code parses the input commands?

bagnus

bagnus

2016-07-13 13:04

reporter   ~0010496

Summary: The issue happens in the following environment:

  • Mac OS X
  • Browser Safari or Chrome
  • Italian keyboard layout (the '@' character and ';' character have the same keycode 186)

The workaround we found is the following.

In file:

WebServerResources/js/vendor/angular-material.min.js

change row 25316:

if (this.separatorKeys.indexOf(event.keyCode) !== -1)

in

if (this.separatorKeys.indexOf(event.keyCode) !== -1 && !(navigator.appVersion.indexOf("Mac") != -1 && event.keyCode == 186 && event.altKey)) {

In other words, it is an exception into angular material framework.

I am aware that this is not an elegant solution, but it is another step beyond to understand and fix the issue.

Maybe the 'separatorKeys' list does not include the alt+186 combination as an exception for completing the email address?

Is it possible to fix the code in order to include this case?

francis

francis

2016-07-13 13:37

administrator   ~0010497

Last edited: 2016-07-13 13:38

Looks like the team of Angular Material won't fix it anytime soon: https://github.com/angular/material/issues/8319

However, you want to simply remove 186 from the separator keys of the recipients fields. To do so, modify the wox template UIxMailEditor.wox[1]:

          <md-chips ng-model="editor.message.editable.to"
                    md-separator-keys="[13, 9, 188]"
                    ...>

It could be a quick fix if most users don't expect the semi-colon to "close" a chip.

[1] https://sogo.nu/nc/support/faq/article/how-to-customize-the-html-2.html

francis

francis

2016-07-20 18:29

administrator   ~0010504

Does my solution satisfy your needs?

ludovic

ludovic

2016-12-08 21:07

administrator   ~0010970

No feedback provided in months, suspending.

Related Changesets

sogo: master c2eed784

2022-04-27 19:38

francis


Details Diff
fix(mail(js)): use different email separator keys depending on locale

Fixes 0003513
Fixes 0004042
Fixes 0005308
Fixes 0005309
Affected Issues
0003513, 0004042, 0005308, 0005309
mod - UI/WebServerResources/js/Mailer/MessageEditorController.js Diff File
mod - UI/WebServerResources/js/Preferences/AccountDialogController.js Diff File
mod - UI/WebServerResources/js/Preferences/Preferences.service.js Diff File
mod - UI/WebServerResources/js/Preferences/PreferencesController.js Diff File

Issue History

Date Modified Username Field Change
2016-02-10 11:04 mdacrema New Issue
2016-02-11 19:21 ludovic Note Added: 0009509
2016-02-12 09:30 mdacrema Note Added: 0009515
2016-03-10 10:05 Christian Mack Relationship added has duplicate 0003573
2016-03-10 10:08 linuxgfx Note Added: 0009685
2016-04-12 12:50 bagnus Note Added: 0009965
2016-06-09 08:24 bagnus File Added: Schermata 2016-06-09 alle 10.23.21.png
2016-06-09 08:30 bagnus Note Added: 0010321
2016-06-09 09:22 bagnus Note Added: 0010322
2016-07-13 13:04 bagnus Note Added: 0010496
2016-07-13 13:37 francis Note Added: 0010497
2016-07-13 13:38 francis Note Edited: 0010497
2016-07-20 18:29 francis Note Added: 0010504
2016-07-20 18:29 francis Assigned To => francis
2016-07-20 18:29 francis Status new => feedback
2016-12-08 21:07 ludovic Note Added: 0010970
2016-12-08 21:07 ludovic Status feedback => resolved
2016-12-08 21:07 ludovic Resolution open => suspended
2017-03-27 10:26 francis Relationship added has duplicate 0004103
2022-04-27 18:15 francis Relationship added related to 0004042
2022-04-27 19:41 francis Changeset attached => sogo master c2eed784
2022-04-27 19:41 francis Resolution suspended => fixed
2022-04-27 19:41 francis Fixed in Version => 5.6.0