X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=mimedecode.docbook;h=e8a0b2346a53b187d0f1e3bbb24d725339412702;hb=49058d6afeb5ed7df0cda2815d41edfa2474dd17;hp=7d767f3cff55fe7eb7030c46e5952bca3c068724;hpb=c28acc38624deae7053621be113c102ca86472a7;p=mimedecode.git diff --git a/mimedecode.docbook b/mimedecode.docbook index 7d767f3..e8a0b23 100644 --- a/mimedecode.docbook +++ b/mimedecode.docbook @@ -536,9 +536,21 @@ cat input_file | mimedecode.py -o output_file counter is prepended to the filename to avoid collisions; if there are no name/filename parameters, or the name/filename parameters contain forbidden characters (null, slash, backslash) the filename is just the serial counter. + + + + If the file doesn't have any extensions (no dots in the value of the + name/filename parameters, or the name is just the counter) the program tries + to guess an extension by looking up the content type in mime.types files + including .mime.types file in the user's home directory (if it exists). If + the file has an extension the program doesn't try to verify that it + corresponds to the content type. + + + The file is saved in the directory set with -O (default is the current - directory). The save options are processed before option -e so the user can - save the message that causes the error. + directory). The save options are proceeded before -e options so the user can + save the message that causes an error.