AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

command line e-mail retrieval with SSL support?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
aMailuhr
Guest





PostPosted: Fri Jul 15, 2005 4:52 pm    Post subject: command line e-mail retrieval with SSL support? Reply with quote

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/

PostPosted: Fri Jul 15, 2005 8:45 pm    Post subject: Reply with quote

Outlook ?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Belial



Joined: 26 Jun 2005
Posts: 40
Location: Portugal

PostPosted: Sat Jul 16, 2005 12:00 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
aMailuhr
Guest





PostPosted: Sun Jul 17, 2005 8:06 pm    Post subject: Reply with quote

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 Sad , 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


Cool

Exclamation 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





PostPosted: Sun Jul 17, 2005 9:06 pm    Post subject: Reply with quote

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





PostPosted: Sun Jul 17, 2005 9:18 pm    Post subject: Reply with quote

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

PostPosted: Tue Nov 08, 2005 9:33 pm    Post subject: Reply with quote

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) Smile
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Tue Nov 08, 2005 9:48 pm    Post subject: Reply with quote

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






PostPosted: Thu Nov 10, 2005 10:56 pm    Post subject: Reply with quote

Thanks much, appreciated! aMailuhr!
Back to top
toralf as guest
Guest





PostPosted: Sat Dec 17, 2005 2:28 pm    Post subject: Reply with quote

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

PostPosted: Fri Mar 28, 2008 3:57 pm    Post subject: Sweet!....but not perfect... Reply with quote

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
View user's profile Send private message
avitar
Guest





PostPosted: Wed Sep 03, 2008 10:54 pm    Post subject: problems accessing gmail with getmail Reply with quote

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

PostPosted: Wed Sep 03, 2008 11:16 pm    Post subject: Reply with quote

Titan wrote:
Outlook ?

even IE
Fire Fox
those are free
opera
i could go on
_________________
Basic Webpage Controls with JavaScript / COM - Tutorial by Jethrow
Back to top
View user's profile Send private message
avitar
Guest





PostPosted: Thu Sep 04, 2008 2:35 pm    Post subject: accessing gmail with getmail/stunnel Reply with quote

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





PostPosted: Wed Sep 10, 2008 5:56 pm    Post subject: problems accessing gmail with getmail Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group