Re: conditional qconfirm-check based on "To" field?
Gerrit Pape <[email protected]>
| Newsgroups | gmane.comp.misc.pape.general |
|---|---|
| Message-ID | <20040128153558.21596.qmail@60c98d2fa0c5a3.315fe32.mid.smarden.org> |
On Tue, Jan 27, 2004 at 01:04:26PM -0800, Chris Wilkes wrote: > On Tue, Jan 27, 2004 at 03:54:25PM -0500, Toby Betts wrote: > > If I use the iftocc program found in the mess822 package, the best I can > > accomplish is a .qmail file like so: > > > > | qconfirm-check -d homedir/.qconfirm iftocc [email protected] > > ./Maildir/ > > > > This functions rather well in the sense that qconfirm-check runs iftocc, > > and if the OK address is in either the "To" or "Cc" field, > > qconfirm-check will let the message through, which is very very close to > > being what I want. > You should be able to use the condtomaildir program from > http://www.superscript.com/qtools/intro.html > like so: > > | condtomaildir ./Maildir/ iftocc [email protected] > | qconfirm-check -d homedir/.qconfirm > ./Maildir/ Another possibility is to use: |qconfirm-check -d./.qconfirm sh -c 'qconfirm-check-mid || iftocc [email protected]' This has the advantage that iftocc (and condtomaildir) is not run for every repeating local delivery qconfirm-check is deferring until a confirmation request is received, or queuelifetime is expired. Generally the program delivery to qconfirm-check should be the first delivery instruction in a .qmail file. Regards, Gerrit.