3 .ds ;G \\*(;G\\f\\$1\\$3\\f\\$2
4 .if !
\a\\$4
\a\a .Af \\$2 \\$1 "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
7 .ie
\a\\$3
\a\a .ft \\$1
11 .Af "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" "\\$8" "\\$9"
16 .aF 5 \\n(.f "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
19 .aF 5 1 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
22 .aF 1 5 "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7"
24 .de EX \" start example
41 mime \- mime/mailcap interface
51 Mime_t* mimeopen(unsigned long \fIflags\fP);
52 void mimeclose(Mime_t* \fImime\fP);
54 int mimeload(Mime_t* \fImime\fP, const char* \fIpath\fP, unsigned long \fIflags\fP);
55 int mimelist(Mime_t* \fImime\fP, Sfio_t* \fIsp\fP, const char* \fIpattern\fP);
57 char* mimeview(Mime_t* \fImime\fP, const char* \fIview\fP, const char* \fIname\fP, const char* \fItype\fP, const char* \fIopts\fP);
58 int mimeset(Mime_t* \fImime\fP, char* \fIline\fP, unsigned long \fIflags\fP);
61 These routines provide an interface to the MIME type database.
63 returns a mime session handle that is passed to all of the other routines.
66 argument is currently unused.
69 closes the mime session.
72 loads the mime file named by
74 into the mime session.
83 separated list of pathnames, each of which is loaded.
84 Non-existent files are ignored
89 Replace existing entries by new entries with the same type.
90 Otherwise original entries take precedence.
92 More than one mime file can be loaded into a session;
93 the files are searched in load order.
98 then the default mime file is loaded.
101 lists the mime file contents on the
105 This is used for debugging mime entries.
108 returns the type string for
111 always returns a non-null string.
112 If errors are encounterd on
114 then the return value will be