mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-13 07:10:26 +00:00
10 lines
287 B
Bash
Executable File
10 lines
287 B
Bash
Executable File
#!/bin/sh
|
|
# mhasatt [RANGE...] - print mails with real attachments
|
|
|
|
mshow -t "${@:-:}" | awk '
|
|
/^[^ 0-9]/ && /\// { file = $0 }
|
|
/^.*[0-9]*: (application\/pkcs7-signature)/ { next }
|
|
/^.*[0-9]*: (application|image|video)\// || /^.*[0-9]*:.*name=/
|
|
{ if (file) print file; file = 0 }
|
|
'
|