| View previous topic :: View next topic |
| Author |
Message |
aMailuhr Guest
|
Posted: Fri Jul 15, 2005 4:52 pm Post subject: command line e-mail retrieval with SSL support? |
|
|
Hi all,
I'm trying to build an email client in ahk. I use blat/getmail for this, however getmail does not support SSL (so no GMail access for example).
Does anyone know of a free/small utility that can? |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 4975 Location: /b/
|
Posted: Fri Jul 15, 2005 8:45 pm Post subject: |
|
|
| Outlook ? |
|
| Back to top |
|
 |
Belial
Joined: 26 Jun 2005 Posts: 40 Location: Portugal
|
Posted: Sat Jul 16, 2005 12:00 am Post subject: |
|
|
I think aMailuhr's ideia was a small program to run background with all the email abilities, so the AHK Script could do the rest [GUI, Buttons, a contact with the user basically] ...
It is [of course] true that Outlook can send mails, but it isn't Freeware, it is big and it haves alot of things that are useless for this situation!
[I am being looking for this for a long time too, I wanted something like the "virus email engine", don't interpret me wrong, I just think it is amazing how small the engine is and how perfect it does it's work] _________________ Belial |
|
| Back to top |
|
 |
aMailuhr Guest
|
Posted: Sun Jul 17, 2005 8:06 pm Post subject: |
|
|
Hmm, after a bit of searching I found stunnel, which can provide the SSL I was looking for.
To be able to use it, you'll need the stunnel.exe (very small), and the OpenSSL libraries (libssl32.dll and libeay32.dll), all in all a 2 MB package , but apparently the only way to do this...
You'll need to install the stunnel.exe (as a service) first, you can do this by invoking it with the -install suffix (command line). Now it's installed, but not running (yet)
Gmail example:
create a stunnel.conf file, and fill in the following info:
| Code: | # GLOBAL OPTIONS
client = yes
output = stunnel-log.txt
debug = 0
taskbar = no
# SERVICE-LEVEL OPTIONS
[SMTP Gmail]
accept = 127.0.0.1:1099
connect = smtp.gmail.com:465
[POP3 Gmail]
accept = 127.0.0.1:1109
connect = pop.gmail.com:995 |
Run the following:
| Code: | | Run, net start stunnel |
This will start the stunnel service. Now that it is running, we can use it:
Now the following should work with getmail (receiving e-mails):
| Code: | | run, getmail -u yourusername -pw yourpassword -s 127.0.0.1 -port 1109 |
And the following with blat (sending e-mails):
| Code: | Run, Blat -install smtp.gmail.com yourusername@gmail.com
Run, Blat - -body "this is a test e-mail" -subject "a test" -to someone@somewhere.com -u yourusername -pw yourpassword -f yourusername -debug -server 127.0.0.1:1099 |
You need to change your settings in Gmail for this to work:
"Forwarding and POPAccount" section:
1. Enable POP for all mail (even mail that's already been downloaded)
2. When messages are accessed with POP: keep Gmail's copy in the Inbox.
After you downloaded your e-mails with this setup, Gmails settings will have changed (the downloaded e-mails will be flagged for no redownloading). In order to get the same messages again, you'll need to reenter the mentioned settings...
You can adapt stunnels config file to use different setups... stop it first by using net stop stunnel, change the config file and start the service again with net start stunnel...
Useable: gmail.com (1GB POP/SMTP), spymac.com (1GB POP/IMAP/SMTP), bgxmail.net (10GB POP/IMAP), icmail.net (1GB POP/IMAP/SMTP)
Not-useable: hotmail.com/msn.com, yahoo.com (you need to pay for POP/IMAP/SMTP at these free e-mail providers now) |
|
| Back to top |
|
 |
aMailuhr Guest
|
Posted: Sun Jul 17, 2005 9:06 pm Post subject: |
|
|
You can use the following to get info on any new e-mails from Gmail thru their RSS feed:
| Code: | | urldownloadtofile, https://yourusername:yourpassword@mail.google.com/mail/feed/atom, mails.txt |
Am still looking for a way to get POP access to hotmail/msn/yahoo...
There are a couple of free utils for this available, but 'all' they do is simulate a web-login, extract the mails, convert them to a POP 'compatible' format... |
|
| Back to top |
|
 |
aMailuhr Guest
|
Posted: Sun Jul 17, 2005 9:18 pm Post subject: |
|
|
| PS: you don't need to run stunnel as a service if that is undesireable, you can simply start it, then close/kill it if you are done |
|
| Back to top |
|
 |
MisterW
Joined: 20 Jul 2005 Posts: 65
|
Posted: Tue Nov 08, 2005 9:33 pm Post subject: |
|
|
| aMailuhr wrote: |
Am still looking for a way to get POP access to hotmail/msn/yahoo...
|
Have you tried Hotmail Popper
It's free for me (I must be a valued hotmail user)  |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Tue Nov 08, 2005 9:48 pm Post subject: |
|
|
Currently supported webmail providers:
Hotmail
mail.com
Yahoo
gmail (Google mail)
indiatimes.com
juno
rediffmail
Gossamer mail
Outlook Web Access (Exchange 5.5)
Outlook Web Access 2003
[More...] |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Nov 10, 2005 10:56 pm Post subject: |
|
|
| Thanks much, appreciated! aMailuhr! |
|
| Back to top |
|
 |
toralf as guest Guest
|
Posted: Sat Dec 17, 2005 2:28 pm Post subject: |
|
|
| aMailuhr wrote: | Useable: gmail.com (1GB POP/SMTP), spymac.com (1GB POP/IMAP/SMTP), bgxmail.net (10GB POP/IMAP), icmail.net (1GB POP/IMAP/SMTP)
Not-useable: hotmail.com/msn.com, yahoo.com (you need to pay for POP/IMAP/SMTP at these free e-mail providers now) |
you need to pay for POP3/SMTP at bgxmail.net as well
And as you said before gmail.com only accepty SSL connections to POP3 and SSL.
Currently I can't get a connection to icmail.net
I just test gawab.com. |
|
| Back to top |
|
 |
acowbear
Joined: 14 May 2006 Posts: 45
|
Posted: Fri Mar 28, 2008 3:57 pm Post subject: Sweet!....but not perfect... |
|
|
Sweet. I now have stunnel so blat and getmail are working with my gmail account....BUT, for some reason IF I send mail to myself with blat, then getmail fails to retreive it. It says "There are 0 messages on the server."
I know blat sent it because I can see the message I just sent myself in my inbox when I sign in through the gmail website, but getmail does not recognize it or something...
Anyone know how to fix this or what the problem is?? |
|
| Back to top |
|
 |
avitar Guest
|
Posted: Wed Sep 03, 2008 10:54 pm Post subject: problems accessing gmail with getmail |
|
|
I'm using stunnel 4.25. I can access my gmail inbox, but althought there are 100 or so emails theregetmsil can olny see about 250 of them.
Anyone any ideas?
Avi |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 2294 Location: Louisville KY USA
|
|
| Back to top |
|
 |
avitar Guest
|
Posted: Thu Sep 04, 2008 2:35 pm Post subject: accessing gmail with getmail/stunnel |
|
|
My previous mail was badly typed & difficult to understand - sorry!
I'm running xp. I'd installed stunnel 4.25 and had set the stunnel conf file as recommended in an earlier email here. I can then run stunnel & can.
After I did this I was able to use getmail to access gmail (I use getmail quite a bit to access other email accounts without problems). The getmail parameters are also set up as in the earlier emails to access my gmail account, but for some strange reason getmail was reporting only 250 emails in my gmail inbox and I cannot get the very latest emails that I've sent to gmail. I have 1000 or so in my gmail account so I can't get to all of these with getmail.
So my Qs are:
I assume it's the stunnel setup that is causing the problem.
Is the stunnel .conf setup ok for stunnel 4.25 or is something else needed? Eg timeouts?
Anyone any ideas what else I can try? What about stunnel debug? Will that help/
Especially for the original emailer who suggested how to use stunnel & get getmail working. Any problems?
Regards Avi |
|
| Back to top |
|
 |
avitar Guest
|
Posted: Wed Sep 10, 2008 5:56 pm Post subject: problems accessing gmail with getmail |
|
|
I've posted some emails here saying that getmail doesn't get my most recent emails & thinking it was a stunnel problem - well it wasn't!
Solution is to use recent mode- what's that you say? See gmail help about not downloading all emails.
Use the stunnel conf settings already described here. Then, to get recent mode, put recent: in front of the user name in the getmail line....
eg getmail ....-u recent:jimmy@gmail.com ...
Amazingly this isn't an April 1st joke- it works!
Avi |
|
| Back to top |
|
 |
|