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

Conference forty2::mailbus_400

Title:MAILBUS 400 User Forum
Notice:kits 100-109 - Infocenter //www.digital.com/info/messaging
Moderator:IOSG::MARSHALL
Created:Thu Jun 11 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:3210
Total number of notes:9174

3164.0. "How to create the decoder script" by VMSNET::R_HARRIS () Wed Apr 09 1997 08:30

    Hello,
    
    I have a customer who is trying to create is own decoder script. He has
    v2.1 of the SMTP gw. However, he is reading from the v2.o
    documentation.
    
    Two questions. (1) Is the documentation in 2.1 more detailed on how to
    create a decoder script? He is following appendix D-22. It highlighs
    creating a encoder instead of the decoder. Is there more information  
    in v2.1?
    
    Do you create the decoder/encoder in pairs? 
    
    (2) When is the decoder invoked? Is this a manual operation? My
    understanding is that the decoder is used on the recipient end. For
    example, if a binary message file comes in, I must extract and run the 
    decoder to get my raw binary file. I am correct in this assumption? Or
    does the SMTP GW do it automatically?
    
    Thanks in advance for your support.
    
    Regards,
    
    Randy
T.RTitleUserPersonal
Name
DateLines
3164.1FORTY2::BOYESMy karma ran over my dogmaWed Apr 09 1997 15:577
1) There is still not much in the manuals in V2.1, just the brefeerence to the
(heavily commented) example files.

2) The decoder is activated automatically by the gateway on any SMTP message
that is identified not to be MIME.

+Mark+
3164.2Re: .1 - Still not clearVMSNET::R_HARRISWed Apr 09 1997 19:5814
    Re: .1
    
    << The decoder is activated automatically by the gateway on any SMTP
    message that is identified not to be MIME.>>
    
      How do I get the converter to invoke? There is not a Decoder
    Attribute on the SMTP entity. Do I just replace the decoder files with
    the new one I create. The documentation is unclear.
    
    Thanks in advance for your support.
    
    Regards,
    
    Randy
3164.3FORTY2::BOYESMy karma ran over my dogmaWed Apr 09 1997 20:115
If a file exists with the pathname specified in the docs
(mumble/custom_decode) it will automatically be used as the second-best
alternative to MIME decoding. The existence of the file triggers its use.

+Mark+
3164.4And the real problemVMSNET::R_HARRISThu Apr 10 1997 21:5816
    Re: .3
    
    Thank you for your responses. Now, the real problem is
    unvealed. Mail messages are coming over as UUENCODED messages. He must
    manually copy the message to disk, and run the DECODER manually. 
    
    He wants to create a decoder that will DECODE the messages on the fly.
    Is this possible?
    
    The decoders in /var/smtpgw do not seem to be working.
    
    Thanks in adavnce for your support.
    
    Regards,
    
    Randy
3164.5FORTY2::BOYESMy karma ran over my dogmaSat Apr 12 1997 16:0310
    The uuencode etc. scripts present by default in the /var/smtpgw
    directory are not the ones you are looking for: they are for atypical
    MIME content-type conversions (well-behaved MIME should be doing
    base64). The one you want to modify and copy to the location in the 
    manual (preserving a copy of the original, as always) is 
    /var/smtpgw/examples/custom_decode. With  *this* file in the right
    place, it will be used as the decoder should the first pass by the
    hardcoded MIME-parsing of the gateway draw a blank.
    
    +Mark+