mirror of https://github.com/leahneukirchen/mblaze
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
287 B
Plaintext
10 lines
287 B
Plaintext
8 years ago
|
#!/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 }
|
||
|
'
|