On 2007-03-29 16:45:25 +1100, Dmitry Lebkov wrote:
DL> Alexander Volkov wrote:
DL> > On 2007-03-29 06:20:32 +1100, Dmitry Lebkov wrote:
DL> > L> Для начала: все действия maildrop с почтой - локальные. Т.е. если
нужно что-то,
DL> > DL> отличное от копирования файлов внутри локальной машины, смотреть надо
в другую
DL> > В последнем выражении должно копироваться другому локальному пользователю
DL> > - а никак.
DL> man mailfropfilter:
DL> ...
DL> An expression that begins with an exclamation mark, "!"
specifies a
DL> whitespace-delimited list of E-mail addresses to forward the
message
DL> to. The program specified by the SENDMAIL variable is run as an
exter-
DL> nal program, with the list of E-mail addresses provided as
parameters
DL> to the program.
DL> ...
DL> Т.е. сооббщение, попавшее под правило фильтра, будет отдано на доставку
программе,
DL> указанной в переменной SENDMAIL. И ей же будет отдан список адресов
"!user1, !user2"
DL> в виде параметров.
и в то же время man maildropex
Take all mail from <[EMAIL PROTECTED]> about the current project status,
save it in Mail/project, then forward a copy to John:
if (/^From: [EMAIL PROTECTED]/ \
&& /^Subject:.*[:wbreak:]project status[:wbreak:]/)
{
cc "!john"
to Mail/project
}
я попытался сделать аналогично...
--
Regards, Alexander
_______________________________________________
Sysadmins mailing list
[email protected]
https://lists.altlinux.org/mailman/listinfo/sysadmins