script

Coverting Maildir to mbox

Submitted by sklav on Mon, 04/12/2010 - 15:12

#!/bin/sh
progname=`basename $0`
die(){ echo "$progname: $*">&2; exit 1; }
test $# -eq 1 || die "syntax: $0 maildirname"
cd "$1" || die "$0: cannot cd to $1"
test -d tmp -a -d new -a -d cur || \
die "$0: $1 does not appear to be a maildir"
find cur -type f|sort|while read f;do
formail -I 'Status: RO' <$f
done
find new -type f|sort|while read f;do
formail -I 'Status:' <$f
done

Note: This works on a per user basis but can be modified to work system wide.

Flac to Mp3 Simplified for Linux

Submitted by sklav on Wed, 09/19/2007 - 09:49

The script listed below takes arguments in the following fashion. either you can specify a single file name to convert or you can specify a wildcard as example 2 shows.
Example 1: Flac2Mp3 01-The Black Parade.flac
Example 2: Flac2Mp3 *.flac

To use this script just copy and paste the section below and to a filename Flac2Mp3 and the chmod+x Flac2Mp3

If you have any questions please feel free to register and post a comment and i will do my best to answer.

***Update***
make sure that the (lame) package is installed if you using fedora / centos