Hi, I have /etc/aliases contetns as below
# /etc/aliases testbug: "|cat ./UpadteBug.pl"
and UpadteBug.pl is as
#UpadteBug.pl @Mail = <STDIN>; foreach(@mail){ print $_; }
When i got a mail with attachment (which has bug related info which i use to update bug database) to 'testbug' then UpadteBug.pl is getting invoked. I see contents of mail but not the contents of attachment.
I'm able to see contents of attachment if I input the email (*.msg) file to UpadteBug.pl.
How to see contents attachments of mail using perl script?
Please help. Thanks in advance I see the text in mail as follows:

------_=_NextPart_001_01CAABE0.6AD9E082 Content-Type: text/html; name="ANTmt94081.htm" Content-Transfer-Encoding: base64 Content-Description: ANTmt94081.htm Content-Disposition: attachment; filename="ANTmt94081.htm"
DQo8SFRNTD48SEVBRD48VElUTEU+PC9USVRMRT48bGluayByZWw9InN0eWxlc2hlZXQiIHR5cGU9 InRleHQvY3NzIiBocmVmPSJodHRwOi8vYXd3LnNoLmJlbC5hbGNhdGVsLmJlL3d0L0I0L2Jhc2Vz dHlsZV9kZHRzLmNzcyI+PC9oZWFkPg0KPEJPRFkgPjx0YWJsZSBib3JkZXIgY29scz0iMSIgd2lk dGg9IjEwMCUiIG5vc2F2ZSA+PHRyPjx0ZD48aDE+PGJyPkREVFMgZHVtcCBmb3IgQU5UbXQ5NDA4 MTwvaDE+PC90ZD48L3RyPjx0cj48dGQ+WyZuYnNwOzxBIEhSRUY9Imh0dHA6Ly9hd3cuc2guYmVs LmFsY2F0ZWwuYmUvZGR0cy9CNC9kdW1wYnVnLmNnaT9hcmdzPUFOVG10OTQwODEmZm9ybWF0PXNo b3J0Ij5TaG9ydCBkdW1wPC9BPiZuYnNwO10gOiBUbyBsaW1pdCBsb25nIGVuY2xvc3VyZXMgY2xp ....... ..... ..... ......... ...... ......
I did not which format is this ?

In reply to How to see contents attachments of mail using perl script? by Viqiko

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.