Query: mimecheck
OS: suse
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
mimecheck(1) Check MIME attachments mimecheck(1)NAMEmimecheck - determine the type of the MIME encoded of an attachment mimezip - detect the type of MIME encoded zip archive in an attachment mimebzip - detect the type of MIME encoded bzip2 data in an attachment mimegzip - detect the type of MIME encoded gzip data in an attachmentSYNOPSISmimecheck boundary [file] mimezip boundary [file] mimebzip boundary [file] mimegzip boundary [file]DESCRIPTIONThe scripts mimecheck, mimezip, mimebzip, and mimegzip can be used to determine the contents of MIME encoded attachments of the type appli- cation/octet-stream. The scripts require the boundary as provided in the headers and/or bodys of mails with enclosed attachments. The scripts read from standard input if no file was provided and write out the detected MIME type to standard out.EXAMPLEA short filter rule used by procmail(1) to check for DOS executables in MIME encoded zip archives found in many attachments: BLANK="[ ]+" TYPE="${BLANK}multipart/(alternative|mixed)" :0 * $ ^Content-Type:${TYPE};(${BLANK}|$)*boundary=["']?[^ "';]+ { BOUNDARY="${MATCH}" TYPE="" :0 B * $ ^Content-Transfer-Encoding:${BLANK}base64 { TYPE=`mimecheck ${BOUNDARY}` :0 * TYPE ?? application/x-zip { TYPE=`mimezip ${BOUNDARY}` } } :0 * TYPE ?? executable.*DOS * TYPE ?? DOS.*executable /dev/null } there is no guarantee that this piece of a procmailrc(5) file will work.SEE ALSOprocmailrc(5), file(1), sed(1), mimencode(1).COPYRIGHT2007 SuSE LINUX Products GmbH, Nuernberg, Germany, 2007 Werner Fink.AUTHORSWerner Fink <werner@suse.de>. 3rd Berkeley Distribution Juni 28, 2007 mimecheck(1)
Related Man Pages |
---|
mime-construct(1p) - debian |
mimegpg(1) - debian |
reformime(1) - debian |
mimecheck(1) - suse |
mime::field::conttype5.18(3) - mojave |
Similar Topics in the Unix Linux Community |
---|
multiple attachments |
Sending attachments using email through shell script |
Sending Attachment using MIME in UNIX |
Sending zip file as attachments in perl |
Mail attachment |