From: Igo <altlinux@aaanet.ru> To: shigorin@gmail.com, ALT Linux Community <community@lists.altlinux.org> Subject: Re: [Comm] сообщения в postfix Date: Tue, 15 Aug 2006 09:17:17 +0400 Message-ID: <44E158DD.9000108@aaanet.ru> (raw) In-Reply-To: <20060814220254.GV1490@osdn.org.ua> извиняюсь за большое письмо [root@localhost /]# cat /home/igo/scripts/checkmail.sh #!/bin/bash /usr/sbin/postconf -e always_bcc= /sbin/service postfix reload PATHARC="/var/spool/mailarc" MAXSIZE=100000000 ARCHMBOX="/usr/local/bin/archmbox" MDIR="/var/spool/mail" DIRARC="/var/spool/mailarc" for i in `dir $PATHARC` do if [ $i != "gen" ]; then FILENAME=$PATHARC/$i FILESIZE=`ls -l $PATHARC/$i | awk '{print $5}'` if [ $MAXSIZE -le $FILESIZE ]; then rm -rf $FILENAME | mail igo -s "$FILENAME WAS REMOVED" fi fi done $ARCHMBOX -a -o 3 $MDIR/director -p $DIRARC .... $ARCHMBOX -a -o 3 $MDIR/anya -p $DIRARC echo "---------------General mail reserved " FILENAME="/var/spool/mail/gen" PATHARC="/var/spool/mailarc/gen" FILESIZE=`ls -l $FILENAME | awk '{print $5}'` GENDIR="/var/spool/mailarc/gen" CNT=0 DEL=40 for i in `dir -c $PATHARC` do FILENAME=$PATHARC/$i if [ $DEL -le $CNT ]; then # mail igo -s "$FILENAME - many archives" rm -rf $FILENAME | mail igo -s "$FILENAME WAS REMOVED" fi CNT=$(( $CNT+1 )) done FILENAME="/var/spool/mail/gen" OUT=`date "+%Y%m%d%H"` if [ $MAXSIZE -le $FILESIZE ]; then $ARCHMBOX -a --bzip2 -c -e $OUT -o -1 $FILENAME -p $GENDIR fi /usr/sbin/postconf -e always_bcc=gen /sbin/service postfix reload --------------------------- это отчет от крона , никаких ошибок в нем нет. djusting environment for postfix: [ DONE ] Reloading postfix configuration: [ DONE ] Null message body; hope that's ok Mailbox /var/spool/mail/director (23978 KB) Archived 0 messages out of 218 (0 KB) ...... Mailbox /var/spool/mail/anya (7238 KB) Archived 0 messages out of 69 (0 KB) ---------------General mail reserved Adjusting environment for postfix: [ DONE ] Reloading postfix configuration: [ DONE ]
next prev parent reply other threads:[~2006-08-15 5:17 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-08-11 11:54 Igo 2006-08-11 13:08 ` Коротков Георгий 2006-08-11 13:17 ` Igo 2006-08-11 13:21 ` Шенцев Алексей Владимирович 2006-08-11 14:03 ` Коротков Георгий 2006-08-12 18:39 ` Igo 2006-08-12 19:36 ` Igo 2006-08-14 6:06 ` Шенцев Алексей Владимирович 2006-08-14 6:20 ` Igo 2006-08-14 8:12 ` Michael Shigorin 2006-08-14 7:47 ` Igo 2006-08-14 8:54 ` Igo 2006-08-14 8:58 ` Шенцев Алексей Владимирович 2006-08-14 11:36 ` Michael Shigorin 2006-08-14 13:20 ` Sergei Boudnik 2006-08-14 22:02 ` Michael Shigorin 2006-08-15 5:17 ` Igo [this message] 2006-08-15 5:29 ` Sergei Boudnik 2006-08-15 6:17 ` Igo 2006-08-14 9:05 ` Коротков Георгий
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=44E158DD.9000108@aaanet.ru \ --to=altlinux@aaanet.ru \ --cc=community@lists.altlinux.org \ --cc=shigorin@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git