IMAP Wizard
===========

This project is a fork of email-mcp (https://github.com/codefuturist/email-mcp),
licensed under LGPL-3.0-or-later. The original code remains copyright its
original authors (see the upstream repository and its history). Changes made in
this fork are licensed under the same terms.

This project is not an official project of codefuturist/email-mcp or of Mailoo.

Code adapted from other projects
--------------------------------

This project includes code adapted from Mailoo
(https://github.com/Bitfloo/mailoo, commit f537225),
Copyright (c) 2026 Bitfloo, licensed under LGPL-3.0-or-later.

The adapted files are:

  src/utils/loopback.ts                      loopback host check
  src/utils/loopback.test.ts                 tests for the above
  src/config/schema.ts                       plain-text login guard (the
                                             superRefine on AccountConfigSchema)
  src/connections/credential-redaction.ts    credential redaction in error text
  src/connections/credential-redaction.test.ts
  src/mcp-catalog.test.ts                    tool catalog baseline test (approach;
                                             the baseline data is original)
  src/safety/local-paths.ts                  protected local write locations (idea
                                             and rules; code is rewritten)
  src/safety/local-paths.test.ts             tests for the above
  src/services/protected-mailboxes.ts        folders delete/rename refuse (plus a
                                             common-name fallback added here)
  src/safety/untrusted-content.ts            untrusted-text markers (notice line and
                                             single-pass escaping added here)
  src/services/mailbox-lock.ts               bounded mailbox lock wait (closing the
                                             stuck connection is added here)
  src/tools/toolsets.ts                      toolset grouping idea (tool lists
                                             and filter are original)
  src/tools/export.tool.ts                   export_email tool (idea and shape;
                                             the file writer is original)
  src/services/outgoing-attachments.ts       attach local files by path (the read
                                             guard it calls is original)
  src/services/outgoing-attachments.test.ts  tests for the above
  src/tools/schema-helpers.ts                shared tool input schema pieces and
                                             the dryRun parameter
  src/safety/writer-lease.ts                 one background writer per machine
                                             (adds a lock-less fallback)
  src/safety/writer-lease.test.ts            tests for the above
  src/utils/file-claim.ts                    lock-file claim (adds the host and
                                             process id check for a dead holder)
  src/utils/file-claim.test.ts               tests for the above
  src/services/sieve.service.ts              ManageSieve client (socket reader,
                                             byte budget, deadlines, PLAIN login;
                                             literal-aware responses, CHECKSCRIPT,
                                             implicit TLS and OAuth added here)
  src/services/sieve.service.protocol.test.ts
                                             socket-level tests for the above
  src/tools/sieve.tool.ts                    Sieve tool shapes (the previews,
                                             backups and allowlist are original)

"Mailoo" and "Bitfloo" are names of their respective owners. They are used here
only to attribute the code above and are not used as branding for this project.
