HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Re[2]: Send notify to multi user with different email



Hi All

I did some change and it works.

I add those line into the faxrcvd(after line250)
$NOTIFY_CELL=someone
        (echo "To: $TOADDR"
         echo "From: The HylaFAX Receive Agent <$FROMADDR>"                
         echo "Subject: Fax received from $SENDER";
         echo ""
        ) | 2>&1 $SENDMAIL -f$FROMADDR -oi $NOTIFY_CELL

It works fine. <someone> will be define in the aliases file.


Thanks


ALex



On Mon, 24 Apr 2006 11:21:59 -0400
Alex Wang <hadyn_whx@xxxxxxxxxxx> wrote:

> Thanks
> 
> Any example for the script? I am not a programmer....;P
> 
> 
> ALex
> 
> On Mon, 24 Apr 2006 15:47:54 +0100
> A J Stiles <hylafax_resp@xxxxxxxxxxxxxxx> wrote:
> 
> > On Monday 24 April 2006 14:49, Alex Wang wrote:
> > > Hi All
> > >
> > > Having a question about the sending notify to the multi user.
> > >
> > > For example, I have a user called faxmaster, and another user called
> > > enduser. What I need to do is, the faxmaster can get the fax with pdf
> > > file atteched, (that's the way it does, I have no problem with this one.)
> > > But at the same time, I need to send another email to enduser just
> > > saying there is a fax coming from xxx-xxx-xxxx, so they can check the
> > > fax.
> > >
> > > Make it sample word;
> > > Fax--->notify the faxmaster with the pdf file----------DONE
> > >
> > > |----------------->notify other user just saying there is a fax in---how?
> > >
> > > How can I do that?
> > 
> > Create a procmail recipe which will be triggered whenever faxmaster receives 
> > the fax notification.  Use the "c" flag to make sure it acts on a copy of the 
> > message, not the original message itself.  Have this run a script, which will 
> > get the copy of the message  {including attachments; exactly like the results 
> > of `cat /var/mail/$LOGNAME`}  on its own STDIN.  This script can then parse 
> > the message, pick up on the important bits and decide what to do based upon 
> > what it sees.
> > 
> > Assuming your script is saved as /usr/local/bin/icf_notify, just append this 
> > to faxmaster's .procmailrc file:
> > 
> > :0c
> > |/usr/local/bin/icf_notify
> > 
> > Also, make sure that the .procmailrc file belongs to the faxmaster user and 
> > has permissions 600.  
> > 
> > --
> > AJS
> > 
> > ____________________ HylaFAX(tm) Users Mailing List _______________________
> >   To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
> >  On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
> >   *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*
> 
> 
> 
> 
> ____________________ HylaFAX(tm) Users Mailing List _______________________
>   To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
>  On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
>   *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions