procmail
[Top] [All Lists]

Re: Which characters to quote ?

2005-04-04 09:49:43
Dallman Ross schreef:
Michelle Konzack:

I decode it with:

formail -zX Subject: |mimedecode |\
                      tr -d $'\t' |tr -d $'\n' |tr -d $'\r' |\
                      sed "s,\ \ , ,g"

which works quiet well...  :-)

Crimeney, but that is ugly.

  formail -zX Subject: | 
  mimedecode |
  sed -e ':a'
      -e '$!N; s/\n/ /; ta'
      -e 's/[[:space:]]\{1,\}/ /g'

-- 
Grtz, Ruud

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail