In August 2002, Paul Graham published an essay with an unassuming title and a blunt first sentence: “I think it’s possible to stop spam, and that content-based filters are the way to do it.” The essay, “A Plan for Spam,” described the filtering techniques used in a web-based mail reader he had built. It is remembered, when it is remembered at all, as the popularizer of Bayesian spam filtering. That is accurate as far as it goes. But the more durable artifact is not the algorithm. It is the premise: that a filter should read the whole message — headers, subject line, body, embedded markup — and learn from each reader’s own mail what counts as unwanted.
That premise changed what a format choice means. Once a filter reads the header section as evidence, a subject line is no longer decoration around the message. It is part of the message’s meaning to the inbox. For writers who treat the inbox as a site of editorial independence rather than a channel to be optimized, the essay is worth reading not as a technical milestone but as a document about how containers discipline content.
The problem the essay was answering
Graham’s starting point was a failure of his own. He had spent about six months writing software that looked for individual spam features — the all-caps subject line, the “Dear Friend” salutation, the word “click.” The approach worked at first. He reports that merely looking for the word “click” caught 79.7% of the emails in his spam corpus, with only 1.2% false positives. But the last few percent got very hard, and as he made the rules stricter, false positives rose.
That trade-off is the heart of the essay. Graham treats a false positive — an innocent email mistakenly classified as spam — as far worse than a missed spam. His analogy is memorable and slightly alarming: a filter that yields false positives is like an acne cure that carries a risk of death to the patient. He also notices a perverse dynamic: the better filters get, the more dangerous false positives become, because users stop checking the spam folder.
The statistical approach he describes replaced hand-written rules with two corpora — one of spam, one of legitimate mail — and a per-token probability calculated from how often each word appears in each. At the time he wrote, each corpus held about 4,000 messages. The filter scanned the entire text, “including headers and embedded html and javascript.” It counted tokens, ignored all-digit tokens and HTML comments, and computed the probability that a message containing a given token was spam. When new mail arrived, the fifteen tokens whose probabilities were furthest from neutral were combined into a single score. Mail above a threshold of .9 was treated as spam.
Graham was careful to say that the numbers were his own, from his own mail. The essay’s recommendation was not a universal threshold but a per-user one: each user should have two delete buttons, ordinary delete and delete-as-spam, and the filter should learn from the actual mail that user receives. That design choice — per-user corpora — is what makes the essay an editorial document rather than merely a technical one. It reframes the inbox as a negotiated, personal boundary rather than a platform-wide channel.
What the filter actually reads
To understand why the essay matters for format, it helps to look at what an email message is according to the standards that define it. RFC 5322, the Internet Message Format specification, describes a message as header fields followed optionally by a body, separated by an empty line. The header section has its own syntax: field names, colons, field bodies, line-length limits. RFC 5321, the SMTP specification, describes the envelope that carries the message between servers. The envelope and the header section are different things, and filters can read both.
Graham’s filter read the header section as tokens. In the 2002 essay, the tokenization was deliberately simple: letters, digits, dashes, apostrophes, and dollar signs were constituent characters; everything else separated tokens; case was ignored. By the time of his January 2003 follow-up, “Better Bayesian Filtering,” the tokenization had become more sophisticated. Case was preserved. Exclamation points became constituent characters. Periods and commas counted when they fell between digits, so prices and IP addresses stayed intact. Tokens appearing in the To, From, Subject, and Return-Path lines were marked with a prefix, so that “free” in the Subject line became a different token from “free” in the body.
The follow-up gives a concrete illustration of why that distinction matters. In the revised filter, “free” in the Subject line had a spam probability of 98%, while the same word in the body had a probability of only 65%. The 2002 filter would have assigned both the same probability, about .76. The lesson is not that subject lines are inherently spammy. It is that position within the message is itself evidence. A filter that reads structure can distinguish between the same word in different places, and that distinction is available to any writer who chooses to use it.
The public revision as editorial practice
The January 2003 follow-up is worth reading alongside the original, not because it corrects the algorithm but because it models a kind of editorial honesty that is rare in technology writing. Graham published a plan, then published what the plan got wrong. He reports that in a one-month period he received about 1,750 spams, of which four got through — a filtering rate of about 99.75%. He also reports three false positives in the same period, including two newsletters from companies he had bought things from. Those newsletters had switched to commercial email senders, and both their headers and their bodies had become, in his word, “spammier.”
That detail is more instructive than the headline numbers. The newsletters were not spam in any simple sense. They were legitimate mail whose format had changed in ways that made it resemble spam to a filter trained on the recipient’s own corpus. The filter was reading the container, and the container had been redesigned by someone else. This is the ordinary condition of the inbox: the format choices that determine whether a message arrives are often made by parties other than the writer.
The follow-up also contains Graham’s prediction of what spam would become: neutral text followed by a URL. He describes a message saying someone had finished their homepage and would you go look at it, with the page being an ad. The prediction is interesting less as a forecast than as a description of the pressure that filtering puts on format. If the filter reads the whole message, the spammer’s response is to make the message look like ordinary mail. The container disciplines the content by making certain kinds of content expensive to send.
What the essay does not settle
It is tempting to read “A Plan for Spam” as the moment Bayesian filtering won. The historical record is more modest. Graham himself, in the follow-up, credits earlier work: two papers given at the same conference in 1998, one by Pantel and Lin and another by a group from Microsoft Research. Peter Seibel’s chapter on practical spam filtering credits the essay with launching a shift from handcrafted rules to statistical filtering, which is a claim about influence rather than invention. LWN’s comparison of Bayesian filters describes the approach as “kicked off in 2002 with the publication of Paul Graham’s A plan for spam,” and notes that a well-trained filter adapts to each user’s particular mail stream.
What the retrieved sources do not establish is how any current mail provider filters mail, what the current false-positive rates are, or how later authentication standards changed the picture. Those are separate histories. The essay’s value for writers is not that it describes the inbox as it now exists. It is that it describes, in dated and specific terms, a moment when the inbox began to read format as evidence — and it makes an argument about who should control that reading.
A practical exercise, offered as a hypothesis
Graham’s per-user design suggests an exercise for anyone who publishes a newsletter or writes email that needs to arrive. It is not a test with results; it is a way of reading your own format choices as a filter might.
Take one issue you have sent. Read the subject line, the preheader if you use one, the From name, and the first sentence of the body as a sequence of signals rather than as copy. Ask which of those signals you chose deliberately and which you inherited from a template. A subject line that begins with a number, a preheader that repeats the subject, a first sentence that opens with a question — these are conventions, and conventions are readable. The question is not whether a filter will flag them. The question is whether they are the signals you want to send.
Then consider the reverse. Graham’s filter learned from each user’s own mail, which means the words that marked a message as legitimate were often specific and personal: the name of a friend, a term from work, a word that appeared in no spam. A writer cannot know those words for every reader. But a writer can choose to write in a register that is specific rather than generic, and specificity is harder to imitate than a template. That is not a filtering strategy. It is an editorial one, and it happens to align with the way the filter in the essay was designed to read.
Why the artifact still matters
The essay is dated August 2002. Its follow-up is dated January 2003. The standards that define the message format — RFC 5322 and RFC 5321 — were published in October 2008, consolidating earlier specifications. The dates matter because they locate the argument. The inbox did not always read format as evidence. A particular essay, at a particular moment, argued that it should, and described a mechanism for doing so that was personal rather than platform-wide.
That argument is the reason to read the essay now. Not because Bayesian filtering is the answer to the inbox’s current problems, and not because the past was better. Because the essay makes a case that the container disciplines the content, and that the person who controls the container controls a great deal of what the content can mean. For writers who want to make deliberate format choices, that case is still worth arguing with.