Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: email builder <emailbuilder88@ya...> - 2011-10-27 02:27:52
|
>> I want to send a notification to the recipient ($LOGNAME) under certain > conditions. This is in addition to normal message delivery. >> >> A couple issues arise: >> >> 1) This creates a mail loop. To prevent this, we currently create a file > in the home directory whose presence indicates that the notification was sent > and doesn't need to be re-sent. This works fine, but I'd like to know > if there is a better way to handle this. > > Add a custom header to the notification mail. That tells you it's a > notification mail. > > But why even send the mail in the first place, when you have the mailbox right > there. Just assemble your message, and deliver it directly to the mailbox. Ah yes - hard to see the forest for the trees (vice versa?)! But how do you deliver a secondary message to the maildir? The to/cc commands only send the incoming message as far as I can tell from the docs (and eventually we want that to happen, too, so we don't want to lose/overwrite the original message). It doesn't seem like a good idea to write out a filename to the maildir in a format that's different from what Courier expects. Sorry, but can you provide a little more assistance on this? THANK YOU!!!! |