From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Authentication-Warning: vladregion.ru: vaa set sender to alt@vladregion.ru using -f Date: Thu, 29 Mar 2007 10:23:31 +0400 From: Alexander Volkov To: ALT Linux sysadmin discuss Message-ID: <20070329062330.GE6369@vladregion.ru> Mail-Followup-To: ALT Linux sysadmin discuss References: <20070328095621.GC6369@vladregion.ru> <460AC000.6030704@sakhalin.ru> <20070329043542.GD6369@vladregion.ru> <460B5275.60408@sakhalin.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <460B5275.60408@sakhalin.ru> User-Agent: Mutt/1.4.2.1i X-AV-Checked: ClamAV Subject: Re: [Sysadmins] mailcopy via maildrop X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Linux sysadmin discuss List-Id: ALT Linux sysadmin discuss List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Mar 2007 06:23:47 -0000 Archived-At: List-Archive: 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 about the current project status, save it in Mail/project, then forward a copy to John: if (/^From: *boss@domain\.com/ \ && /^Subject:.*[:wbreak:]project status[:wbreak:]/) { cc "!john" to Mail/project } я попытался сделать аналогично... -- Regards, Alexander