Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stdout instead directory operations #24

Open
mkgrgis opened this issue Feb 9, 2024 · 0 comments
Open

Stdout instead directory operations #24

mkgrgis opened this issue Feb 9, 2024 · 0 comments

Comments

@mkgrgis
Copy link

mkgrgis commented Feb 9, 2024

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 #5 #8 #11 #10 #18 and partially #14 and #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant