Hey all,
For those running procmail as their MDA, this recipe works great to
keep users from opening the file on accident. It just puts .txt at the
end of the filename, so when it gets double clicked, notepad comes up.
:0
*^Content-type: (multipart/mixed|application/octet-stream)
{
:0 B
*^Content-Disposition: (attachment|inline);
*filename=".*\.(vbs|scr|pif)"
{
:0 fbw
|/usr/bin/sed -e
's/\([nN][aA][mM][eE]=".*\.[vV][bB][sS]\)"/\1.txt"/' \
-e
's/\([nN][aA][mM][eE]=".*\.[sS][cC][rR]\)"/\1.txt"/' \
-e
's/\([nN][aA][mM][eE]=".*\.[pP][iI][fF]\)"/\1.txt"/'
}
}
This archive was generated by hypermail 2b29 : Fri Feb 06 2004 - 11:46:48 EST