9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Steve Simon" <steve@quintile.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Trouble with email
Date: Wed, 14 Nov 2007 08:57:57 +0000	[thread overview]
Message-ID: <315609193c5e3dcf27c516b6e2bf96ba@quintile.net> (raw)
In-Reply-To: <a207874d83fe6762d8e2064a3e92118d@quanstro.net>

I hav run faces and upas/fs against imap before though not for some years,
I'm pretty sure it just worked. faces needs to run in the namespace
of upas/fs so it can access the mailbox (I start upasfs before rio in my profile.

these days I collect email from the work imap (MS exchange) server and feed it into
the plan9 email system so it gets appended to my mbox in a traditional manner.

I run this script from my profile

#!/bin/rc

rfork en

upas/fs -f /imaps/wmail.mywork.com/stevesimon
cd /mail/fs/mbox

while(){
	for (f in `{ls | grep '^[0-9]+' | sort -n}){
		upas/send -r inject!$user < $f/raw
		rm $f
	}
	sleep 60
}

and I added this line to my /mail/lib/rewrite

# deliver injected mail locally
inject!(.*)		>>		/mail/box/\1/mbox

as I said, faces and imap should just work and you get to keep your
email on your imap server. I did the above because I wanted to store
my email locally and have it backed up by venti :-)

Also I start faces with -s to show all email rather than just new stuff.

-Steve


  parent reply	other threads:[~2007-11-14  8:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-14  2:38 Pietro Gagliardi
2007-11-14  2:46 ` erik quanstrom
2007-11-14  2:55   ` Pietro Gagliardi
2007-11-14  2:57     ` erik quanstrom
2007-11-14  8:57   ` Steve Simon [this message]
2007-11-14 16:23     ` Anthony Sorace
2007-11-14 20:06       ` Pietro Gagliardi
2007-11-14 20:15         ` Anthony Sorace
2007-11-14 20:46           ` Pietro Gagliardi
2007-11-14 16:56 ` marina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=315609193c5e3dcf27c516b6e2bf96ba@quintile.net \
    --to=steve@quintile.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).