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 09:41:43 -0700 Message-ID: Subject: Re: [9fans] using acme/Mail from plan9port in Linux From: Russ Cox To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Topicbox-Message-UUID: efbd2644-ead5-11e9-9d60-3106f5b1d025 > I have no idea if this is related but in the early days with gmail it would > automaticially remove messages when they where downloaded so they disappeared > 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. You could drop the ssh if you trust your local mail installation to be configured properly. Russ #!/usr/local/plan9/bin/rc host=swtch.com # where to relay via ssh if(! ~ $#upasname 1) upasname=rsc+bounces@swtch.com echo $* >>/home/rsc/pipefrom.log . /usr/local/plan9/bin/9.rc if(~ $1 -x){ shift echo $* exit 0 } if(~ $1 -*){ echo 'cannot deal with options' >[1=2] exit 1 } ipaddr=`{/sbin/ifconfig | sed -n 's/.*inet addr:([^ ]*) .*/\1/p'} if(~ $#ipaddr 0){ echo not online >[1=2] exit offline } exec ssh $host sendmail -f $upasname $* rsc+outbox@swtch.com