Skip to main content
improve suggested edit (remove reference to OS from the title; other minor grammar, punctuation)
Source Link
Anthony Geoghegan
  • 13.6k
  • 7
  • 62
  • 66

How to delete Delete a range of mails on Solaris/Linuxemail messages using the 'mail' command?

I have someabout 1k+ mails in an inbox (old cronjob stdout), how to. How do I delete them in bulk?

I'm on Solaris 8 and I have only mail available, no pine or mutt or similar "UI"-based client.

Inline help and man page only give "d #" to delete a specific mail. I've tried for example d 1 - 100 but notno luck. And I don't feel like doing d 1000 times...

Any ideas how to clean up this inbox? I'd actually like to purge all mails older than x days.

How to delete a range of mails on Solaris/Linux using the 'mail' command?

I have some 1k+ mails in an inbox (old cronjob stdout), how to delete them in bulk?

I'm on Solaris 8 and I have only mail available, no pine or mutt or similar "UI"-based client.

Inline help and man page only give "d #" to delete a specific mail. I've tried for example d 1 - 100 but not luck. And I don't feel like doing d 1000 times...

Any ideas how to clean up this inbox? I'd actually like to purge all mails older than x days.

Delete a range of email messages using the 'mail' command

I have about 1k+ mails in an inbox (old cronjob stdout). How do I delete them in bulk?

I'm on Solaris 8 and I have only mail available, no pine or mutt or similar "UI"-based client.

Inline help and man page only give d # to delete a specific mail. I've tried for example d 1 - 100 but no luck. And I don't feel like doing d 1000 times.

Any ideas how to clean up this inbox? I'd actually like to purge all mails older than x days.

add Linux as a platform as the solution works on the more used Linux as well
Link

How to delete a range of mails inon Solaris/Linux using the 'mail' command?

edited tags
Link
Gilles 'SO- stop being evil'
  • 865.4k
  • 205
  • 1.8k
  • 2.3k
Source Link
GWu
  • 283
  • 1
  • 2
  • 7
Loading