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

Feature Request: filename/filetype filter #35

Open
k-funk opened this issue Jan 2, 2023 · 0 comments
Open

Feature Request: filename/filetype filter #35

k-funk opened this issue Jan 2, 2023 · 0 comments

Comments

@k-funk
Copy link
Contributor

k-funk commented Jan 2, 2023

Use case: I only want to save pdfs. Right now, I'm running cd files && rm -- ^*.pdf in zsh after running this script, in order to remove the unwanted files.

This could instead be filtered during the query using filename:pdf as per the docs.

There is, however, one problem with only modifying the query: if an email has more than one attachment, both will still get downloaded. To make this function as expected, there would also need to be logic in function fetchAndSaveAttachment() to filter out unwanted files.

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

No branches or pull requests

2 participants