Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[9fans] Reading gmail

320 views
Skip to first unread message

Burton Samograd

unread,
May 14, 2012, 10:51:08 PM5/14/12
to
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

unread,
May 14, 2012, 11:08:07 PM5/14/12
to
> 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/user...@gmail.com

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

upas/fs: opening /imaps/imap.gmail.com/user...@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

Matthew Veety

unread,
May 14, 2012, 11:57:38 PM5/14/12
to

On May 14, 2012, at 11:51 PM, John Floren wrote:
>
> 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

John Floren

unread,
May 14, 2012, 11:51:41 PM5/14/12
to

9 9

unread,
May 15, 2012, 12:08:57 AM5/15/12
to
> 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/user...@gmail.com

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'
to '9@...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

unread,
May 15, 2012, 1:37:22 AM5/15/12
to
>
> 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'
> to '9@...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 :(


My attempts so far:

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

cpu% ls | /bin/upas/smtp -d -p -a -u 9...@vrtra.net -h
vayavyam.comcast.net tcp!smtp.gmail.com!smtp 9...@vrtra.net 9...@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)

9 9

unread,
May 15, 2012, 2:46:58 AM5/15/12
to
> 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 dest@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

Yes, got it all now :) found that I was confusing the instructions
rather badly :)

Federico Benavento

unread,
May 15, 2012, 2:41:14 AM5/15/12
to
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 dest@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
bena...@gmail.com

9 9

unread,
May 15, 2012, 2:41:56 AM5/15/12
to
>> 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'
>> to '9@...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 :(

Ehh, sorry, rookie mistake - factotum not running, and redirect not
configured properly :/

John Floren

unread,
May 15, 2012, 3:01:53 AM5/15/12
to
Secstore really helps here.

john

9...@vrtra.net

unread,
May 15, 2012, 9:50:33 AM5/15/12
to
> 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 dest@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

I was confusing over /mail/lib/redirect and /mail/lib/rewrite, which got me thoroughly confused.

Thanks for responding :)

vrtra (from acme :) )

erik quanstrom

unread,
May 15, 2012, 4:43:54 AM5/15/12
to
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

Anthony Sorace

unread,
May 15, 2012, 11:56:03 AM5/15/12
to
On May 14, 2012, at 23:57 , Matthew Veety wrote:

> 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

signature.asc

s...@9front.org

unread,
May 15, 2012, 12:04:46 PM5/15/12
to
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

Akshat Kumar

unread,
May 19, 2012, 1:37:18 PM5/19/12
to
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.

Charles Forsyth

unread,
May 19, 2012, 4:31:05 PM5/19/12
to
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

unread,
May 19, 2012, 4:42:04 PM5/19/12
to
On May 19, 2012, at 13:37 , Akshat Kumar wrote:

> 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.

signature.asc

Steve Simon

unread,
May 19, 2012, 4:54:02 PM5/19/12
to
> 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

unread,
May 19, 2012, 5:06:05 PM5/19/12
to
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".

erik quanstrom

unread,
May 19, 2012, 5:39:55 PM5/19/12
to
On Sat May 19 13:38:53 EDT 2012, aku...@mail.nanosouffle.net wrote:
> 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

Kurt H Maier

unread,
May 19, 2012, 6:33:37 PM5/19/12
to
On Sat, May 19, 2012 at 10:06:05PM +0100, Charles Forsyth wrote:
> Oh my whiskers! Oh my paws!

As long as we're off-topic, this is a misquote.

Nemo

unread,
May 19, 2012, 7:11:39 PM5/19/12
to
let me! let me!

--
iphone kbd. excuse typos :)

Matthew Veety

unread,
May 19, 2012, 11:30:11 PM5/19/12
to
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

Matthew Veety

unread,
May 20, 2012, 8:47:29 AM5/20/12
to

On May 20, 2012, at 8:45 AM, erik quanstrom wrote:

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

unread,
May 20, 2012, 8:45:06 AM5/20/12
to
> PS. You have >44000 unread messages?!?!?!?!? -- Veety

erik quanstrom

unread,
May 20, 2012, 9:02:03 AM5/20/12
to
> 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

unread,
May 20, 2012, 9:15:36 AM5/20/12
to
On Sun, May 20, 2012 at 09:02:03AM -0400, erik quanstrom wrote:
> 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

unread,
May 20, 2012, 9:15:59 AM5/20/12
to
out of interest does gmail do something useful when presenting mail
that is labeled?

brucee
--
Don't meddle in the mouth -- MVS (0416935147, +1-513-3BRUCEE)

Ethan Grammatikidis

unread,
May 20, 2012, 4:50:23 PM5/20/12
to
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.

0 new messages