diff options
author | Camil Staps | 2025-07-11 10:43:34 +0000 |
---|---|---|
committer | Camil Staps | 2025-07-11 10:43:34 +0000 |
commit | aab2432e8138362e46337a2865743a49a120d580 (patch) | |
tree | 21cc9e4a733af8ca111fa046c2b33334ad41e2ba /mail.php | |
parent | Do not check the pgp verify result for explicit validity (unclear why this st... (diff) |
Diffstat (limited to 'mail.php')
-rw-r--r-- | mail.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |