Patch Name: PHNE_25172 Patch Description: s700_800 10.01 elm(1) supports MIME (RFC 1521/2), JIS Creation Date: 02/07/22 Post Date: 02/07/29 Hardware Platforms - OS Releases: s700: 10.01 s800: 10.01 Products: N/A Filesets: MailUtilities.MAILERS MailUtilities.MAIL-ENG-A-MAN MailUtilities.MAIL-JPN-S-MAN MailUtilities.MAIL-JPN-E-MAN OS-Core.UX-JPN-E-MSG OS-Core.UX-JPN-S-MSG Automatic Reboot?: No Status: Special Release Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHNE_25172 Symptoms: PHNE_25172: 1. JAGaa45552 / SR 8606184872: elm generates an invalid MIME-encoded header, when a portion of the unencoded text is present in the encoded header. 2. JAGaa62600 / SR 8606184873: elm does not accept 8-bit characters in subject line. 3. JAGaa93235 / SR 5003448183: When the length of the address list exceeds 256 characters elm fails with an error message, "Too many addresses, or addresses too long!" 4. JAGab13395 / SR 1653301564: When a mail is sent with a ":" in the comment text along with the email ids in the "To:" address, elm garbles the "To:" header field. 5. JAGab17360 / SR 1653305060: elm does not support configurable folder permissions. 6. JAGab46340 / SR 8606111696: elm drops the attachment(s) while replying to a mail which has attachment(s). 7. JAGab68639 / SR 8606184875: elm fails to expand the user/system aliases. 8. JAGac39335 / SR 8606123975: elm unlinks the file which is attached while replying to a mail which already has attachment(s). 9. JAGac40290 / SR 8606124898: elm displays a wrong offset in the "Date:" field when the date rolls over to next month. 10. JAGac59567 / SR 8606126726: elm adds an extra empty attachment whenever a mail with attachment is sent. 11. JAGad40143 / SR 8606170879: mailfrom/newmail does not understand the new configuration parameter 'folderperms' used in 'elmrc' file and displays a sample error message as shown below. 'I can't understand sort key "folderperms" in line 226 in your ".elm/elmrc" file'. 12. JAGad45662 / SR 8606176424: elm sometimes does not display the attachments in the mail message. 13. JAGad50499 / SR 8606181282: elm does not work properly in certain conditions. 14. JAGad62462 / SR 8606193250: elm does not prompt for alias addresses and fails to create new aliases in the command mode. 15. JAGad93852 / SR 8606224764: elm formats the "To:" header field incorrectly in the reply. 16. JAGae19074 / SR 8606254743: The elm.1 man page does not provide information on setting the configurable folder permissions with the `folderperms' variable. 17. JAGae27581 / SR 8606263254: If an elm2.4 patch is installed on a system which already has elm2.0 patch, 'swverify' logs error messages for elm2.0 patch deliverables. PHNE_15836: 1. Elm is not considering the option set in elmrc file. PHNE_13695: 1. Problem in elm with TERM environment variable. 2. ELM 2.4(PHNE_11925) will not see sys aliases if no user aliases are defined. 3. ELM 2.4(PHNE_11925) -c option causes screen corruption. 4. ELM 2.4 does not show D status with arrow cursor. 5. Elm 2.4(PHNE_11925) has a problem in handling JIS code implementation. 6. newmail and mailfrom are not working properly. PHNE_11925: 1. The reply command produces a wrong destination address since NIS domain name is not same as BIND domain name. 2. elm hangs when used in file input mode. 3. Latest elm patch PHNE_8143 does not show latest manpages. PHNE_8143: The following patch incorporates rfc 1522 in elm. It also supports JIS for the japanese environment. This takes care of MIME mails (i.e mails with audio, video attachments or any other 8 bit data) Defect Description: PHNE_25172: 1. JAGaa45552 / SR 8606184872: When a portion of the unencoded text is present in the MIME-encoded header, the switching between ASCII mode and non-ASCII modes does not happen properly. Resolution: The switching between ASCII mode and non-ASCII modes is done properly. 2. JAGaa62600 / SR 8606184873: The data type used to manipulate the characters in the subject line does not handle 8-bit characters correctly. Resolution: The data type now handles the 8-bit characters correctly. 3. JAGaa93235 / SR 5003448183: The length of the buffer used to hold the "To:" address list is limited to 256 characters. Resolution: The buffer size has been increased to 2560 bytes. 4. JAGab13395 / SR 1653301564: If a message contains a ":" in the comment text in the "To:" address list, then at the receiving end the "To:" header is formatted incorrectly. In this case, elm was misinterpreting the ":" in the comment text while displaying the message. Resolution: Code has been modified to handle the problem. 5. JAGab17360 / SR 1653305060: elm does not support configurable parameter for folder permissions. Resolution: Now a configurable parameter "folderperms" is provided in the elmrc file, where the user can set the values for folder permissions. The default folder permission is 0640. 6. JAGab46340 / SR 8606111696: elm ignores the attachment(s) while replying to a mail which has attachment(s). Resolution: The code has been modified to fix the problem. 7. JAGab68639 / SR 8606184875: The total number of aliases present in elm database is not getting set to the proper value when elm enters into the alias mode. Resolution: Code has been modified to set the total number of aliases properly in the alias mode. 8. JAGac39335 / SR 8606123975: elm unlinks the newly attached file during cleanup of the temporary files used to store the previous attachment. Resolution: Care has been taken not to unlink the newly attached file. 9. JAGac40290 / SR 8606124898: When the date rolls into the next month, elm calculates incorrect GMT offset for a particular time interval. Resolution: The code has been modified to calculate the GMT offset properly. 10. JAGac59567 / SR 8606126726: elm adds an extra MIME boundary when a mail with an attachment is sent. Resolution: Code has been modified not to add an additional MIME boundary. 11. JAGad40143 / SR 8606170879: The mailfrom and newmail utilities are unable to distinguish between the 'folderperms' and 'folders' parameters specified in the elmrc file. Resolution: Code has been modified to resolve the same. 12. JAGad45662 / SR 8606176424: elm looks for MIME end boundaries in mail attachments. It does not display those messages which do not have a MIME end boundary since the length count of such attachments is not updated. Resolution: Code has been modified to update the length count of the messages, which do not have MIME end boundaries. 13. JAGad50499 / SR 8606181282: elm does not work properly in certain conditions. Resolution: Code has been modified to resolve the same. 14. JAGad62462 / SR 8606193250: elm always obtains the non-success return value even in the case of success. Hence elm does not prompt for alias addresses in command mode. Resolution: The return value is handled properly in case of success. 15. JAGad93852 / SR 8606224764: elm does not extract the host name properly while formatting the 'To' address in the reply header. Resolution: Code has been modified to interpret the host names properly. 16. JAGae19074 / SR 8606254743: When the elm code was modified to support the 'folderperms' variable, the elm.1 man page was not updated. Resolution: The English version of the elm.1 man page has been modified accordingly. 17. JAGae27581 / SR 8606263254: The elm2.4 patch does not supersede elm2.0 patch and the IPD entries for elm2.0 patch are not updated in the SD database. Resolution: The control scripts for elm2.4 patch have been modified to resolve the problem. PHNE_15836: 1. Option in elmrc file to disable metamail for a particular charset is not working. PHNE_13695: 1. Problem in elm when TERM environment variable is set with a string of more than 70 characters. 2. ELM 2.4(PHNE_11925) system aliases are not accessible unless a user also has user aliases defined. 3. ELM 2.4(PHNE_11925) -c option clears the screen and returns to prompt. No useful information is visible. 4. ELM 2.4 does not show deleted messages with the "D" mark when used with the arrow (->) cursor. 5. Elm 2.4(PHNE_11925) has a problem in handling JIS code implementation. 6. newmail and mailfrom are not working properly. PHNE_11925: 1. elm adds the . where NISdomain is different from BIND domain. 2. elm hangs, when invoked in the command line with file redirection option for sending mails. 3. The previous patch PHNE_8143 was not removing the manpages from cat1.Z, due to which the user was not able to view the latest manpages. PHNE_8143: Elm was not designed to take care of MIME mails(i.e mails with audio, video attachments or any other 8 bit data) . SR: 8606263254 8606184872 8606184873 5003448183 1653301564 1653305060 8606111696 8606184875 8606123975 8606124898 8606126726 8606170879 8606176424 8606181282 8606193250 8606224764 8606254743 8606258978 4701381533 5003408047 5003408054 4701378695 4701399303 1653236695 1653218008 1653215624 4701354993 8606113012 Patch Files: /usr/bin/elm /usr/bin/readmail /usr/bin/newalias /usr/bin/mailfrom /usr/bin/newmail /usr/bin/fastmail /usr/bin/elmalias /usr/bin/answer /usr/bin/printmail /usr/bin/listalias /usr/bin/checkalias /usr/share/man/man1.Z/answer.1 /usr/share/man/man1.Z/elmalias.1 /usr/share/man/man1.Z/mailfrom.1 /usr/share/man/man1.Z/newmail.1 /usr/share/man/man1.Z/elm.1 /usr/share/man/man1.Z/fastmail.1 /usr/share/man/man1.Z/newalias.1 /usr/share/man/man1.Z/readmail.1 /usr/share/man/ja_JP.SJIS/man1.Z/answer.1 /usr/share/man/ja_JP.SJIS/man1.Z/elmalias.1 /usr/share/man/ja_JP.SJIS/man1.Z/mailfrom.1 /usr/share/man/ja_JP.SJIS/man1.Z/newmail.1 /usr/share/man/ja_JP.SJIS/man1.Z/elm.1 /usr/share/man/ja_JP.SJIS/man1.Z/fastmail.1 /usr/share/man/ja_JP.SJIS/man1.Z/newalias.1 /usr/share/man/ja_JP.SJIS/man1.Z/readmail.1 /usr/share/man/ja_JP.eucJP/man1.Z/answer.1 /usr/share/man/ja_JP.eucJP/man1.Z/elmalias.1 /usr/share/man/ja_JP.eucJP/man1.Z/mailfrom.1 /usr/share/man/ja_JP.eucJP/man1.Z/newmail.1 /usr/share/man/ja_JP.eucJP/man1.Z/elm.1 /usr/share/man/ja_JP.eucJP/man1.Z/fastmail.1 /usr/share/man/ja_JP.eucJP/man1.Z/newalias.1 /usr/share/man/ja_JP.eucJP/man1.Z/readmail.1 /usr/lib/nls/msg/C/elm.cat /usr/lib/nls/msg/ja_JP.SJIS/elm.cat /usr/lib/nls/msg/ja_JP.eucJP/elm.cat /usr/share/lib/elm/elmrc-info /usr/share/lib/elm/delta-doc /usr/share/lib/elm/delta-doc.sjis /usr/share/lib/elm/delta-doc.euc what(1) Output: /usr/bin/elm: $Id: init.c,v 5.20 1994/05/30 16:31:40 syd Exp $ $Id: showmsg.c,v 5.16 1994/08/30 15:09:43 syd Exp $ $Id: signals.c,v 5.13 1994/09/01 19:42:39 syd Exp $ $Revision: 1.206.214.3 $ 10.01 [ELM 2.4] PHNE_25172 $ /usr/bin/readmail: $Revision: 1.206.214.2 $ /usr/bin/newalias: $Revision: 1.206.214.2 $ /usr/bin/mailfrom: $Revision: 1.206.214.3 $ 10.01 [ELM 2.4] PHNE_25172 $ /usr/bin/newmail: $Revision: 1.206.214.3 $ 10.01 [ELM 2.4] PHNE_25172 $ /usr/bin/fastmail: $Revision: 1.206.214.2 $ /usr/bin/elmalias: $Revision: 1.206.214.2 $ /usr/bin/answer: $Revision: 1.206.214.2 $ /usr/bin/printmail: $Revision: 1.1.213.1 $ $Id: printmail.SH,v 5.1 1992/10/04 00:46:45 syd Exp $ /usr/bin/listalias: $Revision: 1.1.213.1 $ $Id: listalias.SH,v 5.1 1993/04/12 02:10:26 syd Exp $ /usr/bin/checkalias: $Revision: 1.1.213.1 $ : checkalias.SH,v 5.2 1993/04/12 02:11:05 syd Exp $ /usr/share/man/man1.Z/answer.1: None /usr/share/man/man1.Z/elmalias.1: None /usr/share/man/man1.Z/mailfrom.1: None /usr/share/man/man1.Z/newmail.1: None /usr/share/man/man1.Z/elm.1: None /usr/share/man/man1.Z/fastmail.1: None /usr/share/man/man1.Z/newalias.1: None /usr/share/man/man1.Z/readmail.1: None /usr/share/man/ja_JP.SJIS/man1.Z/answer.1: None /usr/share/man/ja_JP.SJIS/man1.Z/elmalias.1: None /usr/share/man/ja_JP.SJIS/man1.Z/mailfrom.1: None /usr/share/man/ja_JP.SJIS/man1.Z/newmail.1: None /usr/share/man/ja_JP.SJIS/man1.Z/elm.1: None /usr/share/man/ja_JP.SJIS/man1.Z/fastmail.1: None /usr/share/man/ja_JP.SJIS/man1.Z/newalias.1: None /usr/share/man/ja_JP.SJIS/man1.Z/readmail.1: None /usr/share/man/ja_JP.eucJP/man1.Z/answer.1: None /usr/share/man/ja_JP.eucJP/man1.Z/elmalias.1: None /usr/share/man/ja_JP.eucJP/man1.Z/mailfrom.1: None /usr/share/man/ja_JP.eucJP/man1.Z/newmail.1: None /usr/share/man/ja_JP.eucJP/man1.Z/elm.1: None /usr/share/man/ja_JP.eucJP/man1.Z/fastmail.1: None /usr/share/man/ja_JP.eucJP/man1.Z/newalias.1: None /usr/share/man/ja_JP.eucJP/man1.Z/readmail.1: None /usr/lib/nls/msg/C/elm.cat: None /usr/lib/nls/msg/ja_JP.SJIS/elm.cat: None /usr/lib/nls/msg/ja_JP.eucJP/elm.cat: None /usr/share/lib/elm/elmrc-info: None /usr/share/lib/elm/delta-doc: None /usr/share/lib/elm/delta-doc.sjis: None /usr/share/lib/elm/delta-doc.euc: None cksum(1) Output: 645130938 495616 /usr/bin/elm 1897822551 155648 /usr/bin/readmail 3784381362 57344 /usr/bin/newalias 947979155 151552 /usr/bin/mailfrom 2696684495 159744 /usr/bin/newmail 2290673280 139264 /usr/bin/fastmail 778692878 53248 /usr/bin/elmalias 2662448242 53248 /usr/bin/answer 1935898620 731 /usr/bin/printmail 92312035 1106 /usr/bin/listalias 2900031923 646 /usr/bin/checkalias 713989090 2782 /usr/share/man/man1.Z/answer.1 2181283634 4045 /usr/share/man/man1.Z/elmalias.1 1117666637 2618 /usr/share/man/man1.Z/mailfrom.1 3594592099 1993 /usr/share/man/man1.Z/newmail.1 2399672807 38898 /usr/share/man/man1.Z/elm.1 2608797654 3218 /usr/share/man/man1.Z/fastmail.1 3285005579 3625 /usr/share/man/man1.Z/newalias.1 2525915446 2052 /usr/share/man/man1.Z/readmail.1 3736177690 3287 /usr/share/man/ja_JP.SJIS/man1.Z/answer.1 2429751981 4559 /usr/share/man/ja_JP.SJIS/man1.Z/elmalias.1 1336944441 2933 /usr/share/man/ja_JP.SJIS/man1.Z/mailfrom.1 2588206346 2304 /usr/share/man/ja_JP.SJIS/man1.Z/newmail.1 2974928354 42485 /usr/share/man/ja_JP.SJIS/man1.Z/elm.1 3773839001 3692 /usr/share/man/ja_JP.SJIS/man1.Z/fastmail.1 3024865978 4088 /usr/share/man/ja_JP.SJIS/man1.Z/newalias.1 434861353 2238 /usr/share/man/ja_JP.SJIS/man1.Z/readmail.1 1651323335 3286 /usr/share/man/ja_JP.eucJP/man1.Z/answer.1 566152020 4561 /usr/share/man/ja_JP.eucJP/man1.Z/elmalias.1 1427477186 2930 /usr/share/man/ja_JP.eucJP/man1.Z/mailfrom.1 71018742 2287 /usr/share/man/ja_JP.eucJP/man1.Z/newmail.1 1660496601 42281 /usr/share/man/ja_JP.eucJP/man1.Z/elm.1 3929583524 3682 /usr/share/man/ja_JP.eucJP/man1.Z/fastmail.1 4163045114 4096 /usr/share/man/ja_JP.eucJP/man1.Z/newalias.1 114714742 2243 /usr/share/man/ja_JP.eucJP/man1.Z/readmail.1 1579155863 58120 /usr/lib/nls/msg/C/elm.cat 7222964 63126 /usr/lib/nls/msg/ja_JP.SJIS/elm.cat 3774551901 63130 /usr/lib/nls/msg/ja_JP.eucJP/elm.cat 1215678891 9656 /usr/share/lib/elm/elmrc-info 3099121094 10213 /usr/share/lib/elm/delta-doc 3004534624 12164 /usr/share/lib/elm/delta-doc.sjis 311432325 12164 /usr/share/lib/elm/delta-doc.euc Patch Conflicts: PHNE_6691 PHNE_6897 PHNE_7256 PHNE_7343 PHNE_9165 PHNE_9859 PHNE_20504 Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHNE_8143 PHNE_11925 PHNE_13695 PHNE_15836 Equivalent Patches: PHNE_24520: s700: 10.20 s800: 10.20 PHNE_24522: s700: 11.11 s800: 11.11 Patch Package Size: 1760 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 PHNE_25172 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHNE_25172.depot By default swinstall will archive the original software in /var/adm/sw/patch/PHNE_25172. 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 PHNE_25172.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/PHNE_25172.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: PHNE_25172: The length of the subject string (used with the -s command line option) and filenames (used with the -f and -i command line options) is limited to 255 characters. If the length exceeds this limit, the strings will be truncated to 255 characters. The English version of the elm.1 man page has been modified accordingly. The binary prlong is not provided with this patch. Since the tool prmail provides the same functionality, prlong will not be supported anymore. If this patch is installed on systems which do not have the Japanese filesets (MailUtilities.MAIL-JPN-S-MAN, MailUtilities.MAIL-JPN-E-MAN,OS-Core.UX-JPN-E-MSG, OS-Core.UX-JPN-S-MSG), error messages pertaining to the absence of these filesets will be seen in the logfile of swverify. If users do not need JIS support, they can ignore these error messages in the logfile. If users need JIS support, they have to install the Japanese filesets. This package cannot be installed along with Mpower mailer. Mpower mailer acts like a front end to elm to view and send MIME mails. This is not possible with this version of elm, as this by itself takes care of MIME mails. If Mpower mailer is already installed in the system, then you'll have to remove the headers put in by the Mpower mailer in the ~/.elm/elmheaders file. It is also better to change the pager and the editor set by the Mpower mailers as any other equivalent pager/editor by editing the ~/.elm/elmrc file. This patch contains the catalog files only for Japanese and English. So it is not suitable for any other language. This patch has a conflict with PHNE_6691, PHNE_6897 PHNE_7256, PHNE_7343, PHNE_9165, PHNE_9859 and PHNE_20504. Ensure that these patches are not installed on the system before installing PHNE_25172. Hence this patch is recommended only if the user wants MIME or JIS support.