Linux & Maildir: What's a simple way to move messages from the Cron Daemon out of the inbox for safe keeping? They're causing clutter.

My user account on linux gets some Cron Jobs among mail from humans. I don't want to see the cron messages.

How can I script it so they are moved out of the "inbox" view (for example, on Squirrel Mail or my mobile client)?

I can grep for root@<domain> (Cron Daemon) to find the files that are emails from Cron. But I don't know how to actually process them from here.

Edit: they are using dovecot here, in case that makes a difference. Messages appear as files in the format:
1696857026.V902I580559fM559719.<domain>.de:2,

Edit 2: I have learned that the trailing S can be appended to a filename to mark it as read (or Seen), so I just need to know how to move it from the inbox to somewhere safe now.

oshu,

Why not reconfigure cron not to send the unwanted messages?

FarraigePlaisteach,
FarraigePlaisteach avatar

I don’t have root. Otherwise that would be ideal.

lurch,

Maybe it would be better to have people pipe their mails into a rotated log dir, so you only get critical errors.

FarraigePlaisteach,
FarraigePlaisteach avatar

I don’t have root though

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux
  • DreamBathrooms
  • magazineikmin
  • ethstaker
  • khanakhh
  • rosin
  • Youngstown
  • everett
  • slotface
  • ngwrru68w68
  • mdbf
  • GTA5RPClips
  • kavyap
  • thenastyranch
  • cisconetworking
  • JUstTest
  • cubers
  • Leos
  • InstantRegret
  • Durango
  • tacticalgear
  • tester
  • osvaldo12
  • normalnudes
  • anitta
  • modclub
  • megavids
  • provamag3
  • lostlight
  • All magazines