garric 0 Newbie Poster

Hello,

When mail command is used to read mails.... after 1 msg is viewed, a prompt is displayed for user input ...for eg

'n' - to move to the next msg
'd' - to delete the msg just read ...etc

how can i include this feature in a shell script where the defualt action reqd is to delete ie more specifically ...i want to copy a mail into a file and delete it immediately (user input is 'd')

Can sumone please help me, its urgent, please

Thanks a lot ....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.