Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48653af

Browse files
committed
Update email.Message.get_filename() documentation.
1 parent a0f28ef commit 48653af

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/lib/emailmessage.tex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,10 +435,11 @@
435435

436436
\begin{methoddesc}[Message]{get_filename}{\optional{failobj}}
437437
Return the value of the \code{filename} parameter of the
438-
\mailheader{Content-Disposition} header of the message, or \var{failobj} if
439-
either the header is missing, or has no \code{filename} parameter.
440-
The returned string will always be unquoted as per
441-
\method{Utils.unquote()}.
438+
\mailheader{Content-Disposition} header of the message. If the header does
439+
not have a \code{filename} parameter, this method falls back to looking for
440+
the \code{name} parameter. If neither is found, or the header is missing,
441+
then \var{failobj} is returned. The returned string will always be unquoted
442+
as per \method{Utils.unquote()}.
442443
\end{methoddesc}
443444

444445
\begin{methoddesc}[Message]{get_boundary}{\optional{failobj}}

0 commit comments

Comments
 (0)