[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

3294.0. "Auto-forw to Dist List?" by SUBWAY::OLOFSON (DEBORAH OLOFSON) Fri Sep 17 1993 19:07

    My customer is trying to autoforward from one account to a distribution
    list.  Does anyone know if this is possible?  If it is not possible
    with the standard product but can be customized to accommodate the
    customers request than I would be interested to know how complicated it
    would be to do the customization.  It is also possible that it cannot
    be done for a good reason, and if that is the case I would like to
    present the reason to my customer so they understand.
    
    Any help greatly appreciated.
    
    Debbie
    d 352.2129
T.RTitleUserPersonal
Name
DateLines
3294.1the reasonAIMTEC::WICKS_AU.S.A 2 England 0 - I was there!Fri Sep 17 1993 19:4618
    Debbie,
    
    this has been discussed many many times before .... ALL-IN-1 does not
    implement true auto-forwarding but instead implements a service known
    as redirection.
    
    redirection involves a 1-for-1 replacement of addresses i.e replace
    OLOFSON by WICKS so since a distribution list isn't just one address
    but rather a pointer to a list of addresses you aren't allowed to do
    this.
    
    I'm sure that you could do a customisation that did a read-new-mail
    followed by a forward to a distribution list though.
    
    
    Regards,
    
    Andrew.D.Wicks
3294.2Use AMTS?BOOZER::MARTIN::BELLMartin Bell, NTCC, Birmingham UKFri Sep 17 1993 21:5712
    Debbie,
    
    if the account from which the "auto-forward" is to be performed is a
    permanent setup, rather than making it a normal ALL-IN-1 account,
    create a PROFIL entry with a special MAIDES field pointing to a command
    file to actually send the message to a distribution list.
    
    Can you give us any more details as to exactly WHY you want to
    auto-forward to a distribution list?
    
    mb
    
3294.3ALL-IN-1 Personal AssistantIOSG::BILSBOROUGHSWBFSSat Sep 18 1993 19:4513
    
    Debbie,
    
    One explanation I heard was so that you wouldn't have mail loops.  
    
    However, (apologies for the advert)  ALL-IN-1 Personal Assistant will do
    this gladly and is very easy to do.
    
    Why customise when you can buy :-)
    
    Hope this helps.
    
    Mike
3294.4Thanks!NYOS02::OLOFSONDEBORAH OLOFSONThu Sep 23 1993 18:435
    Thanks for the suggestions.  I will be meeting with the customer to
    discuss on 9/28 and will find out more about why they want to do this.
    
    Regards,
    Debbie
3294.5Yes on Perm Account for AFNYOS02::OLOFSONDEBORAH OLOFSONWed Sep 29 1993 15:079
    The customer wants to set up one account (not user account) to auto-
    forward to a distribution list. (as in note .2).  Can I get more 
    details on how the customer set it up?  If someone has already done
    this I would really like to get a copy of the command file to see whats
    being done.
    
    Thanks very much.
    
    Debbie
3294.6MAIDESBOOZER::MARTIN::BELLMartin Bell, NTCC, Birmingham UKMon Oct 04 1993 12:3026
Debbie,

        when mail is sent to an ALL-IN-1 user account, the code checks
the MAIDES field in PROFIL to determine how the user wishes to receive
their mail. Some of the more common values in this field are ALL-IN-1,
VMSMAIL or NOMAIL, and the actions for these choices are hard-coded into
ALL-IN-1.

If the value in the field is not one of the hard-coded values, ALL-IN-1
looks for a command file of the same name, and executes that to actually
deliver the message. The Application Programming: Guide, Page 18-6,
describes how the thing works.

Although i haven't actually tried it, when the FETCHER runs to deliver
a message to the  "dummy" account, it should be able to run this command
file, which can then build a message to a distribution list and send it.

You would have to be careful to avoid infinite loops and be able to
handle attachments etc.

If i get time i will write some example code,

good luck,

mb
 
3294.7Prototype ...BOOZER::MARTIN::BELLMartin Bell, NTCC, Birmingham UKMon Oct 04 1993 13:0134
I just gave it a quick try, and it worked (sort of) ...

I created a PROFILe entry called DISTRIB, which has a MAIDES of DISTRIB.

In OA$LIB was a command file:

distrib.com
===========
$ write oamailbox "oa do DISTRIB"
$ @dclmailbox:

Which calls do script:

distrib.scp
===========
mail create/open
mail to "BELL"
mail subject "Test to dist"
mail text "Hi Martin"
mail text " IT WORKS!"
mail close_message
mail send

And when i sent a message to DISTRIB, a mail message was sent to BELL
automatically.

Admittedly there were several error messages, but the basic idea seems
to work. You will need to include the file pointed to by #MAILFILE in
the forwarded message, and create the required distribution list, plus
do checks and fix the any errors.

Have a play around yourself and see what you come up with.

mb
3294.8BOOZER::MARTIN::BELLMartin Bell, NTCC, Birmingham UKTue Oct 12 1993 10:279
Debbie,

	have you given the code a try yet?

	if you don't have the necessary programming skills, then give
	a shout - i am sure we can come up with a more complete example,
	or even find someone to write the code for your customer.

	mb