About HyperNews
 Next-in-Thread Next-in-Thread
 Next Message Next Message

Question Do you want actual code? 

Forum: About HyperNews
Re: Idea Notifying Amins. when new members join (Sean Cease)
Date: 1996, Jan 31
From: Jeff Heinen

This was one of many things I was looking for my change from majordomo email lists to mutating HyperNews for deal with standard email lists, (HyperDomo? :_) )

So my question is "Do you want actual code?" or do you know enough perl?

It can be done by editing the member-lib.pl file when it calls sendmail, or you be actually be good and add a few vaiables to hnrc and print a BCC header.

Skip it. Here is some code im thinking about: (Its UNTESTED)
In hnrc: Add two variables,

$subNotify
If set to 1, then send subscription notices
$subNotifyList.
A comma seperated list of email address to notify

In member-lib.pl:
Right after the call to sendmail. That is, before that first print command. Add this line:

print HYPERNEWS "BCC: $subNotifyList\n" if $subNotify;

That should work, I have not gotten this far in my mutations, but this is what I just thought up. Keep in mind this is code on the fly, but if it dosnt work. Tell me, Ill think up something.

Disclaimer: Jeff makes not claims about this code. Use at your own risk. If it should reformat your hard drives, fry your CPU or hit on you. You must be having a very bad day.. :_)

I just had to.. Have fun...
-Jeff

 Next-in-Thread Next-in-Thread
 Next Message Next Message
Inline:
 1 1
 All All
Outline:
 1 1
 2 2
 All All

 Add Add
to: "Do you want actual code?"

 Members Members
 Subscribe Subscribe
 Admin Mode Admin Mode
 Show Frames Show Frames
 Help Help


|| About || Instructions || Test || Guestbook || Future || || Source || Installation || Consortium ||

Earn money with Scour!
Google
 
Web www.HyperNews.org
Earn money with Scour!