]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
faxmail: application/postscript attachments were sill going inline
authorAidan Van Dyk <aidan@ifax.com>
Wed, 17 Sep 2008 01:12:47 +0000 (01:12 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Wed, 17 Sep 2008 01:12:47 +0000 (01:12 +0000)
The move to handle attachments as seperate documents and not try and munge
them all into a single postscript document forgot the
application/postscript case.

This changes it so application/postscript are handled as seperate
documents, just like everything else.  It adds a special mime type that
will allow postscript to be added inline:
        application/x-faxmail-inline-postscript

faxmail/faxmail.c++

index 81fe1876cdaa1cc913a779c2d2cd12e7739d135b..8cb702a4e9ec6a0d6411f8e41883af283ac11c62 100644 (file)
@@ -612,7 +612,7 @@ faxMailApp::formatMessage(FILE* fd, MIMEState& mime, MsgFmt& msg)
 void
 faxMailApp::formatApplication(FILE* fd, MIMEState& mime)
 {
-    if (mime.getSubType() == "postscript") {   // copy PS straight thru
+    if (mime.getSubType() == "x-faxmail-inline-postscript") {  // copy PS straight thru
        if (withinFile) endFile();
        withinFile = false;
        FILE* fout = getOutputFile();