mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-03 15:40:32 +00:00
add contrib/mhasatt
This commit is contained in:
parent
50e2d1fc47
commit
a2ef8e6e61
9
contrib/mhasatt
Executable file
9
contrib/mhasatt
Executable file
@ -0,0 +1,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 }
|
||||
'
|
Loading…
Reference in New Issue
Block a user