Skip to content

Customize attachment download directory at CLI and env levels #559

@butterthebuddha

Description

@butterthebuddha

Hello,

Himalaya is a neat little program.

It would be nice if himalaya attachment download worked something like

$ himalaya -o json attachment download 22832
{"22832": [{"name": "A.pdf", "location": "~/Downloads/A.pdf"}]}

instead of

$ himalaya -o json attachment download 22832
"Downloaded 1 attachment!\n"

to allow one to write scripts leveraging himalaya and jq that process email attachments1.

I have very limited Rust experience, but I'd be happy to take a look at putting a change together for this.

Footnotes

  1. My specific use case is fairly simple. I just need to download and re-send attachments in a different email. I'm trying to use Himalaya to replace much of a Python script used to ease the tedium of filing health insurance claims: https://git.sr.ht/~ani/email-automation/tree/main/item/bcbs_claim_mailer.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions