Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Command Line POP Client 1.01


  • Please log in to reply
5 replies to this topic
Seabiscuit
  • Members
  • 109 posts
  • Last active: May 08 2008 06:31 PM
  • Joined: 07 Jan 2007
Command Line POP Client 1.01 (336 KB)

Command Line POP Client is a free console utility that allows you to receive your e-mails to a local directory. It is suitable for batch jobs or whenever there is a need to download e-mails as files into a folder. This mail receiver supports the POP3 protocol and is both robust and light weight. The settings are defined in an xml file. It is compatible for Windows 95, 98, Me, NT, 2000, XP, 2003 and Vista.

As u can see below, it has 3 option:
- DeleteFromServer - Specifies if messages should be deleted from the server after they have been received
- OnlyDownloadOnce - Specifies if messages are to be downloaded only once. If messages are kept on the server (DeleteFromServer is set to false) and you only want to download new messages set this flag to true
- SaveMessagesDirectory - Specifies where the downloaded messages will be saved. Messages will be saved as plaintext. The filenames will be named by the message subject and a unique identifier. Leave it empty to download e-mails to the default direcotry called 'received' and is normally located at 'c:\program files\command line pop client\received\'.

Here, as an example, its my scripty which I often use in conjuction with AHK for chekin gawab:
pop3=pop.gawab.com
smtp=smtp.gawab.com
[email protected]
password_email=secretpassword
dir_emails=D:\Downloads\emails\
;---------
email_config=D:\Email Downloads\email_config.xml
popclient=c:\Program Files\Command Line POP Client 1.01\popclient.exe
;--------

[color=red];if u havent already %email_config% dir
SplitPath,email_config,,dir
FileCreateDir, %dir%
[/color]IfNotExist %dir_emails%%username_email%
	FileCreateDir, %dir_emails%%username_email%
mail=
(
<?xml version="1.0" encoding="UTF-8"?>
<ConfigData>
	<Server>%pop3%</Server>
	<Port>110</Port>
	<Username>%username_email%</Username>
	<Password>%password_email%</Password>
	<SaveMessagesDirectory>%dir_emails%%username_email%</SaveMessagesDirectory>
	<DeleteFromServer>false</DeleteFromServer>
	<OnlyDownloadOnce>false</OnlyDownloadOnce>
</ConfigData>
)
filedelete %email_config%
fileappend, %mail%, %email_config%
runwait, %popclient% -configfile %email_config%,,min

:) Fast, quiet, simple and reliable.

garry
  • Spam Officer
  • 3219 posts
  • Last active: Sep 20 2018 02:47 PM
  • Joined: 19 Apr 2005
Seabiscuit, interesting, thank you for the script / comments and the program link
works also standalone
changed the last line to see what happens in the DOS window:
runwait,%comspec% /K %popclient% -configfile %email_config%


  • Guests
  • Last active:
  • Joined: --
is this work for gmail?

Seabiscuit
  • Members
  • 109 posts
  • Last active: May 08 2008 06:31 PM
  • Joined: 07 Jan 2007
I never tested on Gmail, but I doubt it will work.

engunneer
  • Moderators
  • 9162 posts
  • Last active: Sep 12 2014 10:36 PM
  • Joined: 30 Aug 2005
Gmail does allow POP access if you turn it on, so it could possibly work, but I am unable to test.

Seabiscuit
  • Members
  • 109 posts
  • Last active: May 08 2008 06:31 PM
  • Joined: 07 Jan 2007
It isnt working, I've test it on 995 and 110 ports. And Gmail requires SSL.
Error on 995
Connecting pop.gmail.com on port 995...Command Line POP Client Error
Error reading from socket. Could not find the match string in the stream.  Detailed information
Socket fd: 1680
socketCloser fd: 1680
System error message: The operation completed successfully.

POP trace saved to file: c:\Program Files\Command Line POP Client 1.01\POPTrace.txt 
If you want help with this problem, please e-mail this error message to [email protected] and attach the POP trace file.
Error on 110
Connecting pop.gmail.com on port 110...Command Line POP Client Error
Error connecting socket.
Failed using the 'connect' system call.
Trying to connect to pop.gmail.com:110.
Detailed information:
Host: socket not connected.
Port: 0
SocketStream: 00000000
System error message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

POP trace saved to file: c:\Program Files\Command Line POP Client 1.01\POPTrace.txt
If you want help with this problem, please e-mail this error message to [email protected] and attach the POP trace file.
Conclusion: you cant use Command Line POP Client 1.01 on Gmail