Patch Name: PHSS_9847 Patch Description: s700_800 10.01-[12]0 OpenMail B.04.01 Unix Gateway cumul. Creation Date: 97/01/16 Post Date: 97/01/29 Hardware Platforms - OS Releases: s700: 10.01 10.10 10.20 s800: 10.01 10.10 10.20 Products: OpenMail B.04.01 Filesets: OpenMail.OM-UNIX,B.04.01 OpenMail.OM-CORE,B.04.01 OpenMail.OM-AMECAT,B.04.01 OpenMail.OM-ENGCAT,B.04.01 Automatic Reboot?: No Status: General Superseded Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHSS_9847 Symptoms: PHSS_9847: 1653175109: Openmail does not cope with quoted printable character at start of subject. 1653173328: Openmail does not recognise Content-Transfer- Encoding=x-uuencode 1653193466 Mime out gateway incorrectly encodes DL entries if omconfux -a 2 is used. PHSS_9383: 1653188540: Message received by unix.in which performs INTERNET-ADDR mapping to convert the recipient address to an Openmail address. Sometimes the Teletex parts of the Openmail address are lost and the message is non-delivered. PHSS_9083: 1653172429: Message with appended files cannot go through the UUENCODE gateway. 5003315143: Messages with folded From: names from the Unix gateway end up with two From: names. 1653173310: Openmail Japanese MIME message with more than 256 bytes in the Subject causes extension problems. 1653152801: When an Openmail user sets an autoforward to a non-existant user on a remote machine, the Non-delivery report loops for ever. 5003305730: unix.in hangs when processing incorrectly encoded messages 1653173765: Unix gateway cannot understand the Japanese pre-Mime JIS format. D500276964: Unix Gateway does not preserve long DL's PHSS_8568: D500276543: Unix out gateway aborts when performing a character set conversion. 1653179077: Unix in gateway cannot handle incorrectly formatted base64 messages. PHSS_8147: 5003328971: MIME version number is not being included in the header of an attached message. PHSS_7383: 1653163030: Non-delivery coming in through the Mime gateway has incorrect tf type for the dl. PHSS_7184: D500249508: A series of changes to allow text (1167 and 1736) charset conversion configuration and steering with the MIME gateway. Changes include addition of a sys/mime.cs mapping file, and encoding/decoding of rfc-1522 style subjects, and the ability to have multiple steering files for the unix gateway (one per encoding method). See the SR for details of the new configuration options. This patch brings the GR3 support for Japanese MIME to the same level as the GR2 patches PHSS_7070 (HPUX 9) and PHSS_7052 (HPUX 10). Defect Description: PHSS_9847: 1653175109: Problem with the decoding algorithm for quoted printable decoding. 1653173328: Openmail Mime code enhanced to recognise the non-standard "x-uuencode" tag. 1653193466 Mime out gateway now quoted-printable encodes the DL after it has been converted to text. PHSS_9383: 1653188540: The unix in gateway attempts to convert T61 OR Name fields to its internal T61 format. This step is not necessary when address mapping is in effect and the Openmail address is already in the correct form. PHSS_9083: 1653172429: Problem with recursion in a routine within the UUENCODE gateway caused files never to be closed. 5003315143: Folding code was not implemented for the From:, To: Cc:, Bcc: and Reply-To: ARPA header fields. Now it has been added. 1653173310: MIME message was allowing Subject fields greater than 256 bytes in length to be written into the Transaction File, in contravention of the TF spec. The gateway has now been modified to truncate the Subject to 256 bytes before it is added to the TF. 1653152801: The unix.in gateway now checks for "MAILER-DAEMON" in the "Mail From:" SMTP command and sets the Disallow-Autoforward flag in the TF. 5003305730: The unix in gateway was failing to flush the standard input queue from sendmail when it encountered an illegally hex-encoded message content. 1653173765: If a nested (message/rfc822) message was received by the MIME in gateway, and no Content-type record was present, the MIME gateway would assume the content to be in US-ASCII character set. The UUENCODE/ SHAR gateway would have used the UXI_UNIX_MAIL_CHARSET general.cfg option to set up the default character set. The MIME gateway has now been changed to do the same. D500276964: If the Openmail unix in gateway receives a message with a large number of recipients in the ARPA header To: field, the DL which is created does not contain all the recipients. PHSS_8568: D500276543: Unix out gateway was corrupting a memory buffer when performing a character set conversion. 1653179077: Unix in gateway Base 64 handling code has been improved to handle possible error conditions. PHSS_8147: 5003328971: MS Exchange is not interpreting attached messages as as MIME attachments although they are. PHSS_7383: 1653163030: Incorrect file handle was being used when processing a non-delivery report through the Mime gateway. PHSS_7184: D500249508: A series of changes to allow text (1167 and 1736) charset conversion configuration and steering with the MIME gateway. Changes include addition of a sys/mime.cs mapping file, and encoding/decoding of rfc-1522 style subjects, and the ability to have multiple steering files for the unix gateway (one per encoding method). SR: 1653175109 1653173328 1653193466 1653188540 1653172429 5003315143 1653173310 1653152801 5003305730 1653173765 D500276964 D500276543 1653179077 5003328971 1653163030 D500249508 Patch Files: /opt/openmail/bin/unix.in /opt/openmail/bin/unix.out /var/opt/openmail/nls/C/ISO8859_1,N/msgcats/mc_102 /var/opt/openmail/nls/C/T61BASE,O/msgcats/mc_102 /var/opt/openmail/nls/AMERICAN/ISO8859_1,N/msgcats/mc_102 /var/opt/openmail/nls/AMERICAN/T61BASE,O/msgcats/mc_102 /var/opt/openmail/nls/ENGLISH/ISO8859_1,N/msgcats/mc_102 /var/opt/openmail/nls/ENGLISH/T61BASE,O/msgcats/mc_102 /opt/openmail/bin/ompatch /opt/openmail/patch/PHSS_9847/ompatch.idx what(1) Output: /opt/openmail/bin/unix.in: $Header: ux_in.c,v 5.73 96/11/28 10:22:05 tonyn Exp $ ---------------------------------------------------- ------------- PATCHED_B.04.01: 97/01/15 B.04.01.09 PATCHED_B.04.01: 96/12/06 X.04.01.08 PATCHED_B.04.01: 96/11/26 B.04.01.07 unix.in, unix.out ---------------------------------------------------- ------------- Sccs_Id = %W% $Header: ux_out.c,v 5.67.1.3 96/12/06 14:29:22 danny Exp $ $Header: discon.c,v 1.2 93/09/15 11:45:05 steve Exp $ $Header: keyfcns.c,v 1.4 93/09/15 11:47:41 steve Exp $ $Header: recnext.c,v 1.2 93/09/15 11:49:07 steve Exp $ $Header: fillnew.c,v 1.2 93/09/15 11:45:12 steve Exp $ $Header: keyfind.c,v 1.2 93/09/15 11:47:46 steve Exp $ $Header: connect.c,v 1.4 93/09/15 11:43:42 steve Exp $ $Header: findco.c,v 1.2 93/09/15 11:45:14 steve Exp $ $Header: findfm.c,v 1.3 93/09/15 11:45:17 steve Exp $ $Header: recread.c,v 1.2 93/09/15 11:49:19 steve Exp $ $Header: keynext.c,v 1.2 93/09/15 11:47:58 steve Exp $ $Header: crget.c,v 1.2 93/09/15 11:43:51 steve Exp $ $Header: findnm.c,v 1.2 93/09/15 11:45:23 steve Exp $ $Header: crread.c,v 1.2 93/09/15 11:43:53 steve Exp $ $Header: dbdpath.c,v 1.2 93/09/15 11:44:37 steve Exp $ $Header: recwrite.c,v 1.2 93/09/15 11:49:31 steve Ex p $ $Header: crset.c,v 1.2 93/09/15 11:43:56 steve Exp $ $Header: libfcns.c,v 1.3 93/09/15 11:48:12 steve Exp $ $Header: dbfpath.c,v 1.2 93/09/15 11:44:41 steve Exp $ $Header: crtype.c,v 1.3 93/09/15 11:44:02 steve Exp $ $Header: setdb.c,v 1.2 93/09/15 11:49:44 steve Exp $ $Header: crwrite.c,v 1.2 93/09/15 11:44:05 steve Exp $ $Header: dblog.c,v 1.2 93/09/15 11:44:47 steve Exp $ $Header: dbtaf.c,v 1.2 93/09/15 11:44:51 steve Exp $ $Header: options.c,v 1.2 93/09/15 11:48:41 steve Exp $ $Header: dbuserid.c,v 1.3 93/09/15 11:44:54 steve Ex p $ $Header: delete.c,v 1.2 93/09/15 11:44:57 steve Exp $ $Header: destroy.c,v 1.2 93/09/15 11:44:59 steve Exp $ $Header: recfcns.c,v 1.6 93/09/15 11:48:55 steve Exp $ $Header: setor.c,v 1.2 93/09/15 11:50:11 steve Exp $ $Header: dio.c,v 1.4 93/09/15 11:45:02 steve Exp $ $Header: recfrst.c,v 1.2 93/09/15 11:48:59 steve Exp $ $Header: buildkey.c,v 1.4 93/09/15 11:43:34 steve Ex p $ $Header: gen.c,v 1.10 92/06/17 10:17:12 jeremyk Exp $ $Header: dblfcns.c,v 1.22 93/09/15 11:44:43 steve Ex p $ $Header: alloc.c,v 1.5 93/09/15 11:43:31 steve Exp $ $Header: recover.c,v 1.4 93/09/15 11:49:11 steve Exp $ $Header: dberr.c,v 1.19 93/10/08 17:26:47 steve Exp $ $Header: renfile.c,v 1.2 93/09/15 11:49:35 steve Exp $ $Header: mapchar.c,v 1.2 93/09/15 11:48:19 steve Exp $ $Header: makenew.c,v 1.2 93/09/15 11:48:15 steve Exp $ $Header: trlog.c,v 1.2 93/09/15 11:50:47 steve Exp $ $Header: utscm.c,v 1.2 93/09/15 11:50:49 steve Exp $ $Header: utsco.c,v 1.2 93/09/15 11:50:52 steve Exp $ $Header: initenv.c,v 1.3 93/09/15 11:47:12 steve Exp $ $Header: opens.c,v 1.6 93/09/15 11:48:37 steve Exp $ $Header: utscr.c,v 1.2 93/09/15 11:50:54 steve Exp $ $Header: utscs.c,v 1.2 93/09/15 11:50:57 steve Exp $ $Header: inittab.c,v 1.3 93/09/15 11:47:19 steve Exp $ $Header: ovfcns.c,v 1.4 93/09/15 11:48:45 steve Exp $ $Header: startup.c,v 1.2 93/09/15 11:50:24 steve Exp $ $Header: pathfcns.c,v 1.2 93/09/15 11:48:50 steve Ex p $ $Header: netgen.c,v 1.12 94/04/08 21:55:59 gren Exp $ $Header: genfcns.c,v 1.39 95/11/08 18:22:02 kevins E xp $ $Header: dropcore.c,v 1.5 93/09/15 11:45:10 steve Ex p $ /opt/openmail/bin/unix.out: $Header: ux_in.c,v 5.73 96/11/28 10:22:05 tonyn Exp $ ---------------------------------------------------- ------------- PATCHED_B.04.01: 97/01/15 B.04.01.09 PATCHED_B.04.01: 96/12/06 X.04.01.08 PATCHED_B.04.01: 96/11/26 B.04.01.07 unix.in, unix.out ---------------------------------------------------- ------------- Sccs_Id = %W% $Header: ux_out.c,v 5.67.1.3 96/12/06 14:29:22 danny Exp $ $Header: discon.c,v 1.2 93/09/15 11:45:05 steve Exp $ $Header: keyfcns.c,v 1.4 93/09/15 11:47:41 steve Exp $ $Header: recnext.c,v 1.2 93/09/15 11:49:07 steve Exp $ $Header: fillnew.c,v 1.2 93/09/15 11:45:12 steve Exp $ $Header: keyfind.c,v 1.2 93/09/15 11:47:46 steve Exp $ $Header: connect.c,v 1.4 93/09/15 11:43:42 steve Exp $ $Header: findco.c,v 1.2 93/09/15 11:45:14 steve Exp $ $Header: findfm.c,v 1.3 93/09/15 11:45:17 steve Exp $ $Header: recread.c,v 1.2 93/09/15 11:49:19 steve Exp $ $Header: keynext.c,v 1.2 93/09/15 11:47:58 steve Exp $ $Header: crget.c,v 1.2 93/09/15 11:43:51 steve Exp $ $Header: findnm.c,v 1.2 93/09/15 11:45:23 steve Exp $ $Header: crread.c,v 1.2 93/09/15 11:43:53 steve Exp $ $Header: dbdpath.c,v 1.2 93/09/15 11:44:37 steve Exp $ $Header: recwrite.c,v 1.2 93/09/15 11:49:31 steve Ex p $ $Header: crset.c,v 1.2 93/09/15 11:43:56 steve Exp $ $Header: libfcns.c,v 1.3 93/09/15 11:48:12 steve Exp $ $Header: dbfpath.c,v 1.2 93/09/15 11:44:41 steve Exp $ $Header: crtype.c,v 1.3 93/09/15 11:44:02 steve Exp $ $Header: setdb.c,v 1.2 93/09/15 11:49:44 steve Exp $ $Header: crwrite.c,v 1.2 93/09/15 11:44:05 steve Exp $ $Header: dblog.c,v 1.2 93/09/15 11:44:47 steve Exp $ $Header: dbtaf.c,v 1.2 93/09/15 11:44:51 steve Exp $ $Header: options.c,v 1.2 93/09/15 11:48:41 steve Exp $ $Header: dbuserid.c,v 1.3 93/09/15 11:44:54 steve Ex p $ $Header: delete.c,v 1.2 93/09/15 11:44:57 steve Exp $ $Header: destroy.c,v 1.2 93/09/15 11:44:59 steve Exp $ $Header: recfcns.c,v 1.6 93/09/15 11:48:55 steve Exp $ $Header: setor.c,v 1.2 93/09/15 11:50:11 steve Exp $ $Header: dio.c,v 1.4 93/09/15 11:45:02 steve Exp $ $Header: recfrst.c,v 1.2 93/09/15 11:48:59 steve Exp $ $Header: buildkey.c,v 1.4 93/09/15 11:43:34 steve Ex p $ $Header: gen.c,v 1.10 92/06/17 10:17:12 jeremyk Exp $ $Header: dblfcns.c,v 1.22 93/09/15 11:44:43 steve Ex p $ $Header: alloc.c,v 1.5 93/09/15 11:43:31 steve Exp $ $Header: recover.c,v 1.4 93/09/15 11:49:11 steve Exp $ $Header: dberr.c,v 1.19 93/10/08 17:26:47 steve Exp $ $Header: renfile.c,v 1.2 93/09/15 11:49:35 steve Exp $ $Header: mapchar.c,v 1.2 93/09/15 11:48:19 steve Exp $ $Header: makenew.c,v 1.2 93/09/15 11:48:15 steve Exp $ $Header: trlog.c,v 1.2 93/09/15 11:50:47 steve Exp $ $Header: utscm.c,v 1.2 93/09/15 11:50:49 steve Exp $ $Header: utsco.c,v 1.2 93/09/15 11:50:52 steve Exp $ $Header: initenv.c,v 1.3 93/09/15 11:47:12 steve Exp $ $Header: opens.c,v 1.6 93/09/15 11:48:37 steve Exp $ $Header: utscr.c,v 1.2 93/09/15 11:50:54 steve Exp $ $Header: utscs.c,v 1.2 93/09/15 11:50:57 steve Exp $ $Header: inittab.c,v 1.3 93/09/15 11:47:19 steve Exp $ $Header: ovfcns.c,v 1.4 93/09/15 11:48:45 steve Exp $ $Header: startup.c,v 1.2 93/09/15 11:50:24 steve Exp $ $Header: pathfcns.c,v 1.2 93/09/15 11:48:50 steve Ex p $ $Header: netgen.c,v 1.12 94/04/08 21:55:59 gren Exp $ $Header: genfcns.c,v 1.39 95/11/08 18:22:02 kevins E xp $ $Header: dropcore.c,v 1.5 93/09/15 11:45:10 steve Ex p $ /var/opt/openmail/nls/C/ISO8859_1,N/msgcats/mc_102: No what strings /var/opt/openmail/nls/C/T61BASE,O/msgcats/mc_102: No what strings /var/opt/openmail/nls/AMERICAN/ISO8859_1,N/msgcats/mc_102: No what strings /var/opt/openmail/nls/AMERICAN/T61BASE,O/msgcats/mc_102: No what strings /var/opt/openmail/nls/ENGLISH/ISO8859_1,N/msgcats/mc_102: No what strings /var/opt/openmail/nls/ENGLISH/T61BASE,O/msgcats/mc_102: No what strings /opt/openmail/bin/ompatch: $Header: sh_patch.gen,v 5.17 96/03/09 00:20:04 gren Exp $ /opt/openmail/patch/PHSS_9847/ompatch.idx: No what strings cksum(1) Output: 3958700218 520192 /opt/openmail/bin/unix.in 3958700218 520192 /opt/openmail/bin/unix.out 589465933 9826 /var/opt/openmail/nls/C/ISO8859_1,N/msgcats/ mc_102 4209518515 9826 /var/opt/openmail/nls/C/T61BASE,O/msgcats/ mc_102 589465933 9826 /var/opt/openmail/nls/AMERICAN/ISO8859_1,N/ msgcats/mc_102 4209518515 9826 /var/opt/openmail/nls/AMERICAN/T61BASE,O/ msgcats/mc_102 589465933 9826 /var/opt/openmail/nls/ENGLISH/ISO8859_1,N/ msgcats/mc_102 4209518515 9826 /var/opt/openmail/nls/ENGLISH/T61BASE,O/ msgcats/mc_102 3603765251 12311 /opt/openmail/bin/ompatch 1541307052 11051 /opt/openmail/patch/PHSS_9847/ompatch.idx Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHSS_7184 PHSS_7383 PHSS_8147 PHSS_8568 PHSS_9083 PHSS_9383 Equivalent Patches: PHSS_9846: s700: 9.01 9.03 9.05 9.07 s800: 9.00 9.04 Patch Package Size: 660 Kbytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHSS_9847 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHSS_9847.depot 5b. For a homogeneous NFS Diskless cluster run swcluster on the server to install the patch on the server and the clients: swcluster -i -b This will invoke swcluster in the interactive mode and force all clients to be shut down. WARNING: All cluster clients must be shut down prior to the patch installation. Installing the patch while the clients are booted is unsupported and can lead to serious problems. The swcluster command will invoke an swinstall session in which you must specify: alternate root path - default is /export/shared_root/OS_700 source depot path - /tmp/PHSS_9847.depot To complete the installation, select the patch by choosing "Actions -> Match What Target Has" and then "Actions -> Install" from the Menubar. 5c. For a heterogeneous NFS Diskless cluster: - run swinstall on the server as in step 5a to install the patch on the cluster server. - run swcluster on the server as in step 5b to install the patch on the cluster clients. By default swinstall will archive the original software in /var/adm/sw/patch/PHSS_9847. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. Warning: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHSS_9847.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHSS_9847.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: SUBSYSTEM_SHUT For PHSS_7184 and later: Message subject and message text in Japanese is now supported at the MIME gateway. New configuration options follow: New configuration file to allow mapping of OpenMail and MIME character set names. This file is: /var/opt/openmail/sys/mime.cs Extra steering files for the unix.out gateway that can be used on an encoding basis in addition to the default steering file: /users/openmail/sys/unixout.str (Default unix.out steering) /users/openmail/sys/sharout.str (Addition steering for 'shar' encoding) /users/openmail/sys/uxuuout.str (Addition steering for 'uuencode' encoding) /users/openmail/sys/mimeout.str (Addition steering for 'MIME' encoding) Extra steering file for the unix.in gateway that can be used on an encoding basis in addition to the default steering file: /users/openmail/sys/unixin.str (Default unix.out steering) /users/openmail/sys/mimein.str (Addition steering for 'MIME' encoding) New openmail general.cfg option to control aspects of MIME encoding: UXO_MIME_SUBJECT_ENCODING= Controls the encoding of a message subject OM->MIME. where value is 'N' for no encoding or 'Q' for 'quoted-printable' encoding (the default) or 'B' for 'base64' encoding UXO_MIME_SUBJECT_FOLDING= If TRUE or YES, subject headers are folded according to RFC 1522 rules - Folding is at 76 bytes (after encoding). For multibyte, folding may be earlier then 76 bytes to avoid splitting multibyte characters and to handle escape sequences correctly. Note that folding is only applicable when the MIME character set is ISO2022 or T61 conformant. This character set must be defined in the Openmail /users/openmail/sys/CSInfo.cfg and ../T61Info.cfg and must have the setting INTERCHANGE=no. UXO_MIME_SUBJ_BENC_NONASCII= This only applies when UXO_MIME_SUBJECT_ENCODING=B. If TRUE or YES, only non-Ascii characters are B encoded. UXO_MIME_SUBJ_NO_SPACE_SEPS= This only applies when UXO_MIME_SUBJECT_ENCODING=B and when UXO_MIME_SUBJ_BENC_NONASCII=T. If TRUE or YES, a space separator between encoded and non-encoded data is not generated. Note that setting this option generates messages in a form that are not strictly compatible with RFC1522. UXO_TREAT_AS_MIME_SUBJECT= If TRUE or YES, the subject of messages leaving Openmail on a shar or uuencode route are treated as if they were for a MIME route. All the MIME_SUBJECT options apply. UXO_MIME_TEXTFILE_ENCODING= Controls the encoding of message text OM->MIME. where value is 'N' for no encoding or 'Q' for 'quoted-printable' encoding (the default) or 'B' for 'base64' encoding UXO_MIME_OMIT_DEF_CTENC_HDR= If TRUE or YES, the Content Encoding header is omitted if it has the default value of 7Bit. UXI_TREAT_AS_MIME_SUBJECT= Controls subject decoding MIME->OM. Setting this option TRUE means that subjects that conform to the MIME (rfc-1522) style encoding will be treated as rfc-1522 subjects (and decoded accordingly) even though they are not in a MIME message (ie. they are in a 'shar' or 'uuencoded' message). NOTE: OpenMail must be shutdown before installing this patch.