conditional qconfirm-check based on "To" field?
"Toby Betts" <[email protected]>
| Newsgroups | gmane.comp.misc.pape.general |
|---|---|
| Message-ID | <[email protected]> |
I'd like to conditionally allow certain people to send me messages, unconfirmed, based on the "To" address they use. While qconfirm can easily be taught which senders' addresses are acceptable and which are not, I cannot find a good way to tell qconfirm-check to pass through certain messages based on the address in the "To" field. Not all of these addresses share the same username or domain, so I can't use "user-extension" style .qmail files. 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. Still, I need to be able to use qconfirm-check-mid to spot replies and followups to messages that I've sent. This complicates things incredibly. Does anyone have a good example of a .qmail file that will conditionally run qconfirm-check and qconfirm-check-mid dependent on the address in the "To" field? Toby