Replaced use of "$" character with "_" when parsing notification emails about posts and messages to Support #12332 Notifications via emails not working for bfr.bund.de domain

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-mail-servlet@172033 82a268e6-3cf1-43bd-a215-b396298e98cf
Feature/21689
Massimiliano Assante 6 years ago
parent 27bcfbc797
commit a41151981b

@ -2,6 +2,7 @@
<Changeset component="org.gcube.portal.social-mail-servlet.2-3-0"
date="2018-08-30">
<Change>Fix for Incident #12351 Email Parser stuck on AGINFRA Gateway</Change>
<Change>Support #12332 Notifications via emails not working for bfr.bund.de domain, Feature #12613, Replace use of "$" character with "_" when sending notification emails about posts and messages</Change>
</Changeset>
<Changeset component="org.gcube.portal.social-mail-servlet.2-1-1"
date="2017-02-03">

@ -505,9 +505,14 @@ public class PeriodicTask implements Runnable {
*/
private static String extractIdentifier(String subAddress) {
String id = subAddress; //for backward compatibility
int at = subAddress.indexOf('$');
if (at > -1)
int at = subAddress.indexOf('$'); //also for backward compatibility
if (at > -1) {
id = subAddress.substring(0, at);
}
else {
at = subAddress.indexOf('_'); //the new separator is an underscore
id = subAddress.substring(0, at);
}
return id;
}

Loading…
Cancel
Save