in reply to How to use Email::MIME::Attachment::Stripper to download email attachments?

Did you write this code? It looks very similar to examples posted on this site (Trying to extract an attachment, mail attachment extraction... even down to the space between use Email::MIME::Attachment::Stripper and ; ). What have you done to debug this problem? Tutorials->Debugging and Optimization->Basic debugging checklist. I hope those aren't valid Gmail credentials you just posted.

Replies are listed 'Best First'.
Re^2: How to use Email::MIME::Attachment::Stripper to download email attachments?
by pankaj_it09 (Scribe) on May 06, 2014 at 13:10 UTC
    Yes I took the code from one of those posts?

    I tried debugging but unable to solve the problem.

      How did you debug this? What did you notice? There doesn't look like a lot of debugging code here, even less than the examples I linked to.

      When posting it's a good idea to tell (or even better show) how you've tried to resolve the problem, but we've been through this many times over the years, haven't we?

      You seriously want to take a step back and debug this, with focus on the part of your code which actually calls Email::MIME::Attachment::Stripper. Consider also that code posted elsewhere may not be generic and suit someones specific requirement.