@wirecat/mail-cli 0.40.0 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,41 @@
2
2
 
3
3
  Notable changes to `@wirecat/mail-cli`. One section per version, newest first.
4
4
 
5
+ ## 0.42.0 — 29.11.2026
6
+
7
+ ### Changed — may break callers
8
+
9
+ - **A server find says it is not stored in one place** (cli-core 3.4.1, was 3.4.0). In the terminal, the separate
10
+ "(on the mail server, not stored)" line under each find is now a `server` tag on the find's header line
11
+ (`… · bill, direct · server`). In `--json`, `found_in: "server"` alone says it: the `ingested: false` field 0.41.0
12
+ added is gone, since it only repeated `found_in`.
13
+
14
+ ## 0.41.0 — 29.11.2026
15
+
16
+ ### Added
17
+
18
+ - **`sync --query '<query>'` stores only what the server's search finds for a query**, the mail a search showed as
19
+ not stored. It asks the server as `search messages` does, tags what it stores by the owner's rules, stores a big
20
+ email from its first 256 KiB for the next `sync` to read whole, and leaves the window and position of `sync` as they
21
+ were. It takes no other `sync` option ([usage](docs/usage.md#search-your-mail)).
22
+
23
+ ### Changed — may break callers
24
+
25
+ - **`search messages` no longer stores what the mail server finds** (owner's ruling, 2026-11-29;
26
+ [wirecat#928](https://github.com/WireCatLabs/wirecat/issues/928)). It still asks the server (`--backend`), and the
27
+ same strict query decides the finds, but a find the store lacks is only shown: it comes first, with
28
+ `found_in: "server"` and `ingested: false` in `--json` and "on the mail server, not stored" in the terminal, and
29
+ `messages show` cannot read it until it is stored. The answer's `next` gives the command that stores it.
30
+ `MAIL_READ_ONLY` no longer turns the server search off, since the search writes nothing
31
+ ([usage](docs/usage.md#search-your-mail)).
32
+
33
+ ### Fixed
34
+
35
+ - **The agent skill now starts only for requests about email**: a named mailbox or account, an email or thread, a
36
+ send or change, mail rules, setting up or syncing a mailbox. It used to start for any task that needs the owner's
37
+ mail. A question that names no channel goes to WireCat's search across all sources, and the skill no longer
38
+ points at it.
39
+
5
40
  ## 0.40.0 — 29.11.2026
6
41
 
7
42
  ### Fixed
package/README.md CHANGED
@@ -48,7 +48,8 @@ You need Node.js 22.16 or a later 22.x, or 24 or later. To try it with no instal
48
48
  - **Search and read the stored mail.** `search messages 'from:ann@example.com has:attachment date>30d'` uses the
49
49
  query language of every WireCat CLI, with `list:` for mailing lists; `messages show` gives an email whole with its
50
50
  attachments' text, `conversations list|show` its threads. It searches the profile's mailbox only; it also asks the mail server
51
- for mail `sync` has not read yet, and `--backend archive` keeps to the store.
51
+ for mail `sync` has not read yet and shows it without storing it; `sync --query '<query>'` stores it, and
52
+ `--backend archive` keeps to the store.
52
53
  [wcat](https://github.com/WireCatLabs/wirecat/blob/main/docs/mail.md) searches every mailbox together with your messages and notes.
53
54
  - **Export to mbox or Maildir.** `messages export 'from:ann@example.com' --output-dir ~/mail-backup` reads the original
54
55
  messages from the server into a private folder, one mbox file per folder or a Maildir++ tree for mu and notmuch;
@@ -150,8 +151,8 @@ mail personal config show # every setting and where i
150
151
  Google may show an "unverified app" screen and lets 100 new users in, shared with `gcal` and `drive`; then use a
151
152
  Google app of your own ([steps](https://github.com/WireCatLabs/mail-cli/blob/main/docs/oauth-google.md)).
152
153
  - Gmail caps IMAP downloads at 2,500 MB a day; a new Yandex app password can take 2 to 3 hours to work.
153
- - Search reads the store and asks the mail server for mail `sync` has not read yet; `--backend archive` keeps to
154
- the store.
154
+ - Search reads the store and asks the mail server for mail `sync` has not read yet; it never writes the store.
155
+ `sync --query '<query>'` stores what the server found, and `--backend archive` keeps to the store.
155
156
 
156
157
  What comes next is on the
157
158
  [roadmap](https://github.com/WireCatLabs/mail-cli/blob/main/docs/roadmap.md).
package/dist/bin/mail.js CHANGED
@@ -9,7 +9,7 @@ if (
9
9
  (words[0] === "--version" || words[0] === "-V") &&
10
10
  !Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
11
11
  ) {
12
- process.stdout.write("0.40.0\n")
12
+ process.stdout.write("0.42.0\n")
13
13
  } else {
14
14
  // Before the bundle compiles: the bundle's own call comes after its chunks.
15
15
  module.enableCompileCache()
@@ -26,7 +26,7 @@ if (
26
26
  : next(specifier, context),
27
27
  })
28
28
  }
29
- const chunks = ["../bundle/program-DWRLBUW5.js"]
29
+ const chunks = ["../bundle/program-Q62X3NWC.js"]
30
30
  const preload = () =>
31
31
  Promise.allSettled([
32
32
  ...chunks.map((chunk) => import(chunk)),
@@ -57,7 +57,7 @@ var ENTRIES = [
57
57
  var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
58
58
 
59
59
  // dist/version.js
60
- var VERSION = "0.40.0";
60
+ var VERSION = "0.42.0";
61
61
 
62
62
  // dist/identity.js
63
63
  var PACKAGE = "@wirecat/mail-cli";
@@ -3,7 +3,7 @@ import { createRequire as __bundleRequire } from "node:module";
3
3
  const require = __bundleRequire(import.meta.url);
4
4
  import {
5
5
  DESKTOP
6
- } from "./chunk-VI5G3S4Y.js";
6
+ } from "./chunk-XHLSJ7JE.js";
7
7
 
8
8
  // dist/bin/mail.js
9
9
  import { enableCompileCache } from "node:module";
@@ -15,7 +15,7 @@ if (wcat.code !== void 0) {
15
15
  process.exitCode = wcat.code;
16
16
  } else {
17
17
  const stopCatching = catchCrashes({ cli: DESKTOP.command, interactive: process.stdout.isTTY === true });
18
- const { run } = await import("./program-DWRLBUW5.js");
18
+ const { run } = await import("./program-Q62X3NWC.js");
19
19
  try {
20
20
  process.exitCode = await run(process.argv.slice(2));
21
21
  } finally {