mu-scm: add filename procedure for mime-part

This commit is contained in:
Dirk-Jan C. Binnema
2025-07-08 19:04:31 +03:00
parent 5fdb13fd72
commit 7b4aea432e
3 changed files with 33 additions and 14 deletions

View File

@ -515,12 +515,20 @@ case, @code{content-only?} is implied to be #t.
Write MIME-part to file.
Use @code{filename} is the file/path to use for writing; if this is @code{#f},
the name is taken from the @t{filename} property of the MIME-part alist. If that
does not exist, a generic name is chosen.
the name using the @code{filename} procedure.
If @code{overwrite?} is true, overwrite existing files of the same name;
otherwise, raise an error if the file already exists.
@deffn {Scheme Procedure} filename mime-part
@end deffn
Determine a filename for the given MIME-part.
This is either taken from the @t{filename} property of the MIME-part alist, or,
If that does not exist, a generic name.
@subsection Contacts
Message fields @t{To:}, @t{From:}, @t{Cc:} and @t{Bcc:} contain @emph{contacts}.