Skip to content

Email Expiration

The expiration feature lets you mark certain emails as temporary so they are automatically deleted after a defined period. This is particularly useful for emails that lose their value after a certain time.

Temporary Email Types

CategoryDescriptionDefault Duration
OTP CodeVerification codes, 2FA, sign-in1 day
DeliveryPackage tracking, shipping confirmations14 days
PromotionFlash offers, promo codes, sales7 days
ManualAny manually marked email7 days

Automatic Detection

Click Detect automatically to scan your recent emails. The application analyzes the subject and sender of each email to identify temporary emails using heuristics:

  • OTP Codes: detection by keywords (verification, code, OTP, sign-in, security) and senders (noreply, security)
  • Deliveries: detection by keywords (shipping, tracking, package, order) and known carriers (UPS, FedEx, DHL, Colissimo)
  • Promotions: detection by keywords (promo, sale, discount, offer) and marketing senders

After detection, you can select which emails to mark as temporary and adjust the duration if needed.

Manual Addition

You can also manually add an email to the expiration list:

  1. Click Add manually
  2. Enter the Gmail message ID
  3. Choose the category
  4. Set the number of days before expiration

Dashboard

The page displays 4 statistics:

  • Pending: marked emails that have not yet expired
  • Expiring soon: emails expiring within the next 24 hours
  • Deleted: emails already automatically deleted
  • Total: total number of expirations created

How It Works

The system checks expirations every 15 minutes. When an email reaches its expiration date, it is automatically sent to the Gmail trash (no permanent deletion, which leaves 30 days to recover).

API

MethodEndpointDescription
GET/api/expiration/:accountIdList expirations
GET/api/expiration/:accountId/statsStatistics
POST/api/expiration/:accountIdCreate an expiration
POST/api/expiration/:accountId/batchBatch create
POST/api/expiration/:accountId/detectHeuristic detection
PATCH/api/expiration/:accountId/:idModify the date
DELETE/api/expiration/:accountId/:idDelete the expiration