Re: qconfirm-check + qconfirm-check-mid + qconfirm-cdb-check possible?
Gerrit Pape <[email protected]>
| Newsgroups | gmane.comp.misc.pape.general |
|---|---|
| Message-ID | <20050624080400.12313.qmail@ddbf2787eee2d7.315fe32.mid.smarden.org> |
On Wed, Jun 22, 2005 at 05:16:32PM +0800, Ronald Ip wrote: > Is this in .qmail workable? > ---cut--- > |qconfirm-check -d/home/iphoting/.qconfirm qconfirm-check-mid -a > '@iphoting.com' qconfirm-cdb-check > ./Maildir/ > ---cut--- qconfirm-cdb-check is used as argument to qconfirm-check-mid here. You can only specify exactly one program to be run by qconfirm-check; qconfirm-check-mid currently doesn't support running another program. > Note that I've chained qconfirm-check-mid and qconfirm-cdb-check > together. Apparently, qconfirm-cdb-check doesn't seem to be invoked for > my case as addresses in ok.cdb isn't allowed into my mailbox. Only in > ~/.qconfirm/ok/ and qconfirm-check-mid. > > So, is there a correct way to use more than one prog in qconfirm-check? > Or is a wrapper script required? A wrapper is required, something like this should work (all in one line): |qconfirm-check -d/home/iphoting/.qconfirm sh -c 'qconfirm-check-mid -a "@iphoting.com" || exec qconfirm-cdb-check' Regards, Gerrit.