nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Selecting messages with a range of Spam scores

2015-02-21 12:12:12
Thus said norm(_at_)dad(_dot_)org on Sat, 21 Feb 2015 07:22:25 -0800:

Your  reply strong  suggests that  there is  presently no  nmh way  of
extracting the content of a component, taking account of multi-lined ,
MIME stuff, etc.

For  this, I  typically rely  on 822field  (from mess822[1])  which will
easily handle multi-line headers:

$ pick --X-Spam-Status score= | xargs mhpath | head -1 | while read x; do 
printf '%s\t%s\n' "$x" "`822field X-Spam-Status < $x`"; done
/home/amb/Mail/inbox/884         No, score=5.5 required=8.0 
tests=ALL_TRUSTED,BAYES_50, 
DCC_CHECK_NEGATIVE,HTML_MESSAGE,TVD_RCVD_IP,T_XMDrugObfuBody_08,TooManyTo_001,  
TooManyTo_002,TooManyTo_003,TooManyTo_004,TooManyTo_005,XMBlogspot,    
XMSolicitRefs_0,XMSubMetaSx_00 autolearn=disabled version=3.3.2

[1] http://cr.yp.to/mess822.html

Andy
-- 
TAI64 timestamp: 4000000054e8ca69



_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>