fix(nextcloud-mail-sync): portable email parsing
This commit is contained in:
parent
a76d944433
commit
c165087eda
@ -32,8 +32,8 @@ list_mail_accounts() {
|
|||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
id != "" && /@/ {
|
id != "" && /@/ {
|
||||||
if (match($0, /[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/, m)) {
|
if (match($0, /[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/)) {
|
||||||
printf("%s\t%s\n", id, m[0]);
|
printf("%s\t%s\n", id, substr($0, RSTART, RLENGTH));
|
||||||
id="";
|
id="";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user