Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

mailsim

/mailsim

Przechwytuje, czyta i weryfikuje e-maile wysyłane przez stos LangWatch za pomocą mailsim, lokalnego sinka poczty haven, na przykład linki weryfikacyjne i zaproszenia, oraz obsługuje testy obciążeniowe SMTP.

Repozytorium
langwatch ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Przechwytuje, czyta i weryfikuje e-maile wysyłane przez stos LangWatch za pomocą mailsim, lokalnego sinka poczty haven, na przykład linki weryfikacyjne i zaproszenia, oraz obsługuje testy obciążeniowe SMTP.

Wyzwalacze z opisu

s local mail sink. Use when someone saysdid the email sendwhere is the verification mailinvite linkwait for the emailmailsimthe mail sinkhaven sim mail
Oryginalny opis (EN)

Catch, read and assert on the emails the LangWatch stack sends, using mailsim, haven's local mail sink. Use when someone says 'haven mail', 'did the email send', 'where is the verification mail', 'invite link', 'wait for the email', 'mailsim', 'the mail sink', 'haven sim mail', 'test the reset email', or needs to load-test SMTP.

Jak działa

  1. Run it
  2. Inspect and assert (HTTP)
  3. Seed and reset
  4. Tests and load
  5. From a terminal or agent
Sekcje z nagłówków SKILL.md, w oryginale · 54 linii, 351 słów
Podgląd SKILL.md
---
name: mailsim
description: "Catch, read and assert on the emails the LangWatch stack sends, using mailsim, haven's local mail sink. Use when someone says 'haven mail', 'did the email send', 'where is the verification mail', 'invite link', 'wait for the email', 'mailsim', 'the mail sink', 'haven sim mail', 'test the reset email', or needs to load-test SMTP."
user-invocable: true
---

# mailsim

A local SMTP sink plus inbox. It catches every message the stack sends and relays
nothing, whatever the recipient domain. Code: `services/sims/mailsim`, console
`apps/sims/src/mail`.

## Run it

- On by default in haven (`haven up`; `-mail` turns it off). Runs in the `go` lane by default (see `sims`).
- URL: `https://mail.<slug>.langwatch.localhost` (console); `haven status` shows the
  loopback HTTP port (`MAILSIM_HTTP_ADDR`) and the SMTP port (`MAILSIM_SMTP_ADDR`).
- The app's own mail is routed at it (`SMTP_HOST=127.0.0.1`) unless `.env` names a provider.
- No mail provider at all (even one `.env` names): `haven up --no-mail --force` blanks every mail setting for that run; `haven up --force` restores it. It restarts the stack.
- Standalone: `make service svc=mailsim` (HTTP :5580, SMTP :5581).

## Inspect and assert (HTTP)

```
GET    /api/messages?to=&subject=            newest first; case-insensitive substring filters
GET    /api/messages/{id}    /{id}/html      one message: text, html, headers, links
GET    /api/messages/wait?to=&subject=&after=<id>&timeout=30s
                                             long poll; 200 message, 204 on timeout
DELETE /api/messages   |   DELETE /api/messages/{id}
GET    /api/inbox                            stack, own address, SMTP address, persistence
GET|PUT /_sim/api/settings                   {"forcedError": 0|4xx|5xx}: SMTP MAIL FROM refused with that code
```

Test pattern: trigger the action, then `curl ".../api/messages/wait?to=a@x.test&subject=verify&timeout=20s"`
and read `links[0]`. Use `after=<newest id>` to ignore older mail.

## Seed and reset

- `MAILSIM_SEED=1` (haven sets it) delivers three sample messages at start.
- Reset with `DELETE /api/messages`. `MAILSIM_DATA_DIR` (haven sets it per slug) persists
  mail across restarts.

## Tests and load

- Send with any SMTP client to the SMTP port; no auth needed.
- Bounded: `MAILSIM_MAX_MESSAGES` (default 10000) keeps the newest and evicts the oldest;
  `MAILSIM_MAX_MESSAGE_BYTES` (default 10 MiB) caps one message. Id and recipient lookups
  are indexed. Benchmark: `go test -bench . -benchmem ./services/sims/mailsim`.

## From a terminal or agent

`--json` on every read (default in agent mode); non-zero exit on failure; a `wait` timeout exits 66.

```
haven sim mail address | status | list [--to] [--subject] | get <id> [--html] | links <id>
haven sim mail fault <4xx|5xx|off>               # SMTP sends refused with that reply code (4xx retry, 5xx permanent); off clears it
haven sim mail wait [--to] [--subject] [--after <id>] [--timeout 30s] | delete <id> | clear
```

Wersje

W bazie nie ma innych skilli o nazwie mailsim.

Migawka bazy z 13.11.2026 · wersja paczki aa1b9ed7af8f (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100mail-template
    Dodaje lub zmienia transakcyjny e-mail LangWatch: schemat propsów, fixtury, temat, komponent na wspólnym ekspresyjnym layoucie, wpis w rejestrze i powiązany scenariusz, z podglądem w studiu.
  • 90sims
    Opisuje lokalne symulatory LangWatch, ich uruchamianie jednym plikiem binarnym i testy obciążeniowe.
  • 100email-smtp-send
    Wysyła e-maile przez SMTP z lokalnymi załącznikami i opcjonalnym zapisem kopii w folderze Wysłane przez IMAP APPEND, także do testów połączenia SMTP.
  • 100mailpit-testing
    Przechwytuje wiadomości testowe w lokalnym serwerze SMTP Mailpit i sprawdza temat, treść i linki w wysyłanych mailach.
  • 100sending-emails
    Pomaga integrować, konfigurować i diagnozować wysyłkę e-maili przez Mailtrap (Email API lub SMTP) w aplikacji.
  • 100spring-mail
    Wysyła e-maile w Spring Boot 3.x: JavaMailSender, wiadomości HTML, załączniki, szablony Thymeleaf i FreeMarker, wysyłka asynchroniczna i testowanie.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.