title: how to receive mail commandline?
body: <p>Can anybody suggest me a way to receive mail from commandline and save it to a file. i have tried some tool but those were of no use. i tried getmail and popclient. but every time i get an error. may be my syntax is wrong.<br>
  in getmail i tried this command  </p>
  
  <pre><code>getmail -u myemail@gmail.com -pw password -s imap.gmail.com -port 110
  </code></pre>
  
  <p>and got error of winsock.dll<br>
  i have also tried it with port 993 and in this case it gave error of possible time out
  and in popclient i also used this type of settings in config.xml but i got the same error of server not responding.can anybody figure out what's the problem?</p>