Skip to main content
2 of 2
cleaned up syntax
slm
  • 379.8k
  • 127
  • 793
  • 897

The following will help you to read the mails during 1 second, delete the mail and move on to the next one. If all mails have been deleted loop will stop.

Want some more time? Change sleep to 2 or more. Want it faster? Replace sleep 1 by a dummy command.

while (echo dq |mail) do sleep 1 ;done
Geert
  • 21
  • 1