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 (or for 
that matter in racket on github, but I probably don't know where to look)).

I found this:
  
https://pkgs.racket-lang.org/#(!deprecated)(!main-distribution)(!main-tests)(oauth)

Why does google rely on / require a thing which is an emerging standard and 
still unstable?

-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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:
>   https://github.com/acarrico/feeds2gmail/tree/imap
> I've tested this with the popular Courier imap server.
>
> I think my branch will remain a fork since since Greg isn't currently
> using feeds2gmail (I'm actually curious what he's using, after putting
> the effort into feeds2gmail, but we haven't made the time to discuss
> it). As for me, I've setup a few feeds using my branch, but haven't
> decided if I'll use it long term. If I do so, I'll probably need a
> couple more features/fixes.
>
> 2. I've played with the Lua based imapfilter, which seems nice. I'm not
> sure if there is a good argument for porting that to Racket:
>   https://github.com/lefcha/imapfilter

One of my email service provider don't support server side searching
which I found imapfilter depends on.  So I write a script in Racket to
filter the email in client side.  Because I don't familiar with lua, so
Racket is a better tool for me to customize at this level.

Best Regards,
Huang, Ying


-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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  wrote:

>
> 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 with IMAP.  I have successfully used SMTP and POP with
> gmail.
>
> (I remember gmail was finicky a while back when I tried connecting to it 
> using Thunderbird; at some point it broke, with google warning some insecure 
> app was trying to access my mail (same thing happens with my racket attempts 
> so far). I was later able to connect after sufficiently upgrading 
> Thunderbird. (More at 
> https://support.mozilla.org/t5/Set-up-email/Thunderbird-and-Gmail/ta-p/14181)).
>
>
> See:   https://support.google.com/accounts/answer/6010255
>
>
> George
>
> --
> 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 racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 popular Courier imap server.

I think my branch will remain a fork since since Greg isn't currently
using feeds2gmail (I'm actually curious what he's using, after putting
the effort into feeds2gmail, but we haven't made the time to discuss
it). As for me, I've setup a few feeds using my branch, but haven't
decided if I'll use it long term. If I do so, I'll probably need a
couple more features/fixes.

2. I've played with the Lua based imapfilter, which seems nice. I'm not
sure if there is a good argument for porting that to Racket:
  https://github.com/lefcha/imapfilter

-- 
Anthony Carrico


-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: [racket-users] Programming paradigms supported by Racket (according to wikipedia)

2017-02-11 Thread Matthias Felleisen

> On Feb 11, 2017, at 8:31 AM, Greg Trzeciak  wrote:
> 
> I have stumbled upon the following wiki page:
> https://en.wikipedia.org/wiki/Comparison_of_multi-paradigm_programming_languages
> 
> Supported paradigms:
> ---
> Language: Racket
> Num­ber of Para­digms: 6  
> Con­cur­rent: No
> Con­straints: No
> Data­flow: No
> De­clar­at­ive: No
> Dis­trib­uted: No
> Func­tion­al: Yes
> Meta­pro­gram­ming: Yes
> Gen­er­ic: No
> Im­per­at­ive: Yes
> Lo­gic: Yes
> Re­flec­tion: Yes
> Ob­ject-ori­ented: Yes
> Pipe­lines: No
> Visu­al: No
> Rule-based: No
> Oth­er para­digms: No (not listed paradigms can be mentioned here)
> 
> According to the same page eg. Julia supports 17 paradigms.
> 
> Not being an expert in Racket I can see the article sells Racket short. How 
> really this table should look like in regards to Racket?


Racket should be removed from the list. 

 
http://cs.brown.edu/~sk/Publications/Papers/Published/sk-teach-pl-post-linnaean/
 


 Programming language ‘‘paradigms’’ are a moribund and tedious legacy of a 
bygone age. 
 Modern language designers pay them no respect, so why do our courses slavishly 
adhere 
 to them? This paper argues that we should abandon this method of teaching 
languages, 
 offers an alternative, reconciles an important split in programming language 
education, 
 and describes a textbook that explores these matters.
 
 (Shriram’s dissertation on linguistic reuse inspired Racket’s modular system 
of languages.)

If you have time to edit the wikipage, please do so. Thanks — Matthias

-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Programming paradigms supported by Racket (according to wikipedia)

2017-02-11 Thread Jerzy Karczmarczuk

Le 11/02/2017 à 14:31, Greg Trzeciak a écrit :


I have stumbled upon the following wiki page:
https://en.wikipedia.org/wiki/Comparison_of_multi-paradigm_programming_languages

Supported paradigms:
---
Language: Racket
Num­ber of Para­digms: 6
...
According to the same page eg. Julia supports 17 paradigms.

Not being an expert in Racket I can see the article sells Racket short. How 
really this table should look like in regards to Racket?
Well, we poor Haskellians, and our friends, whose prayers go to Lava, we 
have the right to declare just 2 paradigms in our passports... What a 
tragedy...
BTW., I always thought about choosing my religion (e.g. the Mormonism or 
Islam Shia, or Buddhsm Vajrayana) according to the number of paradigms. 
This is THE fundamental property of a religion for a really deep 
Thinker, isn't it?...)


More seriously, *this table is simply silly*. It has been written by 
somebody who scanned some Wikipedia pages, and finding that, e.g., Lava 
is a visual object-oriented language, marked YES in these two columns, 
without looking elsewhere.


Fortran for the Authors is not imperative.

*Please, forget it.* The Authors sometimes issue a semi-positive  "yes", 
saying "library", but I doubt seriously that they could check even 1% of 
the available packages for their 60 languages, which include Windows 
PowerShell, but no Unix shells, no Smalltalk,  etc.
All this "work" should be suppressed from Wikipedia, since it might be 
pedagogically harmful.


Jerzy Karczmarczuk
/Caen, France/

--
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 with IMAP.  I have successfully used SMTP and POP with 
gmail.


(I remember gmail was finicky a while back when I tried connecting to 
it using Thunderbird; at some point it broke, with google warning some 
insecure app was trying to access my mail (same thing happens with my 
racket attempts so far). I was later able to connect after 
sufficiently upgrading Thunderbird. (More at 
https://support.mozilla.org/t5/Set-up-email/Thunderbird-and-Gmail/ta-p/14181)).


See:   https://support.google.com/accounts/answer/6010255


George

--
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[racket-users] Programming paradigms supported by Racket (according to wikipedia)

2017-02-11 Thread Greg Trzeciak
I have stumbled upon the following wiki page:
https://en.wikipedia.org/wiki/Comparison_of_multi-paradigm_programming_languages

Supported paradigms:
---
Language: Racket
Num­ber of Para­digms: 6
Con­cur­rent: No
Con­straints: No
Data­flow: No
De­clar­at­ive: No
Dis­trib­uted: No
Func­tion­al: Yes
Meta­pro­gram­ming: Yes
Gen­er­ic: No
Im­per­at­ive: Yes
Lo­gic: Yes
Re­flec­tion: Yes
Ob­ject-ori­ented: Yes
Pipe­lines: No
Visu­al: No
Rule-based: No
Oth­er para­digms: No (not listed paradigms can be mentioned here)

According to the same page eg. Julia supports 17 paradigms.

Not being an expert in Racket I can see the article sells Racket short. How 
really this table should look like in regards to Racket?

Greg

-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 unsure whether to keep server connection details in the same place or a 
kind of parallel place.) 

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 remember gmail was finicky a while back when I tried connecting to it using 
Thunderbird; at some point it broke, with google warning some insecure app was 
trying to access my mail (same thing happens with my racket attempts so far). I 
was later able to connect after sufficiently upgrading Thunderbird. (More at 
https://support.mozilla.org/t5/Set-up-email/Thunderbird-and-Gmail/ta-p/14181)).

-- 
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 racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.