Berkeley CSUA MOTD:Entry 10262
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/04 [General] UID:1000 Activity:popular
4/4     

2003/9/20-21 [Computer/SW/SpamAssassin] UID:10262 Activity:high
9/19    I have filtered my mailbox with
        formail -s spamassassin < mailbox > mailbox.filtered
        Next how do I process the mailbox.filtered file with my procmail
        ruleset to get it to sort the messages based on the SpamAssassin
        score?
        \_ Something with formail and procmail itself, I'd imagine.
        \_ Use spamc instead of running spamassassin; it's much faster (it
           uses the persistent running spamassassin daemon on soda).
        \_ you can use mutt, "tag" all messages flagged as spam,
           "save all tagged messages" to a folder.  I am too lazy
           to look up the exact keystrokes to do this right now.
           I don't know what all these mh losers are talking about.
           \_ oh! mh losers! I'm struck to the quick!  You don't know what
              the mh using uber cool rock stars are talking about because
              you're using a toy to deal with your mail.  MH users don't have
              to say, "oh! its easy but I'm too lazy to look it up!" because
              there's nothing to look up.  All the mh tools work the same and
              were designed from day 1 to work with each other as a total mail
              handling package.  Maybe you'll make better choices in your next
              life.  I wish you well.
                \_ where do you live?  I want to have sex with you.
                   \_ I wouldn't want to be unfaithful to yermom.  Best wishes.
        \_ soda's mutt has sa-score sort/reverse-sort capabilities.
           use (o)rder or reverse-(O)rder interactively, or see
           ~jwang/.muttrc for useful folder-hooks.
           \_ Thanks, I'll check that out but right now I want to
           \_ Thanks, I'll check that out but right now I wasn to
              delete or move stuff flagged as spam to a spam folder.
              I need to do this to 1000+ messages so I dont want to
              use mutt.
              \_ Um.  Mutt's plenty fast.  I routinely do operations on
              use mutt.
                 thousands of messages.
              \_ Real Men(c) use mh.  Once you've used the real thing, you'll
                 never go back.
                 \_ Right, cuz you'll be so fucking frustrated that you'll
                    never log in again.
                    \_ Hmmm... yeah.  The core commands you need to know:
                        next: shows you the next messsage
                        prev: show you the previous message
                        show: shows you the current message
                        repl: replies to current message
                        forw: forwards current message
                       Yeah, this is hard.  To quote yermom, "Unix is hard!
                       Let's go shopping!"  Although for dunderheads like
                       yourself, there are pretty little GUI frontends so
                                \_ don't forget comp
                       you don't have to worry your pretty little head with
                       all those self descriptive 4 letter commands.
                       \_ don't forget comp
                          \_ oh yeah, forgot.  Knowing how to compose an email
                             is probably a good idea.
                       \_ If it's that simple, Real Men(c) have no business
                          using it.
                          \_ We're Powerful(c), not stupid.  MH is easy *and*
                             powerful *and* flexible since all the tools follow
                             the unix philosophy of chaining tools that each
                             do one thing and do it well without bloat.
                             do one thing and do it well without bloat.
                             \_ Technically, you seem pretty sharp...pop
                                culturally, you're a freaking moron.
                                Although....that's not such a bad trade-off.
                                \_ Pop culturally?  Ok, I'll bite.  How so?
                       \_ Can someone answer my question!  How do I send a
                          mailbox marked up my SpamAssassin through my
                          procmail sorting rules?  -OP
                          \_ We're in a mail program flame war.  Since they
                             all integrate with procmail that's not very
                             interesting, is it?  In mh you'd do something
                             like:
                                refile `pick -subject SPAM +inbox` +spamfolder
                             This assumes you've allowed spamassassin to
                             rewrite your subject lines.  Normally, you'd not
                             need to do this because you'd sort from procmail
                             after spamassassin has done it's job in an
                             earlier procmail recipe.  Another mh convert is
                             born... welcome to the fold.
                             \- I dont want to have my mail spool exploded
                                into different message and then have to repack
                                them.
                                \_ Why would you repack your mailspool?  The
                                   idea is to get away from the dangerous
                                   and difficult to manage one-file mailspool.
                                   You shouldn't *want* a mailspool file.  But
                                   if you really must, just snarf each message
                                   in a loop (I suggest perl) and simply pipe
                                   it through procmail.  I don't know wtf psb
                                   is trying to tell you to do down below.
                                      \- E_TOOSHORT
                                   in a loop (I suggest perl) and simply pipe
                                   it through procmail.  I don't know wtf psb
                                   is trying to tell you to do down below.
                                      \- E_TOOSHORT
                                         \_ No, it just doesn't make sense to
                                            run your mbox through that mess
                                            when there are already perfectly
                                            good tools and APIs available.  I
                                            can read your code.  I just wouldnt
                                            do something that insane.  --tall
                                \- i'd either use mailagent or flex but there
              use mutt.
                       all those self descriptive 4 letter commands.
                                   is sort of a klugy way by doing something
                                   like this:
                         ( echo 'set screen=10000' ; echo 'h 1-$' ; echo x ) |
                         mail -f mbox.spamc | grep SPAM | awk '{print $1}' |
                         (tr or sed ... something to just keep the numbers)
                         and then run the command again but pass the list of
                         message numbers to "echo d <>" | mail ... you will
                         have to do something sane with newlines.
                         the details depended on mailrc settings and which
                         mail program. but the approach generalizes.--psb
2025/04/04 [General] UID:1000 Activity:popular
4/4     

You may also be interested in these entries...
2012/8/16-10/17 [Computer/SW/SpamAssassin] UID:54458 Activity:nil
8/16    Why does my Y! mail account always full of unfiltered spam
        mails (and they're obviously spams)? Why can't they do
        a better job like Google mail? Why does Y! mail charge
        for exporting email? Google mail doesn't do that.
	...
2010/8/13-9/7 [Computer/SW/SpamAssassin] UID:53924 Activity:nil
8/12    Ugg, no spamd any longer?  I figured I'd have to just give up on my
        soda address (sad, very sad) but Vacation doesn't seem to be installed
        either, so I can't even leave a mesg. to people telling them where
        tom mail me now.  Or can I ?  Any advice out there.  Or can we get
        spamassassin/spamd reinstalled or Vacation or... help....
        \_ Ha, gmail as spamassassin.  presently I am forwarding to gmail
	...
2009/12/8-26 [Politics/Domestic/Crime, Computer/SW/SpamAssassin] UID:53580 Activity:low
12/8    Old news, but new to me:
        Spam King kills himself and his family after escaping prison
        http://blogs.zdnet.com/security/?p=1553&tag=rbxccnbzd1
        Hopefully more spammers will take the hint.
        \_ I wish the same fate can go to all marketing and
           advertising folks, selling people things they don't
	...
2009/8/18-9/1 [Computer/SW/Database, Computer/SW/Languages/Perl] UID:53283 Activity:low
8/18    trying to write an intentionally slow regex.
        what is your worst regex ever?
        this is using MySQL regexp but I'll also accept
        perl format         --brain
        \_ you need to know how regex is implemented internally in order to
           have a worst regex in terms of running time. Something that uses
	...
2009/7/17-24 [Computer/SW/SpamAssassin] UID:53157 Activity:nil
7/17    Thanks to steven, et al. for restoring Soda. In lieu of www.csua providing
        status, could there be a text file with current status and future plans.
        I'm wondering if SpamAssassin is obsolete (and my procmailrc and scripts)
        and won't be restored, and what's filtering spam now.  thanks!
        \_ How do I buy steven a beer or donate gobs of money?
           \_ I got him a Hacker-Pschorr, he seems to like ales.  Prob IPAs
	...
2009/5/8-14 [Computer/SW/SpamAssassin] UID:52971 Activity:nil
5/7     Dear csua, looks like /usr/bin/spamc and /usr/bin/formail don't exist
        on the emailer. I'm getting a bunch of binaries not found error
        on my .procmail-log.
    \_ Complaining via motd is not a reliable way to be heard and get your
       stuff fixed. Try emailing us. --t
	...