* improvements in attachment / mime-part handling:

- add mu_util_play for 'playing' (opening) attachments; depends on xdg-open
  - stricter check for mu extract cmdline params
  - don't allow overwriting unless --overwrite was specified
  - mu extract now has a --play option to 'play' (open) attachments
  - added unit test to verify --overwrite
  - some cleanups in attachment/mime-part handling
This commit is contained in:
Dirk-Jan C. Binnema
2011-01-09 14:55:25 +02:00
parent 4ff04d7829
commit 623ec34ab8
10 changed files with 305 additions and 163 deletions

View File

@ -1,4 +1,4 @@
.TH MU EXTRACT 1 "October 2010" "User Manuals"
.TH MU EXTRACT 1 "January 2011" "User Manuals"
.SH NAME
@ -41,7 +41,14 @@ the current working directory.
.TP
\fB\-\-overwrite\fR
overwrite existing files with the same name.
overwrite existing files with the same name; by default overwriting is not
allowed.
.TP
\fB\-\-play\fR
Try to 'play' (open) the attachment with the corresponding
application. Depends on the \fBxdg-open\fR utility.
.SH BUGS
Please report bugs if you find them:
@ -54,4 +61,4 @@ Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
.SH "SEE ALSO"
.BR mu(1)
.BR mu(1) xdg-open(1)