From: Andrii Dobrovol`s`kii <dobr@iop.kiev.ua>
To: "ALT Linux sysadmins' discussion" <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] очередь сендмыла
Date: Fri, 31 May 2013 13:04:08 +0300
Message-ID: <51A87598.1080706@iop.kiev.ua> (raw)
In-Reply-To: <201305311033.27076.a_s_y@sama.ru>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Sergey wrote:
> On Thursday 30 May 2013, Andrii Dobrovol`s`kii wrote:
>
>> Возможно ли рулить очередью сендмыла на уровне отдельных
>> писем? Например удалить из очереди все письма конкретного
>> отправителя? Или это из области фантастики?
>
> Никакой фантастики. Я даже с mailq не заморачиваюсь.
>
> #!/bin/bash
>
> ALIEN='какой-то признак поуникальнее'
>
> for QN in `seq -f %03g 20`; do echo queue$QN find
> /var/spool/mqueue/queue$QN/ -type f -print0 | 2>/dev/null xargs
> -0 egrep -l "$ALIEN" | \ cut -d '/' -f6|cut -b 3- | \ while
> read f; do \ rm -f /var/spool/mqueue/queue$QN/*$f; \ done done
>
> Можно в find добавить -regex ".*\/qf.*", если достаточно по
> данным заголовка ориентироваться.
>
:)
Может и проще... для Вас... Я навыков беглого чтения баш-скриптов
не владею.
- --
Rgrds,
Andriy
*********************************************************************
email: dobr at iop dot kiev dot ua Kyiv, Ukraine
Phone: (380-44) 525-7824 Department of Gas Electronics
Fax: (380-44) 525-2329 Institute of Physics of NASU
*********************************************************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/
iF4EAREIAAYFAlGodZUACgkQpBPgR3404hNjbAEApGzVWZksm8nRtoRPER599vVJ
9ejBQiSrXIw2fa55jAIA/1aGV8hOXMG8IGssG76MZqAQN/XzDrC5Gszlizo3NtgB
=+eSG
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2013-05-31 10:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-30 15:10 Andrii Dobrovol`s`kii
2013-05-31 6:33 ` Sergey
2013-05-31 10:04 ` Andrii Dobrovol`s`kii [this message]
2013-06-02 22:06 ` Sergey
2013-06-03 11:59 ` Andrii Dobrovol`s`kii
2013-06-03 14:46 ` Sergey
2013-06-03 15:35 ` Andrii Dobrovol`s`kii
2013-06-03 16:11 ` Sergey
2013-06-18 17:26 ` Sergey
2013-06-19 10:05 ` Andrii Dobrovol`s`kii
2013-06-19 15:10 ` Anton Gorlov
2013-06-19 15:23 ` Andrii Dobrovol`s`kii
2013-06-21 11:58 ` Sergey
2013-06-22 8:24 ` Sergey
2013-06-21 11:55 ` Sergey
2013-06-25 11:16 ` Andrii Dobrovol`s`kii
2013-05-31 10:02 ` Andrii Dobrovol`s`kii
2013-05-31 13:05 ` Andrii Dobrovol`s`kii
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=51A87598.1080706@iop.kiev.ua \
--to=dobr@iop.kiev.ua \
--cc=sysadmins@lists.altlinux.org \
/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 sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git