Update to 2020-08-24 13:00

master
Daniel Berteaud 4 years ago
parent 6099635744
commit 3383c77d8d
  1. 5
      roles/pmg/files/imap-sa-learn

@ -113,7 +113,10 @@ sub crawl_imap_dir {
my $inner_found = 0;
foreach my $part ($entity->parts) {
if ($part->effective_type eq 'message/rfc822'){
sa_learn($part->stringify, $type);
# Remove the first 3 lines which presents the raw mail, but as an attachment
my @lines = split /\n/, $part->stringify;
splice @lines,0,3;
sa_learn(join("\n", @lines), $type);
$inner_found = 1;
}
}

Loading…
Cancel
Save