Skip to content

Stdout instead directory operations #24

Description

@mkgrgis

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions