ripMIME icon indicating copy to clipboard operation
ripMIME copied to clipboard

Stdout instead directory operations

Open mkgrgis opened this issue 1 year ago • 0 comments

Hello, @inflex! Thanks for wonderful utility!

What about unix-way standard output of file content instead IO file operations in a directory?

Also this need yet existed functions in other combinations

  • option for recursive counting of included file attachments
  • option for listing of included file attachments with number, so called transport path, Content-ID, size and filename. For example with | or \t delimiter
  • option for filename output by number

My idea in a script where initial $ is a command prompt

$ripmime -i test.eml --count
4
$ripmime -i test.eml --list-attachments
1|0||42148|
2|1|499C00633EA78625828B|98246|incl.eml
3|1-0|499C00633EA78625827A|8934|rfc.txt
4|1-1||35491|image.gif
$ripmime -i test.eml --list-attachment 2
2|1|499C00633EA78625828B|incl.eml
$ripmime -i test.eml --get-filename 1

$ripmime -i test.eml --get-filename 2
incl.eml
$ripmime -i test.eml --get-filename 3
rfc.txt
$ripmime -i test.eml --get-filename 4
image.gif
$fn=$(ripmime -i test.eml --get-filename 4);
$ripmime -i test.eml --get-content 4 > "$fn";

This options allows to solve problems described in https://github.com/inflex/ripMIME/issues/5 https://github.com/inflex/ripMIME/issues/8 https://github.com/inflex/ripMIME/issues/11 https://github.com/inflex/ripMIME/issues/10 https://github.com/inflex/ripMIME/issues/18 and partially https://github.com/inflex/ripMIME/issues/14 and https://github.com/inflex/ripMIME/issues/20.

Do you need any my help with code or testing @inflex ? My PRs in C see in my profile, I am not very productive in C.

mkgrgis avatar Feb 09 '24 18:02 mkgrgis