bash script - save mailbox messages.
I would like to create a script that will run every day and save all the messages in the inbox and save them to a file then delete the old messages.
Right now I am doing this manually and would like this automated. This is how I am doing it now.
I go to my mail archive folder and type:
> s 1-### mbox.temp###
> d 1-###
Now if the number of messages were the same everyday then I would be able to do this a lot easier. Since I dont know if there is any wild cards I could use for the total number of messages does anyone know another way to do this?