aboutsummaryrefslogtreecommitdiff
path: root/mail.php
diff options
context:
space:
mode:
authorCamil Staps2025-07-11 10:43:34 +0000
committerCamil Staps2025-07-11 10:43:34 +0000
commitaab2432e8138362e46337a2865743a49a120d580 (patch)
tree21cc9e4a733af8ca111fa046c2b33334ad41e2ba /mail.php
parentDo not check the pgp verify result for explicit validity (unclear why this st... (diff)
Remove empty keywordsHEADmaster
Diffstat (limited to 'mail.php')
-rw-r--r--mail.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mail.php b/mail.php
index cb09842..c29f486 100644
--- a/mail.php
+++ b/mail.php
@@ -186,8 +186,9 @@ function mail_parse_message ($body,$prefill_info=[])
} else {
$info['start_date']=$info['end_date']=$val;
}
- } else if (levenshtein ($key,'Keywords') < 2)
- $info['keywords']=array_map ('trim',explode (';',$val));
+ } else if (levenshtein ($key,'Keywords') < 2){
+ $info['keywords']=array_filter (array_map ('trim',explode (';',$val)),'strlen');
+ }
else
$warnings[]='Unknown key '.$key;
}