Turning email enquiries into structured, trackable cases
A shared inbox shows what has arrived — not what still needs doing. This article describes how incoming emails become cases that belong to someone, have a status and carry a next deadline.
What you will learn
The answer in three sentences
A shared inbox turns into a case list once every incoming email is assigned to exactly one case — a new one or an existing one. Each case then has a named owner, a status and a next deadline, and the inbox becomes an entry point rather than a filing system. This does not necessarily require a large ticketing system; it requires five decisions made before any technology is chosen.
How a case differs from an email
An email is a message. A case is a request with a history: it starts with an enquiry, collects replies, questions and attachments, and ends with an outcome. In an inbox, a single request is scattered across many messages, often in different folders and with different people. Anyone who wants to know where things stand has to piece it together.
A case needs only a few details, but they need to be reliable:
| Detail | What it is for |
|---|---|
| Case number | A unique reference for questions, replies and phone calls |
| Sender and customer | Links the case to a known customer or flags the sender as unknown |
| Type of request | Determines who is responsible and what information is needed, such as quote, complaint or general query |
| Owner | One person, not a team — otherwise nobody feels it is theirs |
| Status | Shows whether someone needs to act right now, and who |
| Next deadline | When the next step is due |
| History | All messages, attachments and notes in chronological order |
More fields are possible, but every additional mandatory field slows intake down. It makes sense to start with these seven and add only what a report or a rule genuinely needs.
Intake in five steps
Every email arriving in the shared inbox goes through the same sequence. Some steps can be fully automated; others can only be prepared for a person to confirm.
- Filter: out-of-office notes, bounce messages, newsletters and advertising are not enquiries. Automatic replies often carry the
Auto-Submittedheader field; RFC 3834 recommends not sending automatic responses to such messages. Following that rule avoids loops in which two acknowledgement emails keep answering each other. - Match: is this email a reply to an existing case or a new request? This is the most important step and is described in more detail below.
- Classify: compare the sender address against customer records and determine the type of request. For known senders and clear subject lines, a rule can do this; where it is uncertain, the system suggests a category and a person confirms it.
- Create the case: assign a number, attach the email and its files, and send an acknowledgement with the case number in the subject line.
- Assign an owner: according to a stored rule — by customer, region or type of request — together with a first deadline by which someone should have responded.
Cases that no rule covers need a triage list with a named person responsible for it. Without one, unclear emails end up where the problem started: in a folder that everyone can see and nobody works through.
Matching replies to the right case
Two reliable markers are available for matching. The first sits in the header of every properly generated email: RFC 5322 specifies that a message carries a Message-ID, and that a reply refers to its predecessors in In-Reply-To and References. If the system stores the identifier of every acknowledgement it sends, it recognises a reply to it — even when the customer has changed the subject line. The second marker is the case number in the subject, for customers who write a fresh email and type the number in.
<?php
declare(strict_types=1);
/**
* Finds the case an incoming email belongs to.
* 1. Message-IDs from In-Reply-To and References (nearest parent first)
* 2. A case number such as [V-2026-0042] in the subject
*
* @param array<string, string> $knownIds Message-ID => case number
*/
function findCase(string $subject, string $inReplyTo, string $references, array $knownIds): ?string
{
preg_match_all('/<[^<>\s]+>/', $inReplyTo, $direct);
preg_match_all('/<[^<>\s]+>/', $references, $chain);
foreach ([...$direct[0], ...array_reverse($chain[0])] as $id) {
if (isset($knownIds[$id])) {
return $knownIds[$id];
}
}
if (preg_match('/\[(V-\d{4}-\d{4})\]/', $subject, $m) === 1) {
return $m[1];
}
return null; // no match: new case or manual assignment
}Statuses that mean something
A status is only useful if it tells you who needs to act next. Five are enough for most processes:
Two rules make statuses reliable. First, when a customer replies to a waiting case, it automatically switches back to “In progress” and reappears on the owner’s list. Second, waiting cases do not wait forever — after a set period without a reply, someone follows up or the case is closed. How such follow-ups are monitored is covered in Monitoring deadlines and follow-ups reliably.
Closing also needs an answer to a simple question: what happens to an email that arrives after the case has been closed? A common approach is to reopen the case within a defined period and, after that, to create a new case that refers to the old one.
A hypothetical example
The sales office with the general inbox
A wholesaler with three people in its sales office receives enquiries through a general address. Until now, each person marks the emails they take on with a colour. Whoever is on holiday leaves behind coloured emails that nobody touches. When a customer asks for an update, someone searches the inbox, a colleague’s sent items and a spreadsheet of open quotes.
After the change, every incoming email becomes a case or is matched to an existing one. Enquiries from existing customers go to the responsible person by postcode area, complaints go to one fixed contact, and anything unclear goes to the triage list, which the team looks after on a rota. The acknowledgement carries the case number. During holidays, the absent person’s open cases are shown to their deputy instead of disappearing into an inbox.
What stays the same: people still write the replies to customers. What is automated is capturing, matching and making things visible — exactly the part that used to live in colours and in people’s memories.
Follow-up questions and incomplete enquiries
A large share of the work on enquiries is asking for missing information: no item number, an unclear quantity, no delivery address. If you define, for each type of request, which details are needed to process it, you can do two things: flag missing details as soon as the email arrives, and suggest a suitable template for the follow-up question.
Removing the cause is even more effective. For recurring requests — sample orders, returns, appointment requests — a form with mandatory fields often works better than any analysis of free text. The acknowledgement can point straight to the form in those cases. Why free text so often leads to data being entered twice is explained in Avoiding duplicate data entry.
Whether free text is classified with fixed rules or with the help of a language model is a separate decision. Either way, a suggestion remains a suggestion, and uncertain cases go to a person. When a rule is sufficient is described in Automation without AI.
Common mistakes when switching over
Connecting such an intake process to the other systems in a business is part of our process automation service. An example of an application covering everything from incoming enquiry to further processing is our purchasing software project.
Common misconceptions
Further sources
- RFC 5322 — Internet Message Format Section 3.6.4: Message-ID, In-Reply-To and References
- RFC 3834 — Recommendations for Automatic Responses to Electronic Mail The Auto-Submitted header field and rules against reply loops
About the author
Fabian Lücker is managing partner of PHP Schmiede KG in Rheine and has worked in software development since 2007. He is responsible for development and design, and writes here about decisions that come up in real projects.
Turn your inbox into a case list?
Tell us which enquiries arrive through which inbox today and who handles them. We will tell you which steps are worth automating.