Dates, sizes and attachments

Mbox Viewer filters messages by date, by age, by size and by attachment with eight operators. Dates use your computer's time zone, after: includes its date and before: excludes it. Sizes use K, M and G in powers of 1024 and must be whole numbers. Every filter below combines with words and other operators. The query from:sophie has:attachment after:2026/01/01 uses three of them.

Which date formats can I type?

after: and before: accept seven formats. Day and month take one or two digits, the year takes four, and a date uses a single kind of separator.

Format Example Meaning
YYYY/MM/DD after:2026/03/12 12 March 2026
YYYY-MM-DD after:2026-03-12 12 March 2026
DD/MM/YYYY after:12/03/2026 12 March 2026 (day first)
DD-MM-YYYY after:12-03-2026 12 March 2026 (day first)
YYYY/MM after:2026/03 1 March 2026
YYYY-MM after:2026-03 1 March 2026
YYYY after:2026 1 January 2026

How do after and before work together?

after: keeps messages from midnight at the start of its date. before: keeps messages up to midnight at the start of its date, and that day is left out. Midnight is local time on your computer.

To find Type
one day after:2026/03/12 before:2026/03/13
one month after:2026/03 before:2026/04
one year after:2025 before:2026
everything since a date after:2026/01/01
everything before a date before:2020

The app takes the date of a message from its Date header. When that header is missing or unreadable, it uses the date on the From line that starts each message in the mbox file.

How do I search by age?

newer_than: and older_than: count back from the current time. The value is a whole number followed by a unit, and the unit can be lowercase or uppercase.

Unit Length Example
d 1 day (24 hours) newer_than:7d
w 7 days newer_than:2w
m 30 days older_than:6m
y 365 days older_than:3y

newer_than:7d keeps messages from the last 7 times 24 hours. It does not start at midnight. An archive exported years ago may return nothing for newer_than:, because the age is measured from today.

How do I filter by size?

larger: keeps messages strictly bigger than the value, and smaller: keeps messages strictly smaller. The size covers the whole message as stored in the mbox file and includes the headers and the encoded attachments.

Value Bytes
500 500
500K 512,000
2M 2,097,152
1G 1,073,741,824

The units ignore case, and a trailing B or o is accepted, so 10MB and 10Mo equal 10M. The value must be a whole number. larger:1.5M returns the warning "Invalid size for larger: “1.5M”" and the filter is ignored. In the Advanced search form, pick greater than or less than, then MB, KB or bytes. The form converts a decimal value for you, so 1.5 MB becomes larger:1536K.

The list shows the size of each message next to its date. A message over 64 MiB is indexed on its first 64 MiB only, but its real size is kept for larger: and smaller:.

How do I find messages with attachments?

has:attachment keeps messages that carry at least one attachment. -has:attachment keeps the others. In the list, a paperclip marks these messages.

An image shown inside the HTML body is not an attachment for the search. The app counts it only when the body does not reference it. Every other file part counts. That includes a part marked inline that the body does not display.

How do I search attachment names?

filename: searches the names of the attachments. The app indexes the full name and each word in it. Any character that is not a letter or a digit separates two words.

Query Finds an attachment named
filename:pdf Invoice-2024.pdf, scan.PDF
filename:invoice Invoice-2024.pdf, invoice_march.xlsx
filename:2024 Invoice-2024.pdf
filename:invoic* Invoice-2024.pdf, invoicing.docx

A plain word search also looks in the attachment names. Use filename: when the word would otherwise match too many subjects and bodies.

Can I mix these filters in one query?

Yes. Every operator on this page combines with the others and with plain words.

  • has:attachment larger:5M older_than:1y lists the messages over 5 MiB with attachments from more than a year ago.
  • from:brightline filename:pdf after:2026 finds this year's PDFs from one sender.
  • {filename:jpg filename:png} -in:sent finds received images.

To keep such a result, save the search as a folder.

Frequently asked questions

How do I find the messages of one day?

Combine after: with the day and before: with the next day. The query after:2026/03/12 before:2026/03/13 returns the messages of 12 March 2026. after: includes its date and before: excludes its date, so the pair covers exactly 12 March.

Is 12/03/2024 the 12th of March or the 3rd of December?

It is 12 March 2024. When the year comes last, Mbox Viewer reads the day first and the month second. Write 2024/03/12 to avoid any doubt.

Which time zone do date searches use?

They use the time zone of your computer. after:2026/03/12 starts at midnight local time on 12 March, and the app applies the summer or winter offset in effect on that date.

How long is a month in newer_than and older_than?

A month is 30 days and a year is 365 days. older_than:1m finds messages sent more than 30 times 24 hours before now, as Gmail does.

Can I search for messages larger than 1.5 MB?

Yes, but the query needs a whole number. Type larger:1536K, because larger:1.5M is refused with a warning. The Advanced search form converts 1.5 MB to larger:1536K for you.

Does a size of 1M mean 1,000,000 bytes?

No. K, M and G are powers of 1024, so 1M is 1,048,576 bytes. A number without a unit is a number of bytes.

Why is a message larger than the files attached to it?

The size counts the whole message as stored in the mbox file. That includes the headers, the text and the attachments in their encoded form, which takes more space than the original files.

Why does has:attachment skip some messages with images?

An image that appears inside the HTML body is not counted as an attachment. Every other attached file counts. That includes a part marked inline that the body does not display.

How do I find every PDF in my archive?

Type filename:pdf. The operator matches the extension and each word of an attachment name, so filename:invoice finds "Invoice-2024.pdf" as well.