Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Perl net::pop3:sslwrapper

by roboticus (Chancellor)
on May 23, 2012 at 10:09 UTC ( #972003=note: print w/ replies, xml ) Need Help??


in reply to Perl net::pop3:sslwrapper

teja402000:

When you present people with a huge wall of code, people will often skip right over your node, as it's not fun to read a billion lines of code. You should spend a little effort to reduce the program to a short example that demonstrates the problem. If you do, you'll often find the answer in the process.

Having said that, I gave the code a brief glance. This is just a guess, but I'm thinking that next statement (line 155) is exiting from the subroutine and skipping to the next EMail. If you instead wrap it with a loop and retry the connection, it may work more to your liking.

...roboticus

When your only tool is a hammer, all problems look like your thumb.


Comment on Re: Perl net::pop3:sslwrapper
Re^2: Perl net::pop3:sslwrapper
by teja402000 (Initiate) on May 23, 2012 at 11:47 UTC

    Hi Roboticus , Ya i should have kept it short and sweet , my apologies. Wrap it up in a loop means ?

      teja402000:

      Actually, now that I look again, it is wrapped up in a loop. The code is a bit much to digest as it is, so I don't see where the error is. I originally didn't see the while (1) you have up there, so I thought the next was throwing you to the next EMail message, thus skipping EMails when you have login faults.

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://972003]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2015-07-06 06:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls