fixed bug when + is in the name of the Email Sender (Gateway)

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-mail-servlet@142361 82a268e6-3cf1-43bd-a215-b396298e98cf
Feature/21689
Massimiliano Assante 7 years ago
parent b047fda5bb
commit 178215ced7

@ -522,7 +522,7 @@ public class PeriodicTask implements Runnable {
String subAddressToReturn = null;
for (int i = 0; i < emails.length; i++) {
String toParse = emails[i].toString();
int plus = toParse.indexOf('+');
int plus = toParse.lastIndexOf('+');
int at = toParse.indexOf('@');
if (plus >= 0) {
subAddressToReturn = toParse.substring(plus+1, at);

Loading…
Cancel
Save