Skip to main content
cleaned up syntax
Source Link
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. ifIf all mails have been deleted loop will stop. 

Want some more time  ? changeChange sleep to 2 or more. wantWant it faster  ? replaceReplace sleep 1 by a dummy command.

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

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

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 faster  ? replace sleep 1 by a dummy command

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

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
Source Link
Geert
  • 21
  • 1

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 faster ? replace sleep 1 by a dummy command

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