Berkeley CSUA MOTD:Entry 15606
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/11/23 [General] UID:1000 Activity:popular
11/23   

1999/3/18 [Computer/SW/Languages/Perl, Computer/SW/Languages/Misc] UID:15606 Activity:high
3/17    Hi, I'm looking for a mail filter that strips everything except the
        flat ASCII text.  All that mime type thing, HTML tags, jpg attachments,
        etc, are all not worth having.  I want to pipe a piece of mail through
        it, so it should know the mail header as opposed to just get rid of
        everything in between '<' and '>'.  Thanks!
                \-if you are tall enough, mailagent. --psb
        \_ awk is your friend
           \_ Would sed be actually easier for this case, or no?
              Something like 's/<.*>//g'? (not exactly correct, but close)
              \_ no. tags can span multiple lines.
        \_ I pipe everything through a perl script, but not for the same
           reason you do.  You could easily write something that did
           everything you want and more but you'd probably end up with your
           own version of something that already exists anyway.  I've never
           looked at mailagent as suggested by psb.  procmail and perl do it
           for me for now.  I read and reply with mh if it matters to you.
                \_ That's exactly my point.  I can spend the time writing a
                   customized filter or searching for one already written
                   by someone else.  Ugh...  It's looking more like I'll need
                   to write one myself.  HTML mail is just annoying and evil.
                   But I have a feeling that the days of 100% pure flat ASCII
                   email are gone.  -too old to change
                \-mailagent has a perl escape and does some of the harder
                parsing fo ryou. --psb
                \_ I figured it was something like that.  I just pipe all the
                   html-ized crap through lynx and if lynx can't deal with it,
                   then I just skip it and go on.  Got a URL for mailagent?
                   \_ Ok, found it.  The docs say it stops at the first match
                      which will break some of my filtering.  Does mailagent
                      do anything that procmail doesn't?
2024/11/23 [General] UID:1000 Activity:popular
11/23   

You may also be interested in these entries...
2013/4/9-5/18 [Computer/SW/Mail, Academia/Berkeley/CSUA] UID:54647 Activity:nil
4/8     What's a good free e-mail provider? I don't want to use Gmail,
        Yahoo, Outlook, or any of those sites with features I never use that
        track my personal info and keep changing their interface. I want just
        simple e-mail without privacy issues or all the baggage these large,
        for-profit companies are adding. I might even be willing to pay.
        Recommendations?
	...