X-Git-Url: https://git.phdru.name/?p=mimedecode.git;a=blobdiff_plain;f=mimedecode.docbook;h=02ee7a5b3ccfaddacdbb87bd1c4eb1e7b51b330b;hp=d61acaef38957d1dc203027ea23302cb717bb267;hb=d7aac25395b00e62c5c79160b81dbfcb58f14bcd;hpb=b771dd15001bf68df912f1b991eb9cecce8d1b49 diff --git a/mimedecode.docbook b/mimedecode.docbook index d61acae..02ee7a5 100644 --- a/mimedecode.docbook +++ b/mimedecode.docbook @@ -521,16 +521,18 @@ the program always uses the default decoding. - The 3 save list options (--save-headers/body/message) are similar. They make - the program to save every non-multipart subpart (only headers, or body, or - the entire subpart) that corresponds to the given mask to a file. Before - saving the message (or the subpart) is decoded according to all other options - and placed to the output stream as usual. Filename for the file is created - using "filename" parameter from the Content-Disposition header, or "name" - parameter from the Content-Type header if one of those exist; a serial + The 3 save options (--save-headers/body/message) are similar. They make the + program to save every non-multipart subpart (only headers, or body, or the + entire subpart: headers + body) that corresponds to the given mask to a file. + Before saving the message (or the subpart) is decoded according to all other + options and placed to the output stream as usual. Filename for the file is + created using "filename" parameter from the Content-Disposition header, or + "name" parameter from the Content-Type header if one of those exist; a serial counter is prepended to the filename to avoid collisions; if there are no - name/filename parameters, the filename is just the serial counter. The file - is saved in the directory set with -O (default is the current directory). + name/filename parameters, or the name/filename parameters contain forbidden + characters (null, slash, backslash) the filename is just the serial counter. + The file is saved in the directory set with -O (default is the current + directory).