Discussion:
[9fans] Reading gmail
(too old to reply)
Burton Samograd
2012-05-15 02:51:08 UTC
Permalink
I'm currently stuck with gmail and you can't login to google using
readweb. Is there any way to read gmail from plan9? Over SSL imap
maybe? I searched for imapfs but came up with nothing.

--
Burton Samograd
s***@9front.org
2012-05-15 03:08:07 UTC
Permalink
Post by Burton Samograd
Is there any way to read gmail from plan9? Over SSL imap
maybe? I searched for imapfs but came up with nothing.
Mount your gmail account via IMAP:

upas/fs -f /imaps/imap.gmail.com/***@gmail.com

The first time you try this, upas/fs will complain:

upas/fs: opening /imaps/imap.gmail.com/***@gmail.com: imap.gmail.com/imaps:server certificate HASH not recognized

Add the provided certificate to /sys/lib/tls/mail, like so:

x509 sha1=HASH

Run the upas/fs line again, and this time gmail via IMAP will
be mounted in /mail/fs, accessible to the standard mail tools.

-sl
John Floren
2012-05-15 03:51:41 UTC
Permalink
Is there any way to read gmail from plan9?  Over SSL imap
maybe? I searched for imapfs but came up with nothing.
       x509 sha1=HASH
Run the upas/fs line again, and this time gmail via IMAP will
be mounted in /mail/fs, accessible to the standard mail tools.
-sl
If you have a large number of messages, Erik's "nupas" is useful; IIRC
it will cache messages locally so you don't have to download a ton of
headers each time you start upas.

However I've found that with both old upas and nupas, there are some
messages that make them choke. Sadly I can't remember what triggered
it.

john
Matthew Veety
2012-05-15 03:57:38 UTC
Permalink
Post by John Floren
If you have a large number of messages, Erik's "nupas" is useful; IIRC
it will cache messages locally so you don't have to download a ton of
headers each time you start upas.
However I've found that with both old upas and nupas, there are some
messages that make them choke. Sadly I can't remember what triggered
it.
john
My 16,000 message inbox usually make nupas and upas shit the bed. I've never had specific messages kill it though.

--
Veety
erik quanstrom
2012-05-15 08:43:54 UTC
Permalink
Post by Matthew Veety
Post by John Floren
If you have a large number of messages, Erik's "nupas" is useful; IIRC
it will cache messages locally so you don't have to download a ton of
headers each time you start upas.
However I've found that with both old upas and nupas, there are some
messages that make them choke. Sadly I can't remember what triggered
it.
john
My 16,000 message inbox usually make nupas and upas shit the bed. I've never had specific messages kill it though.
the nupas core should be ok with 16k messages

minooka; mail -f bigmbox
45465 messages, 44899 unread
: q

on the other hand, i can easily believe the imap mailbox type
can't handle this. i haven't used imap mailboxes much, and
when i did, they were very small. if you have specific ideas,
and or observed problems, i'd be glad to incorporate them.

- erik
Matthew Veety
2012-05-20 03:30:11 UTC
Permalink
Post by erik quanstrom
Post by Matthew Veety
Post by John Floren
If you have a large number of messages, Erik's "nupas" is useful; IIRC
it will cache messages locally so you don't have to download a ton of
headers each time you start upas.
However I've found that with both old upas and nupas, there are some
messages that make them choke. Sadly I can't remember what triggered
it.
john
My 16,000 message inbox usually make nupas and upas shit the bed. I've never had specific messages kill it though.
the nupas core should be ok with 16k messages
minooka; mail -f bigmbox
45465 messages, 44899 unread
: q
on the other hand, i can easily believe the imap mailbox type
can't handle this. i haven't used imap mailboxes much, and
when i did, they were very small. if you have specific ideas,
and or observed problems, i'd be glad to incorporate them.
- erik
It's imap. My other mail clients don't have much issue with it (alpine will choke on a slow connection), but my work machine (running 9front) is having definite issues. I'll totally look into this more for you, Erik.

PS. You have >44000 unread messages?!?!?!?!?
--
Veety
erik quanstrom
2012-05-20 12:45:06 UTC
Permalink
PS. You have >44000 unread messages?!?!?!?!? -- Veety
you don't? it's an archive mailbox.

- erik
Matthew Veety
2012-05-20 12:47:29 UTC
Permalink
Post by erik quanstrom
PS. You have >44000 unread messages?!?!?!?!? -- Veety
you don't? it's an archive mailbox.
- erik
Mailboxes are complicated. I only have three: Inbox, Sent, and Trash.

--
Veety
erik quanstrom
2012-05-20 13:02:03 UTC
Permalink
Post by Matthew Veety
Mailboxes are complicated. I only have three: Inbox, Sent, and Trash.
[citation needed].

i didn't say the mailbox was owned by me. our system has
~1.2m messages in ~1k folders spread among ~100 users.

i would say to claim that mailboxes are complicated you'd need to also
claim that file and directories are complicated. with nupas, if you have
two mail boxes and you want to combine them, you simply "cp b/* a;
rm -r b". or in ned,
g/./s a
g/./d

- erik
Kurt H Maier
2012-05-20 13:15:36 UTC
Permalink
Post by erik quanstrom
i didn't say the mailbox was owned by me. our system has
~1.2m messages in ~1k folders spread among ~100 users.
Thanks for letting us know
Bruce Ellis
2012-05-20 13:15:59 UTC
Permalink
out of interest does gmail do something useful when presenting mail
that is labeled?

brucee
Post by erik quanstrom
Post by Matthew Veety
Mailboxes are complicated. I only have three: Inbox, Sent, and Trash.
[citation needed].
i didn't say the mailbox was owned by me.  our system has
~1.2m messages in ~1k folders spread among ~100 users.
i would say to claim that mailboxes are complicated you'd need to also
claim that file and directories are complicated.  with nupas, if you have
two mail boxes and you want to combine them, you simply "cp b/* a;
rm -r b".  or in ned,
       g/./s a
       g/./d
- erik
--
Don't meddle in the mouth -- MVS (0416935147, +1-513-3BRUCEE)
Anthony Sorace
2012-05-15 15:56:03 UTC
Permalink
Post by Matthew Veety
My 16,000 message inbox usually make nupas and upas
shit the bed. I've never had specific messages kill it though.
Note that once updating to nupas, you should then (manually)
convert your mailbox to the new format. I've had mailboxes of
several thousand messages (although I'm not sure I've hit 16k)
which kill (o)upas reliably but nupas handles perfectly well.
The conversion is a one-time process and is pretty safe, but
obviously you should make sure you have a copy of the
mailbox somewhere safe first (like the dump).

Anthony
Akshat Kumar
2012-05-19 17:37:18 UTC
Permalink
Both upas and nupas die instantly on my
mail box. I've gotten tired of filtering through
my mail for (n)upas choking hazards. What
frail software.
Post by John Floren
Is there any way to read gmail from plan9?  Over SSL imap
maybe? I searched for imapfs but came up with nothing.
       x509 sha1=HASH
Run the upas/fs line again, and this time gmail via IMAP will
be mounted in /mail/fs, accessible to the standard mail tools.
-sl
If you have a large number of messages, Erik's "nupas" is useful; IIRC
it will cache messages locally so you don't have to download a ton of
headers each time you start upas.
However I've found that with both old upas and nupas, there are some
messages that make them choke. Sadly I can't remember what triggered
it.
john
Charles Forsyth
2012-05-19 20:31:05 UTC
Permalink
I suspect it will be the imap aspect. I'd run upas/fs on mailboxes with far
too many thousand messages regularly
(you need the RAM for it), for far too many years, without any fatalities.
Anthony Sorace
2012-05-19 20:42:04 UTC
Permalink
Post by Akshat Kumar
Both upas and nupas die instantly on my
mail box. I've gotten tired of filtering through
my mail for (n)upas choking hazards. What
frail software.
I'd be curious what the failures were (and I bet Erik would,
too). (o)upas used to have a hard time with very large
mailboxes, but i've not seen nupas have that issue. In
particular, I've never seen individual messages cause it to
die (although I have seen individual messages be poorly
parsed). I think "frail" is a mischaracterization.
Steve Simon
2012-05-19 20:54:02 UTC
Permalink
Post by Anthony Sorace
I think "frail" is a mischaracterization.
Indeed, upas has been my only mail interface for about 7 years, without a glitch,
though I have recently bought an ipad - but that connects via imap to plan9 too.

-Steve
Charles Forsyth
2012-05-19 21:06:05 UTC
Permalink
Oh my whiskers! Oh my paws! Can't we make this stop? I suppose you'll now
start posting incomplete things with the frail excuse that "you haven't got
a keyboard" and "posted from my ipad".
Post by Steve Simon
though I have recently bought an ipad
Kurt H Maier
2012-05-19 22:33:37 UTC
Permalink
Post by Charles Forsyth
Oh my whiskers! Oh my paws!
As long as we're off-topic, this is a misquote.
Nemo
2012-05-19 23:11:39 UTC
Permalink
let me! let me!

--
iphone kbd. excuse typos :)
Oh my whiskers! Oh my paws! Can't we make this stop? I suppose you'll now start posting incomplete things with the frail excuse that "you haven't got a keyboard" and "posted from my ipad".
though I have recently bought an ipad
Ethan Grammatikidis
2012-05-20 20:50:23 UTC
Permalink
On Sat, 19 May 2012 22:06:05 +0100
Post by Charles Forsyth
Oh my whiskers! Oh my paws! Can't we make this stop? I suppose you'll now
start posting incomplete things with the frail excuse that "you haven't got
a keyboard" and "posted from my ipad".
Post by Steve Simon
though I have recently bought an ipad
You all should chuck your ipads and get palms from about 10-12 years
ago. I loved the onscreen keyboard in my m515. I used it with the
stylus, taptaptaptap, fast entry with practially no mistakes, perhaps
fewer than I make on a keyboard, and this from someone who has trouble
writing due to poor muscle control. With a 160x160 pixel transflective
screen it was usable in bright sunshine too; I used to sit on the Downs
texting my friends. Getting a Zaurus was the worst thing for my social
life. :)

I'm thinking of pairing the palm with my Kindle in a folding case, but
haven't got any real ideas for it other than using the Palm for text
entry and maybe using the original calendar which was nice -- simple
and efficient. I like to write when I'm out in the countryside where
laptops mean neck strain and my Zaurus makes my thumbs ache.

erik quanstrom
2012-05-19 21:39:55 UTC
Permalink
Post by Akshat Kumar
Both upas and nupas die instantly on my
mail box. I've gotten tired of filtering through
my mail for (n)upas choking hazards. What
frail software.
since you have a reliable reproducer, why don't you send
a back trace and or an example of an offending message
so the bug(s) can be worked out?

otherwise, there is 0 chance i'll spend time looking
for random bugs in upas that my users have not seen.

- erik
9 9
2012-05-15 04:08:57 UTC
Permalink
Post by Burton Samograd
Is there any way to read gmail from plan9? Over SSL imap
maybe? I searched for imapfs but came up with nothing.
Any help on sending mails using gmail?
http://www.plan9.bell-labs.com/wiki/plan9/gmail_on_plan9/index.htmlsuggests
that it should be a simple matter, but I get

Mail from 'glenda'
to '***@...net'
failed with error 'Invalid address'.
if I try to post with that modification in my remotemail. My google-fu does
not seem to help :(

vrtra
9 9
2012-05-15 05:37:22 UTC
Permalink
Any help on sending mails using gmail? http://www.plan9.bell-labs.com/wiki/plan9/gmail_on_plan9/index.html suggests that it should be a simple matter, but I get
Mail from 'glenda'
failed with error 'Invalid address'.
if I try to post with that modification in my remotemail. My google-fu does not seem to help :(
My attempts so far:

cpu% cat /sys/lib/tls/smtp
x509 sha1=F392AEB428FE64036FE155ED719E5FF688905A57

cpu% ls | /bin/upas/smtp -d -p -a -u ***@vrtra.net -h
vayavyam.comcast.net tcp!smtp.gmail.com!smtp ***@vrtra.net ***@vrtra.net
sending /net/dns 'smtp.gmail.com mx'
dns: dns: resource does not exist; negrcode 0
mxdial trying /net/tcp!smtp.gmail.com!smtp
220 mx.google.com ESMTP d2sm687657pbw.39
EHLO vayavyam
250-mx.google.com at your service, [24.20.128.212]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
STARTTLS
220 2.0.0 Ready to start TLS
EHLO vayavyam
250-mx.google.com at your service, [24.20.128.212]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH
250 ENHANCEDSTATUSCODES
Tue May 15 05:21:31 PDT 2012 connect to tcp!smtp.gmail.com!smtp:
250-mx.google.com at your service, [24.20.128.212]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH
250 ENHANCEDSTATUSCODES
QUIT
221 2.0.0 closing connection d2sm687657pbw.39

cpu% cat /sys/log/smtp.fail
vayavyam May 15 05:34:10 ping to tcp!smtp.gmail.com!smtp failed:
250-mx.google.com at your service, [24.20.128.212]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH
250 ENHANCEDSTATUSCODES

I tried with same results wih ports 465 and 587 instead of smtp. With
465, it timesout instead.

any hints?

Also, acme does not even seem to invoke the remote mail? (I see no log
messages in /sys/log/smtp* when I get the error messages in acme)
Federico Benavento
2012-05-15 06:41:14 UTC
Permalink
http://www.plan9.bell-labs.com/wiki/plan9/mail_configuration/index.html

factotum doesn't have your key, try
% auth/fgui &
% /bin/upas/smtp -as net!smtp.gmail.com ***@dom

a window will pop up and ask for your pass...

you'll have to add the smtp value for your network in your /lib/ndb/local or hardcode it in /mail/lib/remotemail
follow the wiki, btw you should have copied rewrite.gateway over rewrite

---
Federico Benavento
Post by 9 9
Any help on sending mails using gmail? http://www.plan9.bell-labs.com/wiki/plan9/gmail_on_plan9/index.html suggests that it should be a simple matter, but I get
Mail from 'glenda'
failed with error 'Invalid address'.
if I try to post with that modification in my remotemail. My google-fu does not seem to help :(
cpu% cat /sys/lib/tls/smtp
x509 sha1=F392AEB428FE64036FE155ED719E5FF688905A57
sending /net/dns 'smtp.gmail.com mx'
dns: dns: resource does not exist; negrcode 0
mxdial trying /net/tcp!smtp.gmail.com!smtp
220 mx.google.com ESMTP d2sm687657pbw.39
EHLO vayavyam
250-mx.google.com at your service, [24.20.128.212]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
STARTTLS
220 2.0.0 Ready to start TLS
EHLO vayavyam
250-mx.google.com at your service, [24.20.128.212]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH
250 ENHANCEDSTATUSCODES
250-mx.google.com at your service, [24.20.128.212]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH
250 ENHANCEDSTATUSCODES
QUIT
221 2.0.0 closing connection d2sm687657pbw.39
cpu% cat /sys/log/smtp.fail
250-mx.google.com at your service, [24.20.128.212]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH
250 ENHANCEDSTATUSCODES
I tried with same results wih ports 465 and 587 instead of smtp. With
465, it timesout instead.
any hints?
Also, acme does not even seem to invoke the remote mail? (I see no log
messages in /sys/log/smtp* when I get the error messages in acme)
9 9
2012-05-15 06:46:58 UTC
Permalink
Post by Federico Benavento
http://www.plan9.bell-labs.com/wiki/plan9/mail_configuration/index.html
factotum doesn't have your key, try
% auth/fgui &
a window will pop up and ask for your pass...
you'll have to add the smtp value for your network in your /lib/ndb/local or hardcode it in /mail/lib/remotemail
follow the wiki, btw you should have copied rewrite.gateway over rewrite
Yes, got it all now :) found that I was confusing the instructions
rather badly :)
John Floren
2012-05-15 07:01:53 UTC
Permalink
Secstore really helps here.

john

On Mon, May 14, 2012 at 11:41 PM, Federico Benavento
Post by Federico Benavento
http://www.plan9.bell-labs.com/wiki/plan9/mail_configuration/index.html
factotum doesn't have your key, try
% auth/fgui &
a window will pop up and ask for your pass...
you'll have to add the smtp value for your network in your /lib/ndb/local or hardcode it in /mail/lib/remotemail
follow the wiki, btw you should have copied rewrite.gateway over rewrite
---
Federico Benavento
Post by 9 9
Any help on sending mails using gmail? http://www.plan9.bell-labs.com/wiki/plan9/gmail_on_plan9/index.html suggests that it should be a simple matter, but I get
Mail from 'glenda'
failed with error 'Invalid address'.
if I try to post with that modification in my remotemail. My google-fu does not seem to help :(
cpu% cat /sys/lib/tls/smtp
x509 sha1=F392AEB428FE64036FE155ED719E5FF688905A57
sending /net/dns 'smtp.gmail.com mx'
dns: dns: resource does not exist; negrcode 0
mxdial trying /net/tcp!smtp.gmail.com!smtp
220 mx.google.com ESMTP d2sm687657pbw.39
EHLO vayavyam
250-mx.google.com at your service, [24.20.128.212]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
STARTTLS
220 2.0.0 Ready to start TLS
EHLO vayavyam
250-mx.google.com at your service, [24.20.128.212]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH
250 ENHANCEDSTATUSCODES
250-mx.google.com at your service, [24.20.128.212]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH
250 ENHANCEDSTATUSCODES
QUIT
221 2.0.0 closing connection d2sm687657pbw.39
cpu% cat /sys/log/smtp.fail
250-mx.google.com at your service, [24.20.128.212]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH
250 ENHANCEDSTATUSCODES
I tried with same results wih ports 465 and 587 instead of smtp. With
465, it timesout instead.
any hints?
Also, acme does not even seem to invoke the remote mail? (I see no log
messages in /sys/log/smtp* when I get the error messages in acme)
9***@vrtra.net
2012-05-15 13:50:33 UTC
Permalink
Post by Federico Benavento
http://www.plan9.bell-labs.com/wiki/plan9/mail_configuration/index.html
factotum doesn't have your key, try
% auth/fgui &
a window will pop up and ask for your pass...
you'll have to add the smtp value for your network in your /lib/ndb/local or hardcode it in /mail/lib/remotemail
follow the wiki, btw you should have copied rewrite.gateway over rewrite
I was confusing over /mail/lib/redirect and /mail/lib/rewrite, which got me thoroughly confused.

Thanks for responding :)

vrtra (from acme :) )
9 9
2012-05-15 06:41:56 UTC
Permalink
Any help on sending mails using gmail? http://www.plan9.bell-labs.com/wiki/plan9/gmail_on_plan9/index.html suggests that it should be a simple matter, but I get
Mail from 'glenda'
failed with error 'Invalid address'.
if I try to post with that modification in my remotemail. My google-fu does not seem to help :(
Ehh, sorry, rookie mistake - factotum not running, and redirect not
configured properly :/
s***@9front.org
2012-05-15 16:04:46 UTC
Permalink
In my experience nupas was definitely nicer to use with gmail.
With the old upas, loading the inbox over a slow connection
would sometimes take several minutes. With nupas, it usually
took only a few seconds.

-sl
Continue reading on narkive:
Loading...