blob: 7ae2b68030c51eb12e7c4a28ce18af59215cb27b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#!/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 }
'
|