From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <138575261003230627kb81c42q7710df1af4283919@mail.gmail.com> Date: Tue, 23 Mar 2010 18:02:26 +0100 Message-ID: <138575261003231002j6803b4cdh496eea7d61a5247f@mail.gmail.com> From: hugo rivera To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] using acme/Mail from plan9port in Linux Topicbox-Message-UUID: efc1ba92-ead5-11e9-9d60-3106f5b1d025 Thanks a lot! 2010/3/23 Russ Cox : >> I have no idea if this is related but in the early days with gmail it wo= uld >> automaticially remove messages when they where downloaded so they disapp= eared >> as fast as you tried to read them. >> >> Perhaps your imap server is doing somthing similar? > > That was with POP3, not with IMAP. > > As to the original question, when I run acme Mail on > plan9port I don't bother to set up the upas mail queues, > which frankly I don't trust on top of a Unix file system. > Instead you can create a $HOME/bin/pipefrom that > sends the mail via the system mailer, maybe even > on another machine. > > This is my current version, which is a bit more complex > than it needs to be, but you get the idea. =C2=A0You could > drop the ssh if you trust your local mail installation > to be configured properly. > > Russ > > #!/usr/local/plan9/bin/rc > > host=3Dswtch.com =C2=A0# where to relay via ssh > > if(! ~ $#upasname 1) > =C2=A0 =C2=A0 =C2=A0 =C2=A0upasname=3Drsc+bounces@swtch.com > > echo $* >>/home/rsc/pipefrom.log > . /usr/local/plan9/bin/9.rc > > if(~ $1 -x){ > =C2=A0 =C2=A0 =C2=A0 =C2=A0shift > =C2=A0 =C2=A0 =C2=A0 =C2=A0echo $* > =C2=A0 =C2=A0 =C2=A0 =C2=A0exit 0 > } > if(~ $1 -*){ > =C2=A0 =C2=A0 =C2=A0 =C2=A0echo 'cannot deal with options' >[1=3D2] > =C2=A0 =C2=A0 =C2=A0 =C2=A0exit 1 > } > > ipaddr=3D`{/sbin/ifconfig | sed -n 's/.*inet addr:([^ ]*) .*/\1/p'} > if(~ $#ipaddr 0){ > =C2=A0 =C2=A0 =C2=A0 =C2=A0echo not online >[1=3D2] > =C2=A0 =C2=A0 =C2=A0 =C2=A0exit offline > } > > exec ssh $host sendmail -f $upasname $* rsc+outbox@swtch.com > > --=20 Hugo