> I like Pegasus, but I have same problem for years. When I send a
> pdf-file as attachment I have to say to Pegasus, that it is Acrobat
> type. When I do nothing, Pegasus send the file as "unknown"
>
> and nobody can open my pdf. How can I change the options, that Pegasus
> automaticly see pdf-files as Acrobat?
>
> Thank you for your help, and sorry for my bad english.
There is a file called filetype.pm in the program directory when will allow you to set the type of a message based on the file extension or actual string in the header of the message. The automatic type selection will use this file to set the file type.
;
; Pegasus Mail System,
; Copyright (c) 1990-97, David Harris, All Rights Reserved.
;
; File Typing Rules
;
; This file is used by Pegasus Mail to determine the "attachment type"
; information for files automatically. It consists of rules that can
; test a file's extension and any byte or strings in the first 512
; bytes of the file. Each line contains the complete set of rules for
; a single type of file, in the following format:
;
; <file type>,<match type>,<operation>[,<operation>...]
;
; "file type" is the WinPMail "attachment type" string that
; should be used if a file matches this rule.
;
; "match type" is one of the following values:
; 0 : Match is good if any operation succeeds
; 1 : Match is only good if all operations succeed
;
; "operation" is one or more groups of three parameters in
; the following format:
; <opcode>,<offset>,<string>
; "opcode" is one of the following characters:
; X : match the file's extension
; B : match the single byte contained in "string"
; at offset "offset" in the file
; S : match the string contained in "string" starting
; at offset "offset" in the file
; R : match the string contained in "string" anywhere
; in the first 512 bytes of the file
; "offset" is the offset to start matching in the file. When
; "operation" is either X or R, it should be set to 0
; "string" is the string or byte to match. It can be ASCII
; characters, or escapes in the form "\xxx", where "xxx"
; is exactly three decimal characters.
;
; Examples:
; MS-Word,0,X,0,.DOC
; - Returns "MS-Word" if the file's extension is ".DOC".
;
; PGP-Public-Key,0,R,0,BEGIN PGP PUBLIC
; - Returns "PGP-Public-Key" if the string "BEGIN PGP PUBLIC"
; appears anywhere in the first 512 bytes of the file.
;
; PCEXE,1,X,0,.EXE,S,0,MZ
; - Returns "PCEXE" if the file's extension is ".EXE"
; AND the first two characters in the file are "MZ".
;
; ZIP-Archive,0,X,0,.ZIP,S,0,PK\003
; - Returns "ZIP-Archive" if the file's extension is ".ZIP"
; OR the first three characters are "PK" and an ASCII 3.
;
; The matching process ends on the first viable match. Because of this,
; if you have both a specific set of rules and a general set of rules
; for any single file type, you should always place the general rules
; after the specific rules in the file to allow more reliable matching.
;
; The parser for this file is inflexible - you must get the format
; right. Note in particular that whitespace is not permitted, or if it
; is present, it is assumed to be significant. The only valid delimiter
; in this file is a comma; the only way you can match a comma in a
; string is by using the escape "\044".
;
; Blank lines and lines in this file starting with ';' or '#' are
; regarded as comments and are ignored.
;
&gt; I like Pegasus, but I have same problem for years. When I send a
&gt; pdf-file as attachment I have to say to Pegasus, that it is Acrobat
&gt; type. When I do nothing, Pegasus send the file as "unknown"
&gt;
&gt; and nobody can open my pdf. How can I change the options, that Pegasus
&gt; automaticly see pdf-files as Acrobat?
&gt;
&gt; Thank you for your help, and sorry for my bad english.
There is a file called filetype.pm in the program directory when will allow you to set the type of a message based on the file extension or actual string in the header of the message. The automatic type selection will use this file to set the file type.
;
;&nbsp; Pegasus Mail System,
;&nbsp; Copyright (c) 1990-97, David Harris, All Rights Reserved.
;
;&nbsp; File Typing Rules
;
;&nbsp; This file is used by Pegasus Mail to determine the "attachment type"
;&nbsp; information for files automatically. It consists of rules that can
;&nbsp; test a file's extension and any byte or strings in the first 512
;&nbsp; bytes of the file. Each line contains the complete set of rules for
;&nbsp; a single type of file, in the following format:
;
;&nbsp;&nbsp;&nbsp;&nbsp; &lt;file type&gt;,&lt;match type&gt;,&lt;operation&gt;[,&lt;operation&gt;...]
;
;&nbsp;&nbsp;&nbsp;&nbsp; "file type" is the WinPMail "attachment type" string that
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; should be used if a file matches this rule.
;
;&nbsp;&nbsp;&nbsp;&nbsp; "match type" is one of the following values:
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 : Match is good if any operation succeeds
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1 : Match is only good if all operations succeed
;
;&nbsp;&nbsp;&nbsp;&nbsp; "operation" is one or more groups of three parameters in
;&nbsp;&nbsp;&nbsp;&nbsp; the following format:
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;opcode&gt;,&lt;offset&gt;,&lt;string&gt;
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "opcode" is one of the following characters:
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; X : match the file's extension
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; B : match the single byte contained in "string"
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at offset "offset" in the file
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; S : match the string contained in "string" starting
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at offset "offset" in the file
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; R : match the string contained in "string" anywhere
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in the first 512 bytes of the file
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "offset" is the offset to start matching in the file. When
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "operation" is either X or R, it should be set to 0
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "string" is the string or byte to match. It can be ASCII
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; characters, or escapes in the form "\xxx", where "xxx"
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; is exactly three decimal characters.
;
;&nbsp;&nbsp; Examples:
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MS-Word,0,X,0,.DOC
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Returns "MS-Word" if the file's extension is ".DOC".
;
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PGP-Public-Key,0,R,0,BEGIN PGP PUBLIC
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Returns "PGP-Public-Key" if the string "BEGIN PGP PUBLIC"
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; appears anywhere in the first 512 bytes of the file.
;
;&nbsp;&nbsp;&nbsp;&nbsp; PCEXE,1,X,0,.EXE,S,0,MZ
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Returns "PCEXE" if the file's extension is ".EXE"
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AND the first two characters in the file are "MZ".
;
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ZIP-Archive,0,X,0,.ZIP,S,0,PK\003
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Returns "ZIP-Archive" if the file's extension is ".ZIP"
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OR the first three characters are "PK" and an ASCII 3.
;
;&nbsp; The matching process ends on the first viable match. Because of this,
;&nbsp; if you have both a specific set of rules and a general set of rules
;&nbsp; for any single file type, you should always place the general rules
;&nbsp; after the specific rules in the file to allow more reliable matching.
;
;&nbsp; The parser for this file is inflexible - you must get the format
;&nbsp; right. Note in particular that whitespace is not permitted, or if it
;&nbsp; is present, it is assumed to be significant. The only valid delimiter
;&nbsp; in this file is a comma; the only way you can match a comma in a
;&nbsp; string is by using the escape "\044".
;
;&nbsp; Blank lines and lines in this file starting with ';' or '#' are
;&nbsp; regarded as comments and are ignored.
;