* David T-G <davidtg-muttusers@xxxxxxxxxxxxxxx> [2003-09-04 22:50]: > ...and then Olaf Schulz said... > % > % Hallo David, > > Hiya! (even though I'm not the most recent David! Ahh, but I am ;-) > Let's figure out how it should look first. Let's say I want to EXCLUDE > from my alternates > > laura(tg)?@... > madi(tg)?@... > quin(tg)?@... > > but include anything else at the domain. How would you write that?(!!?) Time to get silly. How about taking a list of known addresses with tags on the ones you want to exclude (with a comment, or whatever). Let's use the <insert MTA here> aliases file to do this. Let's assume for this simple case that the domain is the same for all addresses. laura #noalt madi #noalt quin #noalt myaddress1 myaddress2 myaddress3 Then your alternates that you would want would look like this, ( again using a simple case): set alternates="(myaddress1|myaddress2|myaddress3)@domain.com" So all you need to do is have a script that parses the source file and cats the lines together from the addresses you have specified. Another possibility in case other people want to do this as well is to have the comment tags defined based on each person: laura #laura_alt lori #laura_alt madi3 #madi_alt madi2 #madi_alt madi3 #madi_alt quin myaddress1 #david_alt myaddress2 #david_alt myaddress3 #david_alt This would allow the script to look for all the tags associated with a given person. All in all not TOO bad, but definitely a little silly. Of course, this would work only for addresses you had direct control over. Any alternates that are outside your server would have to be in ANOTHER file (or listed as a different type of comment) and catted as part of the script. -- David Rock david@xxxxxxxxxxxxxx
Attachment:
pgpKQmQd5C94L.pgp
Description: PGP signature