Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long request email in message_report #502

Closed
mathieuroquefort opened this issue Dec 11, 2018 · 11 comments · Fixed by #505
Closed

Long request email in message_report #502

mathieuroquefort opened this issue Dec 11, 2018 · 11 comments · Fixed by #505
Labels
Milestone

Comments

@mathieuroquefort
Copy link

In the file message_report.tt2, there are some occurences of the message
[%|loc(list.name,list.host)%]For further information, please contact %1-request@%2[%END%]

But if we have a quite long list name and a quite long list host, the request email ends up being quite long itself (40 chars easily), and the line has more than 76 chars. As the address contains an hyphen, it is cut in the middle of the email, and users cannot click it. Even copying and pasting the email becomes complicated for "normal" users.

A solution would be to introduce a line break before the address.

Version

Sympa 6.1.17 / CentOS 6.10

Installation method

?

Expected behavior

Pour plus de détails, contactez
test-discussion-request@listes.secourspopulaire.fr

Actual behavior

Pour plus de détails, contactez test-discussion-
request@listes.secourspopulaire.fr

Additional information

@ikedas
Copy link
Member

ikedas commented Dec 11, 2018

Hi @mathieuroquefort,

I guess (but didn't confirm) <test-discussion-request@listes.secourspopulaire.fr> may prevent line folding.

@mathieuroquefort
Copy link
Author

You mean adding < and > before and after the email ?
But if I do this in the code, translation won't work anymore.

@ikedas
Copy link
Member

ikedas commented Dec 11, 2018

Yes, changes on templates will break translations for a while. But at once the changes were included in the codebase, appropriate fixups will be made on translation catalog.

@mathieuroquefort
Copy link
Author

So, I shouldn't make any change in my installed version, but wait until it is changed in a new version ?

@ikedas
Copy link
Member

ikedas commented Dec 11, 2018

To avoid breakage of running site, you can download source of catalog, modify it and install it for your site. We are sorry that we have not updated documentation about translationwork to describe details enough.

@mathieuroquefort
Copy link
Author

Actually, I now how to change message_report.tt2. I even can change it only for the robot we use.
But I don't know how to change translation. It is generally more tricky. Not sure I can get into that...

@ikedas
Copy link
Member

ikedas commented Dec 12, 2018

@mathieuroquefort, could you please apply this patch to check if the problem will be solved?

ikedas added a commit that referenced this issue Dec 18, 2018
Long email addresses in system messages may be folded #502
@mathieuroquefort
Copy link
Author

I did not test yet...

@ikedas
Copy link
Member

ikedas commented Dec 18, 2018

@mathieuroquefort, I was too hasty. Please check the patch on your server.
The patch will be included in the next release planned in this Friday.

@mathieuroquefort
Copy link
Author

Hello,

I've looked at it closer.
I don't understand how I can apply this patch. Where is this file suppposed to be located ? There's no /src folder on the server.

@racke
Copy link
Contributor

racke commented Dec 26, 2018

You can strip off parts of the path inside the patch file with the -p parameter. So if you want just to strip off "src", it would be patch -p1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants