mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Import first/last name recognition
This commit is contained in:
parent
ea7b7f481b
commit
3232e0c979
1 changed files with 6 additions and 0 deletions
|
@ -126,6 +126,12 @@ public class EntityAnswer implements Serializable {
|
|||
if (c > 0) {
|
||||
first = fullName.substring(0, c).trim();
|
||||
last = fullName.substring(c + 1).trim();
|
||||
} else {
|
||||
c = fullName.indexOf('@');
|
||||
if (c > 0) {
|
||||
first = fullName.substring(0, c).trim();
|
||||
last = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue