Label incoming Gmail messages that have attachments

Create a Gmail rule that labels new messages with attachments from a known sender and check which messages match.

Use a Gmail rule to collect recurring attachments under one label. For example, label weekly reports from an address you know while leaving messages from that sender without attachments out of the rule.

Create the attachment rule

  1. Open Settings → Profile → Email. Select the Gmail mailbox that receives the files and open Mail Rules.
  2. Select Create rule. In From, enter the sender’s full address, such as [email protected]. Use Subject to narrow the rule to a recurring phrase if needed. Turn on Has attachment.
  3. In Apply label, select the existing label you want, such as Weekly reports. Review the other actions, then select Create rule. Check for Rule created and confirm that the rule shows the intended sender, attachment condition, and label.

Check what matched

Open the selected mailbox and check the label after the next matching email arrives. Expand the email to verify that it contains the expected attachment. To check the rule’s scope, look for a separate new email from the same sender without an attachment and verify that the rule hasn’t labeled it.

Gmail applies filters to individual messages. A conversation may appear under the label when one of its messages matches. Open the matching message to check which file it contains. How Gmail filters match messages.

To organize messages you already received, apply the label to existing conversations.

Archive matching Gmail messages automatically

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy a question to get started

  • How do I create a Kanban view?
  • How do I invite a teammate?
  • Why is a record missing from this view?