private int stripSourceRoute(String address,int pos){
  if (pos < address.length()) {
    if (address.charAt(pos) == '@') {
      int i=address.indexOf(':');
      if (i != -1) {
        pos=i + 1;
      }
    }
  }
  return pos;
}

private int stripSourceRoute ( String address , int pos ) { if ( pos < address . length ( ) ) { if ( address . charAt ( pos ) == '@' ) { int i = address . indexOf ( ':' ) ; if ( i != - 1 ) { pos = i + 1 ; } } } return pos ; }
strips source routing . according to rfc - 2821 it is a valid approach to handle mails containing rfc - 821 source - route information .
