ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: ASA <llb@udm.ru>
To: "Прокопьев Евгений" <community@altlinux.ru>
Subject: [Comm] Re[2]: [Comm] Re: procmail - автоответчик
Date: Thu, 28 Nov 2002 17:40:33 +0400
Message-ID: <10025645316.20021128174033@udm.ru> (raw)
In-Reply-To: <3DE617AC.3020805@rmts.donpac.ru>

Hello Прокопьев,

Thursday, November 28, 2002, 5:18:36 PM, you wrote:

>>>Как в .procmailrc описать правило, согласно которому всем,
>>>приславшим письмо на info@servername.ru, автоматически
>>>высылался ответ?
...
ПЕ> Я понимаю, что это должно быть что-то вроде

ПЕ> :0
ПЕ> * ^To:.*info@servername.ru
ПЕ> echo "С Вами говорит автоответчик" | mail ^From

ПЕ> Но как по-настоящему передать mail'у содержимое поля From отправителя?

А может использовать не procmail, а перловый (или еще на
чем-нибудь, даже sh+sed сгодится) скрипт и вызывать его в
/etc/aliases: 
info: |/usr/local/bin/script

Все. Письмо скормится скрипту полностью, с заголовками (через
stdin). дальше $head=new Mail::Header \*STDIN;

-- 
Best regards,
 ASA                            mailto:llb@udm.ru



  parent reply	other threads:[~2002-11-28 13:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-28 10:52 [Comm] " Прокопьев Евгений
2002-11-28 11:09 ` [Comm] " Vitaly Ostanin
2002-11-28 13:18   ` Прокопьев Евгений
2002-11-28 13:37     ` Antonio
2002-11-28 13:38     ` Dmytro O. Redchuk
2002-11-28 13:43       ` Dmytro O. Redchuk
2002-11-28 13:40     ` ASA [this message]
2002-11-28 13:44       ` [Comm] Re[2]: " Andrew Nazarkin
2002-11-28 13:57 ` [Comm] " Artem Pastukhov

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=10025645316.20021128174033@udm.ru \
    --to=llb@udm.ru \
    --cc=community@altlinux.ru \
    /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