ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Alexey I. Froloff" <raorn@altlinux.org>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] фильтры в procmail
Date: Sat, 11 Apr 2009 02:12:38 +0400
Message-ID: <20090410221238.GA5826@altlinux.org> (raw)
In-Reply-To: <a5a6a8800904101148qb7f8a05t7184db96525a0ab4@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 819 bytes --]

* Михаил Шувалов <shuvalov.mv@> [090410 22:51]:
> > > From mike@to-18-2.fss.spb.ru  Thu Apr  9 17:54:54 2009
> > >  Subject: test 72
> > >   Folder: /var/spool/mail/mike                                                69406
> > А тут блок просто не выполнился.
> Почему Вы так решили? Ведь и извлечение файла произошло и копия письма
> ушла в мой ящик.
Если письмо попало в дефолтный бокс, значит оно не обработалось
правилом.

> Собственно все получилось с таким правилом
> :0 c
> * ^From.*shmikes@yandex.ru
> | /home/mike/testmail
> Если есть другие предожения - с удовольствием выслушаю.
Можно добавить в начало файла что-то вроде:

tmpfile="$(mktemp -t msg.XXXXXXXXXX)"
trap 'rm -f -- "$tmpfile"' EXIT
cat > "$tmpfile"

И дальше всё делать с этим временным файлом.

-- 
Regards,
Sir Raorn.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-04-10 22:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-08  8:21 Михаил Шувалов
2009-04-08 10:39 ` Alexey I. Froloff
2009-04-08 13:05   ` Михаил Шувалов
2009-04-08 13:29     ` Alexey I. Froloff
2009-04-09 14:28       ` Михаил Шувалов
2009-04-09 14:58         ` Alexey I. Froloff
2009-04-10 18:48           ` Михаил Шувалов
2009-04-10 22:12             ` Alexey I. Froloff [this message]
2009-04-11 13:47               ` Михаил Шувалов

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=20090410221238.GA5826@altlinux.org \
    --to=raorn@altlinux.org \
    --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