[SOLVED] Read html attachment from /var/mail

Hi,

I am receiving an email to the server with a html attachment. When I check the /var/mail the attachment is showing as junk characters.

I want to move that html file to a particular location in that server.

Please help me.

Regards
Neethu

What are you reading the email with?

I was reading the email with cat /var/mail.

I want to read only the html attachment in that email and move that attachment to another location in the same server.

Please let me know how to do that.

Assuming your attachment is being sent by using uuencode.
Try to decode that file..

use

uudecode -o output_file input_file

Hope this helps you..

1 Like

Hi Pamu,

Thanks a lot... It is working as expected...

Once again thanks a lot... :slight_smile:

Regards
Neethu