Re: [racket-users] [Racket-users] IMAP with racket

2017-02-11 Thread Tim Hanson
p.s. I just found this: https://planet.racket-lang.org/package-source/gh/gapi.plt/1/3/planet-docs/manual/Examples.html which leads here: https://github.com/greghendershott/gapi/blob/master/examples/macro/gplus-oauth.rkt and looks promising. (I didn't find any signs of oauth use in sirmail

Re: [racket-users] [Racket-users] IMAP with racket

2017-02-11 Thread Tim Hanson
Bravo! This parallels my motivation. I'm kind of a beginner in Racket, but it is powerful, portable, elegant, well-documented, and well-supported, so I keep dabbling ... -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this

Re: [racket-users] [Racket-users] IMAP with racket

2017-02-11 Thread Huang, Ying
Anthony Carrico writes: > FYI, on the subject of Racket + IMAP: > > 1. Greg Hendershott's feeds2gmail pushes RSS feeds to the gmail host > over IMAP. I fixed a few gmail specific bugs and limitations making it a > general "feeds2imap" in this branch: >

Re: [racket-users] IMAP with racket

2017-02-11 Thread Tim Hanson
Thanks, all, this rings a bell and I note that: https://docs.racket-lang.org/webapi/oauth2.html says use with caution. I will look around and see if I can figure out how to do imap in conjunction with oauth2. Cheers, Tim -- You received this message because you are subscribed to the

Re: [racket-users] IMAP with racket

2017-02-11 Thread Philip McGrath
I have used net/imap with gmail, though it does require enabling "less secure apps" (the link George sent has instructions). I believe the only "less secure" part is that you want to use IMAP for authentication and not OAuth. -Philip On Sat, Feb 11, 2017 at 7:55 AM, George Neuner

[racket-users] [Racket-users] IMAP with racket

2017-02-11 Thread Anthony Carrico
FYI, on the subject of Racket + IMAP: 1. Greg Hendershott's feeds2gmail pushes RSS feeds to the gmail host over IMAP. I fixed a few gmail specific bugs and limitations making it a general "feeds2imap" in this branch: https://github.com/acarrico/feeds2gmail/tree/imap I've tested this with the

Re: [racket-users] IMAP with racket

2017-02-11 Thread George Neuner
On 2/11/2017 7:04 AM, Tim Hanson wrote: I have successfully connected to two of the mail servers I use this way, but not yet to gmail. Has anyone successfully connected to gmail using either of the approaches tested here? Maybe someone can point out what I'm doing wrong? I haven't messed

Re: [racket-users] IMAP with racket

2017-02-11 Thread Tim Hanson
Thanks again for several helpful pointers. I've recorded humble beginnings here: https://github.com/tbhanson/imap-with-racket Comments and suggestions very welcome. (I know in particular I'd like to have a handy way to store my credentials somewhere, am using ~/.myImapCreds for now, but am

Re: [racket-users] IMAP with racket

2017-02-10 Thread Huang, Ying
Hi, Tim, Tim Hanson writes: > I should have dug around in sirmail sooner. Armed with the hint about > parametrize I've now found this: > > (if (get-pref 'sirmail:use-ssl?) > (let-values ([(in out) (ssl-connect server port-no)]) >

Re: [racket-users] IMAP with racket

2017-02-08 Thread Tim Hanson
Cool, thank you! I had no idea about parameterize. I will try that and continue my investigations. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [racket-users] IMAP with racket

2017-02-08 Thread Matthew Flatt
At Tue, 7 Feb 2017 21:54:40 -0800 (PST), Tim Hanson wrote: > https://docs.racket-lang.org/net/imap.html#%28def._%28%28lib._net%2Fimap..rkt%2 > 9._imap-port-number%29%29 > > Does this make imap-port-number a kind of global variable? Normally, `imap-port-number` would be used with `parameterize`

Re: [racket-users] IMAP with racket

2017-02-08 Thread Tim Hanson
P.s. For that matter couldn't folder also be optional, defaulting to "INBOX"? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [racket-users] IMAP with racket

2017-02-07 Thread Tim Hanson
hi, I'm finally finding time to dig into this a little and have a question about https://docs.racket-lang.org/net/imap.html#%28def._%28%28lib._net%2Fimap..rkt%29._imap-port-number%29%29 Does this make imap-port-number a kind of global variable? My naive view is it would be somewhat

Re: [racket-users] IMAP with racket

2016-12-27 Thread Tim Hanson
Thanks for both answers! I'll report back when I've made some progress! Cheers, Tim -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [racket-users] IMAP with racket

2016-12-27 Thread Matthias Felleisen
> On Dec 27, 2016, at 2:32 AM, Tim Hanson wrote: > > Hi, I think I'd like to try using racket as a way to explore relatively > simple ways of getting a grip on some mail accounts that have gotten out of > hand. Specifically I'd like to be able to > - compute some statistics,

[racket-users] IMAP with racket

2016-12-26 Thread Tim Hanson
Hi, I think I'd like to try using racket as a way to explore relatively simple ways of getting a grip on some mail accounts that have gotten out of hand. Specifically I'd like to be able to - compute some statistics, such as number of mails from various addresses - reorganize / clean-up, say by