maildev / maildev/maildev

Temporary directory on multi-user systems

Open
#290 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
6.1k
Forks
562
Avg merge
4d 11h
Merged PRs (30d)
16

Description

Because maildev puts all of its temporary files under /tmp/maildev, it fails on a multi-user system. For example, if another user ran a maildev program then /tmp/maildev is owned by them with mode 0750, and if I then try to use it, I get errors similar to the following:

    EACCES: permission denied, mkdir '/tmp/maildev/29954'

A simple fix would be to use the user's UID when creating a temporary directory (e.g., /tmp/maildev-504). I can work on a PR for this if there's interest.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue, so first locate where Maildev creates its temporary files under /tmp/maildev and reproduce the multi-user EACCES case. Done means temporary directories are isolated per user and Maildev can start successfully when another user's directory already exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
backend, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.