LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Mail file parsing (https://www.linuxquestions.org/questions/programming-9/mail-file-parsing-350184/)

paddyjoy 08-05-2005 02:43 AM

Mail file parsing
 
Does anyone know of any tools that could be used to parse a mailbox file eg: /var/mail/root ? Basically I am trying to extract information from certain emails into a database.

Thanks,
Paddy

twantrd 08-05-2005 07:04 PM

why not use grep | awk | sed?

-twantrd

paddyjoy 08-05-2005 08:36 PM

Thanks yes I think I'm going to have to do that. It would be nice though if there was some package already that could break down the file into seperate files one for each mail and attachments.

Paddy

eddiebaby1023 08-07-2005 04:53 AM

Use your problem as an excuse to get to grips with regular expressions and the wonders of the text manipulation features of Linux/UNIX. Post any snags you have difficulty with and we'll be happy to help.

paddyjoy 08-07-2005 10:52 PM

Thanks for the advise I'll give it a go and see how I get on.

Paddy


All times are GMT -5. The time now is 03:37 PM.