Page MenuHomePhabricator

URL's ending in ) don't get the ) added to hyperlinks in emails
Closed, DuplicatePublic

Description

Page URL's ending in ) aren't getting properly linked in emails regarding recent changes. https://en.wikipedia.org/wiki/User_talk:Ian_(Wiki_Ed) as an example gets linked as https://en.wikipedia.org/wiki/User_talk:Ian_(Wiki_Ed ) (I've added a space between the closing ) and the rest here to stop it from linking; this space is not present in emails) causing the link to break.

Event Timeline

jcrespo subscribed.

Could you provide more info? Is this related to mails sent as notifications on watchlist? Could you provide the source of the full email?

Sure. This indeed an email related to a watch list notification. What do you mean by source? Just the full text?

Dear Asartea,

The Wikipedia page User talk:Ian (Wiki Ed) has been changed on
6 November 2020 by Panacotta101, see
https://en.wikipedia.org/wiki/User_talk:Ian_(Wiki_Ed) for the current
revision.

To view this change, see
https://en.wikipedia.org/w/index.php?title=User_talk:Ian_(Wiki_Ed)&diff=next&oldid=987315306

For all changes since your last visit, see
https://en.wikipedia.org/w/index.php?title=User_talk:Ian_(Wiki_Ed)&diff=0&oldid=987315306

Editor's summary: /* Need help request from ~~~ */ new section

Contact the editor:
mail: https://en.wikipedia.org/wiki/Special:EmailUser/Panacotta101
wiki: https://en.wikipedia.org/wiki/User:Panacotta101

There will be no other notifications in case of further activity unless
you visit this page while logged in. You could also reset the
notification flags for all your watched pages on your watchlist.

Your friendly Wikipedia notification system

To change your email notification settings, visit
https://en.wikipedia.org/wiki/Special:Preferences

To change your watchlist settings, visit
https://en.wikipedia.org/wiki/Special:EditWatchlist

To delete the page from your watchlist, visit
https://en.wikipedia.org/w/index.php?title=User_talk:Ian_(Wiki_Ed)&action=unwatch

Feedback and further assistance:
https://en.wikipedia.org/wiki/Help:Contents

Just the full text?

On the client mail you are using, there is normally a way to view the source email with all headers (metainformation) and html/text source. For example, on GMail it shows by clicking the 3 dots and select "Show original". Then please paste it at: https://phabricator.wikimedia.org/paste/edit/form/14/ and link it here. That will show what is exactly happening.

I'm getting an access denied error on the page you linked

You can paste it here, just put 3 ``` before and after the text to make a block of text, so it doesn't lose formatting. :-)

Or paste anywhere we can read it in text format (pastebin).

Return-Path: <wiki-enwiki-nwia2-qjd97b-3gnkcmgrac7uk+02@wikimedia.org>
Delivered-To: (stripped emailadres; contains personal information)
Received: from md7.tb.mail.iss.local ([212.54.42.103])
	by mc14.tb.mail.iss.local with LMTP id aP7SOdkKpV8lZQAAsaj6gQ
	for <(stripped emailadres; contains personal information)>; Fri, 06 Nov 2020 09:35:37 +0100
Received: from smtpclienthelo ([212.54.42.103])
	by md7.tb.mail.iss.local with LMTP
	id WAt3OdkKpV8GBAAAEOq9SA
	(envelope-from <wiki-enwiki-nwia2-qjd97b-3gnkcmgrac7uk+02@wikimedia.org>)
	for <(stripped emailadres; contains personal information)>; Fri, 06 Nov 2020 09:35:37 +0100
Authentication-Results: mail.iss.as9143.net;
 spf=pass (208.80.154.91;wikimedia.org);
 dkim=pass header.d=wikimedia.org;
 dmarc=pass header.from=wikimedia.org (p=none sp=none dis=pass);
X-Env-Mailfrom: wiki-enwiki-nwia2-qjd97b-3gnkcmgrac7uk+02@wikimedia.org
X-Env-Rcptto: (stripped emailadres; contains personal information)
X-SourceIP: 208.80.154.91
X-CNFS-Analysis: v=2.4 cv=SfBJytdu c=1 sm=1 tr=0 ts=5fa50ad9 cx=a_idp_d
 a=HR4LgtR3j+/6XUtbBYNx/A==:117 a=HR4LgtR3j+/6XUtbBYNx/A==:17
 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10
 a=nNwsprhYR40A:10 a=8pif782wAAAA:8 a=rTv0MU9ghCHorAY6husA:9 a=QEXdDO2ut3YA:10
 a=c7XZu54lUV4A:10
Received: from wiki-mail-eqiad.wikimedia.org ([208.80.154.91])
	by mx4.tb.mail.iss.as9143.net with ESMTP
	id axDckivd09pGDaxDdkZdbA; Fri, 06 Nov 2020 09:35:37 +0100
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=wikimedia.org; s=wiki-mail; h=Content-transfer-encoding:Content-type:
	MIME-Version:List-Unsubscribe:Message-ID:Date:Reply-To:From:List-Help:Subject
	:To:Sender:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
	Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:
	List-Id:List-Subscribe:List-Post:List-Owner:List-Archive;
	bh=S9FGvOCsFQ1yzq0yKc4uiNW4sMzyctKixIplJ2yu398=; b=oXSHqkRwChjcQvdJG0ps1ITUjz
	7XV0cfzm29cOXkzGPaig3BPlmi/+1hOclqG3+CUv1Q1hWcWRRr76LLU3oC8PicyYhEWa3k1u3Di95
	6Xg2sRSo/j3eXHATodH4j++Y/kIVBg7MxEKkfLQ91V580fZ/0IckCLS0XiXS6xxav0ZI=;
Received: from [2620:0:861:101:10:64:0:170] (port=33776 helo=mw1308.eqiad.wmnet)
	by mx1001.wikimedia.org with esmtp (Exim 4.89)
	(envelope-from <wiki-enwiki-nwia2-qjd97b-3GNkCmGrac7uK+02@wikimedia.org>)
	id 1kaxDb-0006Qq-Mt
	for (stripped emailadres; contains personal information); Fri, 06 Nov 2020 08:35:35 +0000
Received: from www-data by mw1308.eqiad.wmnet with local (Exim 4.89)
	(envelope-from <wiki-enwiki-nwia2-qjd97b-3GNkCmGrac7uK+02@wikimedia.org>)
	id 1kaxDb-0000hn-In
	for (stripped emailadres; contains personal information); Fri, 06 Nov 2020 08:35:35 +0000
To: "Asartea" <(stripped emailadres; contains personal information)>
Subject: Wikipedia page User talk:Ian (Wiki Ed) has been changed by Panacotta101
List-Help: https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Watchlist
From: "Wikipedia" <wiki@wikimedia.org>
Reply-To: wiki@wikimedia.org
Date: Fri, 06 Nov 2020 08:35:35 +0000
Message-ID: <enwiki.5fa50ad789f113.01057919@en.wikipedia.org>
X-Mailer: MediaWiki mailer
List-Unsubscribe: <https://en.wikipedia.org/wiki/Special:Preferences>
MIME-Version: 1.0
Content-type: text/plain; charset=UTF-8
Content-transfer-encoding: 8bit
X-CMAE-Envelope: MS4xfHUFYPYXpq06HzadatHjVR0Km3UVHpPtKwRBO8RrWdCdGXb0HHr1gSm2sQgP2BM/0ZrkHSr6cHdCoxXAMZnOMKiTlwZUHD9qvSZ68hkZNBw7x0yTgSCb
 6XmbVQ4H7mbZGOVWV2hcGmO1hUmTy8LJffEWBvPaQ3ICm1C8X6eGgC3EG19iKZY6qAQRs6ERgVQBq9CF+Chg8SEhHZI+MV0HcWSij8eqqJPk0yDVl0YHwvQs
 zKoBns8VGiHlf8CBe+Ih83r81ktlXE5q6EVKkGBT4ls=

Dear Asartea,

The Wikipedia page User talk:Ian (Wiki Ed) has been changed on
6 November 2020 by Panacotta101, see
https://en.wikipedia.org/wiki/User_talk:Ian_(Wiki_Ed) for the current
revision. 

To view this change, see
https://en.wikipedia.org/w/index.php?title=User_talk:Ian_(Wiki_Ed)&diff=next&oldid=987315306

For all changes since your last visit, see
https://en.wikipedia.org/w/index.php?title=User_talk:Ian_(Wiki_Ed)&diff=0&oldid=987315306

Editor's summary: /* Need help request from ~~~ */ new section 

Contact the editor:
mail: https://en.wikipedia.org/wiki/Special:EmailUser/Panacotta101
wiki: https://en.wikipedia.org/wiki/User:Panacotta101

There will be no other notifications in case of further activity unless
you visit this page while logged in. You could also reset the
notification flags for all your watched pages on your watchlist.

Your friendly Wikipedia notification system

--
To change your email notification settings, visit
https://en.wikipedia.org/wiki/Special:Preferences

To change your watchlist settings, visit
https://en.wikipedia.org/wiki/Special:EditWatchlist

To delete the page from your watchlist, visit
https://en.wikipedia.org/w/index.php?title=User_talk:Ian_(Wiki_Ed)&action=unwatch

Feedback and further assistance:
https://en.wikipedia.org/wiki/Help:Contents

Thanks, that works and is very helpful. May I ask you what client / program / mobile app / website are you using for reading email? It may be email-client specific.

Ziggo email (https://www.ziggo.nl/internet/ziggo-mail (In Dutch; also primarily Dutch based)), specifically the web version of it (https://mail.ziggo.nl/appsuite/)

Edit: quick check seems to indicate the same problem exists in its mobile app

I would have to check the relevant RFCs, but my first impression is that it could be a problem of your client's web (as I cannot reproduce it with other clients), but I am not 100% sure. My Gut tells me that ) should not have to be encoded, or treated as special.

If it ends up being like that, other than reporting it to your provider, you could try setting your email notifications in HTML format, rather than Plain text as a workaround.

In the past I had problems with how plan text emails with URLs are interpreted by clients and they fixed it quickly.

It is true that other plain text notifications (e.g. thanks) < > is used for plain text link (which may fix the isssue for you). I will let the editing team and people in charge of notification see if that is a reasonable improvement for this kind of email notifications.

@Asartea: This is due to a decision that your email client takes how to render emails that you received. See T40265. I'm going to mark this as a duplicate.
For future reference, please always follow https://www.mediawiki.org/wiki/How_to_report_a_bug - thanks!