summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f53c8c7)
last header value. Also get rid of control characters in the subject
(stupid spam!).
$spam++;
} else {
$saved++;
$spam++;
} else {
$saved++;
+ my $from = [@{$headers{'from'}}]->[-1];
+ my $subject = [@{$headers{'subject'}}]->[-1];
+ $from =~ s/[[:cntrl:]]/?/g;
print("\r");
print(' ' x $COLUMNS);
printf("\r\%-${nf}s \%${nm}d \%-${nF}s \%s\n",
substr($mhfolder, 0, $nf), substr($msgnum, 0, $nm),
# XXX shouldn't pop, as these are about to be
# passed to post_store_hooks
print("\r");
print(' ' x $COLUMNS);
printf("\r\%-${nf}s \%${nm}d \%-${nF}s \%s\n",
substr($mhfolder, 0, $nf), substr($msgnum, 0, $nm),
# XXX shouldn't pop, as these are about to be
# passed to post_store_hooks
- substr(pop(@{$headers{'from'}}), 0, $nF),
- substr(pop(@{$headers{'subject'}}), 0, $ns))
+ substr($from, 0, $nF),
+ substr($subject, 0, $ns));
}
for my $hook (@post_store_hooks) {
}
for my $hook (@post_store_hooks) {