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
This commit is contained in:
parent
b047fda5bb
commit
178215ced7
|
@ -522,7 +522,7 @@ public class PeriodicTask implements Runnable {
|
||||||
String subAddressToReturn = null;
|
String subAddressToReturn = null;
|
||||||
for (int i = 0; i < emails.length; i++) {
|
for (int i = 0; i < emails.length; i++) {
|
||||||
String toParse = emails[i].toString();
|
String toParse = emails[i].toString();
|
||||||
int plus = toParse.indexOf('+');
|
int plus = toParse.lastIndexOf('+');
|
||||||
int at = toParse.indexOf('@');
|
int at = toParse.indexOf('@');
|
||||||
if (plus >= 0) {
|
if (plus >= 0) {
|
||||||
subAddressToReturn = toParse.substring(plus+1, at);
|
subAddressToReturn = toParse.substring(plus+1, at);
|
||||||
|
|
Loading…
Reference in New Issue