Perhaps I'm not looking at this correct.
Current situation is that the PDF attachment is not working at all?
Adding this might work having the document passed to windows pdf viewer.(Did think of having it use the .pdf extension of file as an option).
It is true that if some other file of this mime type is passed the viewer would fail to open it?
Has anyone gotten one of the GFX attachments sent? And wouldn't they have same issue with viewing it?
A GPX file (GPS Exchange Format) is a universal text file used to store and share geographic data, such as waypoints, tracks, and routes, between GPS devices, maps, and software.
A .key file is most commonly a Keynote Presentation file created by Apple's Keynote software, used for slideshows on macOS, iOS, and iCloud.
Don't know if there is a windows keynote viewer?
The FILETYPE.PM file on my setup has
PDF-FILE,0,S,1,PDF,X,0,.PDF
PDF-file,0,X,0,.pdf
So, it can identify a PDF file by the extension or bytes 2 3 4 are P D F.
Don't know if there would be a way to have the mime type to a similar check on the file to confirm that it was or wasn't a PDF?
I've had to do a program for Pegasus to work with some attachment on linux under wine to work. Generally, pretty generic, and seems to work
1;.WMV;-;Z:\usr\bin\pegattach
1;.doc;-;Z:\usr\bin\pegattach
1;.docx;-;Z:\usr\bin\pegattach
1;.pdf;-;/usr/bin/pegattach
1;.ods;-;/usr/bin/pegattach
1;.wpd;-;/usr/bin/pegattach
1;.wav;-;Z:\usr\bin\pegattach
1;.xlsx;-;Z:\usr\bin\pegattach
1;.xls;-;Z:\usr\bin\pegattach
1;.odt;-;Z:\usr\bin\pegattach
1;.mpv;-;Z:\usr\bin\pegattach
2;MPEG4-video-file;-;Z:\usr\bin\pegattach
The script has worked for me, basically passes modified link to gnome-open, which would be similar to having windows use its default viewer. Could add code to check for PDF as characters at 2nd character of attachment,
cat /usr/bin/pegattach
!/bin/sh
cd ~
echo $1 Value of $1 >>/tmp/pegattach
if [ "echo $1 | cut -b 1-1" = "/" ]; then
p1=echo $1 | cut -b 2-120
else
p1=$1
fi
echo "[" $p1 "]" >>/tmp/pegattach
if [ echo $p1 | cut -b 1-1 = C ]; then
{
echo .wine/drive_c/echo $p1 | cut -b 4-120 | sed -e 's:\\\:/:g' >>/tmp/pegattach
gnome-open "/home/msetzerii/.wine/drive_c/echo $p1 | cut -b 4-120 | sed -e 's:\\\:/:g'"
}
else
{
xtest=echo $p1 | cut -b 3-120 | sed -e 's:\\\:/:g'
echo $xtest >>/tmp/pegattach
gnome-open "$xtest" 2>>/tmp/pegattach
}
fi
Don't recall ever getting a PDF file with this encoding, so don't know for sure this would work.
Just looking for option that might make it work.
Perhaps I'm not looking at this correct.
1. Current situation is that the PDF attachment is not working at all?
2. Adding this might work having the document passed to windows pdf viewer.
(Did think of having it use the .pdf extension of file as an option).
It is true that if some other file of this mime type is passed the viewer would fail to open it?
Has anyone gotten one of the GFX attachments sent? And wouldn't they have same issue with viewing it?
A GPX file (GPS Exchange Format) is a universal text file used to store and share geographic data, such as waypoints, tracks, and routes, between GPS devices, maps, and software.
A .key file is most commonly a Keynote Presentation file created by Apple's Keynote software, used for slideshows on macOS, iOS, and iCloud.
Don't know if there is a windows keynote viewer?
The FILETYPE.PM file on my setup has
PDF-FILE,0,S,1,PDF,X,0,.PDF
PDF-file,0,X,0,.pdf
So, it can identify a PDF file by the extension or bytes 2 3 4 are P D F.
Don't know if there would be a way to have the mime type to a similar check on the file to confirm that it was or wasn't a PDF?
I've had to do a program for Pegasus to work with some attachment on linux under wine to work. Generally, pretty generic, and seems to work
1;.WMV;-;Z:\usr\bin\pegattach
1;.doc;-;Z:\usr\bin\pegattach
1;.docx;-;Z:\usr\bin\pegattach
1;.pdf;-;/usr/bin/pegattach
1;.ods;-;/usr/bin/pegattach
1;.wpd;-;/usr/bin/pegattach
1;.wav;-;Z:\usr\bin\pegattach
1;.xlsx;-;Z:\usr\bin\pegattach
1;.xls;-;Z:\usr\bin\pegattach
1;.odt;-;Z:\usr\bin\pegattach
1;.mpv;-;Z:\usr\bin\pegattach
2;MPEG4-video-file;-;Z:\usr\bin\pegattach
The script has worked for me, basically passes modified link to gnome-open, which would be similar to having windows use its default viewer. Could add code to check for PDF as characters at 2nd character of attachment,
cat /usr/bin/pegattach
#!/bin/sh
cd ~
echo $1 Value of $1 >>/tmp/pegattach
if [ "`echo $1 | cut -b 1-1`" = "/" ]; then
p1=`echo $1 | cut -b 2-120`
else
p1=$1
fi
echo "[" $p1 "]" >>/tmp/pegattach
if [ `echo $p1 | cut -b 1-1` = C ]; then
{
echo .wine/drive_c/`echo $p1 | cut -b 4-120 | sed -e 's:\\\:/:g' ` >>/tmp/pegattach
gnome-open "/home/msetzerii/.wine/drive_c/`echo $p1 | cut -b 4-120 | sed -e 's:\\\:/:g' `"
}
else
{
xtest=`echo $p1 | cut -b 3-120 | sed -e 's:\\\:/:g' `
echo $xtest >>/tmp/pegattach
gnome-open "$xtest" 2>>/tmp/pegattach
}
fi
Don't recall ever getting a PDF file with this encoding, so don't know for sure this would work.
Just looking for option that might make it work.