2007-11-19 23:05

by Vasil Kolev

Днес ми върви на такива работи:

#!/bin/sh
for i in `grep mailman 02fsa-alias|grep -v \#|cut -d : -f 1 `; do
        cmd=`grep -w ^$i: 02fsa-alias|cut -d \| -f 2-|sed 's/\//_/g'`;
        sed "s/CMD/\|$cmd/;s/_/\//g" procmailrc.template  > /home/fsa/mail/conf/procmailrc.$i
        sed -i 's/^'$i':.*$/'$i': | procmail _home_fsa_mail_conf_procmailrc.'$i'/;s/_/\//g' a2
done
mailq |grep -B 1 ^daemon|grep Nov|awk '{print $2}'|xargs -n1 cancelmsg

Tags:

One Response to “2007-11-19 23:05”

  1. Георги Иванов Says:

    Бахти заклинанията.

Leave a Reply