Incorrect detection of email address link: Closes #7400
Now require mailto: URI in order to offer "Copy Email Address" in context menu.
This commit is contained in:
parent
74076f06fa
commit
a0a20c813f
1 changed files with 1 additions and 1 deletions
|
|
@ -869,7 +869,7 @@ public class ConversationViewer : Gtk.Box {
|
|||
}
|
||||
|
||||
if (hover_url != null) {
|
||||
if (Geary.RFC822.MailboxAddress.is_valid_address(hover_url)) {
|
||||
if (hover_url.has_prefix(Geary.ComposedEmail.MAILTO_SCHEME)) {
|
||||
// Add a menu item for copying the address.
|
||||
Gtk.MenuItem item = new Gtk.MenuItem.with_mnemonic(_("Copy _Email Address"));
|
||||
item.activate.connect(on_copy_email_address);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue