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

Commits on Dec 21, 2023

  1. Configuration menu
    Copy the full SHA
    8bcdb1f View commit details
    Browse the repository at this point in the history
  2. feat: store attachments under a shorter path

    * 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 committed Dec 21, 2023
    Configuration menu
    Copy the full SHA
    6a01171 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    39c0b08 View commit details
    Browse the repository at this point in the history