SUMMARY: Problem opening PDF-files attachments in DtMail

From: SysAdm <sunadmin_at_norsar.no>
Date: Wed Nov 07 2001 - 02:43:54 EST
Original posting:

>    I get this message when trying to open a PDF-attachment from DtMail (Solaris 2.6/7/8):
>    
>       error opening document: No such file or directory
>    
>    Acroread 4.05 for Solaris.
>    
>    If I save the PDF attachment to disk and launch acroread from the command line, everything
>    works fine...


Solution:

- You need to create a dtaction linked to PDF file type
  Put the attached file in $HOME/.dt/types/ and restart your workspace manager
  Make sure acroread is in your path and not a symbolic link.

- http://css.sfu.ca/nsg/cssnetdocs/faq/email.html#E4

- Check the contents of the applicable mailcap and mime.types files

- Use pine or mutt instead!

  "strings /usr/dt/bin/dtmail" indicates that dtmail is relying on a compiled-in list of 
  MIME types. That list includes Application/PostScript but nothing about PDF.


Unfortunately, I am still not able to open PDF-attachments from DtMail...

Thanks to all that replied!!

Best regards,

Nils K. Schøyen

######################################################################
# Carl Ma - Nov. 5
######################################################################

ACTION acroread
{
     LABEL         acroread
     TYPE          COMMAND
     EXEC_STRING   sh -c 'acroread "%Arg_1%"'
     ICON          Dtactn
     WINDOW_TYPE   NO_STDIO
     ARG_TYPE      Acro_file,Acro_file,Acro_file
}

DATA_ATTRIBUTES Acro_file
{
     ACTIONS       Open
     ICON          Dtmime
}

DATA_CRITERIA Acro_file
{
     DATA_ATTRIBUTES_NAME Acro_file
     MODE          !d
     NAME_PATTERN  *.pdf
     CONTENT       0 string %PDF-
}

ACTION Open
{
     ARG_TYPE      Acro_file
     TYPE          MAP
     MAP_ACTION    acroread
     LABEL         Open
}

_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed Nov 7 01:45:13 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:27 EST