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

feat: store attachments under a shorter path #259

Merged
merged 3 commits into from
Dec 22, 2023
Merged

Conversation

boxdot
Copy link
Owner

@boxdot boxdot commented Dec 21, 2023

  • Attachments are now stored under
    <data_dir>/gurk/files/year-month-day/. It is easier to open a
    shorter path from terminal. Also they are nicely grouped under the
    files folder.
  • If attachment has a file name, it is used when saving it, otherwise
    the first 8 chars of its hex digest are used.
  • All mimes are based on the content type field are supported now. In
    particular, extensions are resolved for all content types.

Also upgrade presage which now verifies the digest of downloaded
attachments.

* Attachments are now stored under
  `<data_dir>/gurk/files/year-month-day/`. It is easier to open a
  shorter path from terminal. Also they are nicely grouped under the
  `files` folder.
* If attachment has a file name, it is used when saving it, otherwise
  the first 8 chars of its hex digest are used.
* All mimes are based on the content type field are supported now. In
  particular, extensions are resolved for all content types.

Also upgrade presage which now verifies the digest of downloaded
attachments.
@boxdot boxdot changed the title feat: add attachment mime types for mp4 and pdf feat: store attachments under a shorter path Dec 21, 2023
@boxdot boxdot merged commit 0b08486 into master Dec 22, 2023
16 checks passed
@boxdot boxdot deleted the attachment-mime-types branch December 22, 2023 10:32
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

Successfully merging this pull request may close these issues.

1 participant