Guest User

Untitled

a guest
Jul 16th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. (5:40:50 PM) jeetendra.p: use Net::IMAP;
  2.  
  3.  
  4. my $username = "sameer\@onlyfordemo.com";
  5. my $passwd = "nQ3gCgSZc4d8aLBJdTIRstVsJptjeW5z";
  6.  
  7. my $imap = new Net::IMAP('localhost') or die "$! \n";
  8. $imap->login($username,$passwd) or die "$! \n";
  9. my $ret = $imap->getquotaroot('INBOX');
  10. if($$ret{Status} ne "ok") {
  11. print "getquotaroot failed: Serverresponse:$$ret{Status}";
  12. }
  13. $imap->logout();
Add Comment
Please, Sign In to add comment