Skip to content

Commit 9b55f08

Browse files
committed
Updated docs for email.Message.get_filename()
1 parent 4e71930 commit 9b55f08

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Doc/lib/emailmessage.tex

+5-4
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,11 @@
431431

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

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

0 commit comments

Comments
 (0)