Re: [9fans] Acme Mail editable from address

2021-02-02 Thread pdt
[9f...@hamnavoe.com]
> if (~ $dests *9fans@9fans.net*) {
> sed '1,/^$/s/^(From: 
> .*)/\1<9f...@hamnavoe.com>/' | upas/send $options $dests
> exit
> }

Testing this.  Please ignore!


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-Mc321323a9ec838892c1699f2
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Acme Mail editable from address

2021-02-02 Thread pdt
[9f...@hamnavoe.com]
> if (~ $dests *9fans@9fans.net*) {
> sed '1,/^$/s/^(From: 
> .*)/\1<9f...@hamnavoe.com>/' | upas/send $options $dests
> exit
> }

Testing this.  Please ignore!


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-M8fc8533a2ff1c4146ab70e8f
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Acme Mail editable from address

2021-01-29 Thread sirjofri
I adjusted my pipefrom and added a default headers file, so lets see
if this mail arrives with the correct sender address.

sirjofri


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-M04588c03da9bb1dd498869da
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Acme Mail editable from address

2021-01-29 Thread Richard Miller
> Yes -- acme Mail does set its own From lines,

That's overridden by the From: in /mail/box/$user/headers if there is one.


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-M2a226e6597f51a79af81687b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Acme Mail editable from address

2021-01-28 Thread ori
Quoth pouya+lists.9f...@nohup.io:
> I should take a closer look but I seem to recall some special handling
> of From: lines in acme Mail.

Yes -- acme Mail does set its own From lines,
among other things that annoyed me.

(That's why I rewrote it as Nail: less cleverness,
less code, and thread sorting of messages:
http://shithub.us/git/ori/Nail/HEAD/info.html)


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-M48282505705f74d696f14d48
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Acme Mail editable from address

2021-01-28 Thread Romano
> Quoth pouya+lists.9f...@nohup.io:
>> Upas/marshal already supports that by setting the upasname env
>> variable, or did you mean to have it as a flag or taken from the
>> headers in the input?
> 
> I was thinking that
> 
> echo From: foo; message | upas/marshal
> 
> should be roughly equivalent to:
> 
> upasname=foo
> echo message | upas/marshal
> 
> but it may be better to just use a pipefrom.

Take what I say with a big a grain of salt--I set it up months ago and
haven't considered it again after Ori's re-work in 9front on
mail-related things.  I am not using my own smtp server, but call out
to different ones based on the address I'm using.

For my setup, I had to set both the env var and add the 'From:' line,
IIRC.  I have wrapper scripts that I can click on to send an e-mail
while in Acme, specifying which account I want to send from.  It's
probably more convoluted than it needs to be, but I just wanted to get
mail working on 9front.  So in my wrapper script I setup upasname env
var and also start off the message with a 'From:' line:
upasname=mya...@example.com
echo From: Myname '<'^$upasname^'>' >/tmp/from.$upasname
mailfrom $upasname $*

The last call to mailfrom calls /bin/mailfrom, which contains this:
#!/bin/rc
upasname=$1
shift
if (~ $winid '')
err=`{echo -n Cannot find window id}
if (! test -d /mnt/acme/^$winid)
err=`{echo -n usage: Must be run in Acme}
if (~ $upasname '')
err=`{echo -n usage: Must set upasname}
if (! ~ $err '') {
echo $err
status=$err
exit
}
if (! test -f /tmp/from.$upasname)
echo From: $upasname >/tmp/from.$upasname
cat /tmp/from.$upasname /mnt/acme/$winid/body | upas/marshal -8 $*
rm /tmp/from.$upasname

/mail/lib/fromfiles contains one line, which refers to
/mail/lib/from.me:
from.me

/mail/lib/from.me has lines with tab-separated values between the
e-mail from address I use ($upasname) and the mail account
corresponding to it:
myacct+bi...@example.com  myacco...@smtp1.example.com
mya...@example.com  myotheracco...@smtp2.example.com

In /mail/lib/remotemail, I have cases for the different smtp servers:
#!/bin/rc
shift
sender=$1
shift
addr=$1
shift
fd=`{/bin/upas/aliasmail -f $sender}
switch($fd){
case smtp1.example.com
addr=(-u user1 tcp!^$fd^!ssmtp)
case smtp2.example.com
addr=(-u user2 tcp!^$fd^!ssmtp)
case *.*
;
case *
fd=your.domain
}
exec /bin/upas/smtp -a -t -h $fd $addr $sender $*

Hopefully what I wrote above is more helpful than not.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T98f57a87714768fb-M0906a3667a2e63e9683b92ea
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Acme Mail editable from address

2021-01-28 Thread ori
Quoth pouya+lists.9f...@nohup.io:
> Upas/marshal already supports that by setting the upasname env
> variable, or did you mean to have it as a flag or taken from the
> headers in the input?

I was thinking that

echo From: foo; message | upas/marshal

should be roughly equivalent to:

upasname=foo
echo message | upas/marshal

but it may be better to just use a pipefrom.


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-Mf9ca9343908333d4f0ee2381
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Acme Mail editable from address

2021-01-28 Thread pouya+lists . 9fans
Thank you all for your feedback.

I have combined my answers to a few responses below.

> [pouya+lists.9f...@nohup.io]
>> I was looking for a way to send emails from different addresses with
>> Acme Mail

[9f...@hamnavoe.com]
> That's what /mail/box/$user/pipefrom is for. (Not specific to acme.)
> 

Thank you.  This seems much more elegant than my hack as a general
solution.

[o...@eigenstate.org]
> The ability is useful, but the code to do it would be better
> placed in upas/marshal.

Upas/marshal already supports that by setting the upasname env
variable, or did you mean to have it as a flag or taken from the
headers in the input?

[sirjofri+ml-9f...@sirjofri.de]
> Please double-check this. When I add a From: in acme Mail it's always 
> converted to a destination address.

I should take a closer look but I seem to recall some special handling
of From: lines in acme Mail.


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-M369ccb4d68423425cdbc7b2c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Acme Mail editable from address

2021-01-28 Thread alex
> Please double-check this. When I add a From: in acme Mail it's always 
> converted to a destination address.

Perhaps that's a quirk of acme Mail?  Works for me with Nail and
marshal(1).


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-M8b6112fb6fbd7db80864a385
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Acme Mail editable from address

2021-01-28 Thread sirjofri



28.01.2021 11:09:20 Alex Musolino :

I'd love this functionality in marshal. Would it then also work in 

Nail?

(No crazy filtering in Nail?)

Would a potential marshal patch be applied to 9front? I think it's a 

nice

feature and prevents setting $upasname before starting [MN]ail. Also I
don't think it would change existing behavior too much.


Seems it's already in 9front.  I can just write my own custom From:
header with Nail or marshal(1).  I've never had much reason to change
it so I just put the From: header you see in this message in
/mail/box/alex/headers.


Please double-check this. When I add a From: in acme Mail it's always 
converted to a destination address.


sirjofri

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-Mbb7bec0ac40927d1898f4023
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Acme Mail editable from address

2021-01-28 Thread Alex Musolino
> I'd love this functionality in marshal. Would it then also work in Nail? 
> (No crazy filtering in Nail?)
> 
> Would a potential marshal patch be applied to 9front? I think it's a nice 
> feature and prevents setting $upasname before starting [MN]ail. Also I 
> don't think it would change existing behavior too much.

Seems it's already in 9front.  I can just write my own custom From:
header with Nail or marshal(1).  I've never had much reason to change
it so I just put the From: header you see in this message in
/mail/box/alex/headers.


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-Mdb59c076a394500b1c5aa9bf
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Acme Mail editable from address

2021-01-28 Thread Richard Miller
> I was looking for a way to send emails from different addresses with
> Acme Mail

That's what /mail/box/$user/pipefrom is for. (Not specific to acme.)

For example, my pipefrom includes this:

if (~ $dests *9fans@9fans.net*) {
sed '1,/^$/s/^(From: .*)/\1<9f...@hamnavoe.com>/' 
| upas/send $options $dests
exit
}

If I want to do a one-off send from an alias, I edit /mail/box/$user/headers 
temporarily
to add a From: line.


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-M4fbfe6f68cec56aa2be364b8
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Acme Mail editable from address

2021-01-28 Thread sirjofri

Hey ori,

I'd love this functionality in marshal. Would it then also work in Nail? 
(No crazy filtering in Nail?)


Would a potential marshal patch be applied to 9front? I think it's a nice 
feature and prevents setting $upasname before starting [MN]ail. Also I 
don't think it would change existing behavior too much.


sirjofri

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-M9af929b66a9f4c6dea0270cb
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Acme Mail editable from address

2021-01-27 Thread ori
Quoth pouya+lists.9f...@nohup.io:
> I was looking for a way to send emails from different addresses with
> Acme Mail, as I use + address suffixes to sort incoming mail and
> occasionally need to send emails from the same (e.g.  to this mailing
> list).  Not finding a convenient way, I committed a bad hack to
> include an optional From: line in the header of outgoing messages.
> It's available at
> 
> 9p.io/sources/contrib/pdt/acme/mail
> 
> in case someone might find it useful (or be kind enough to tell me
> this is not the right way to do it).
> 

The ability is useful, but the code to do it would be better
placed in upas/marshal.


--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-M45b4767d3b572a1f2d04a7b9
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] Acme Mail editable from address

2021-01-27 Thread pouya+lists . 9fans
I was looking for a way to send emails from different addresses with
Acme Mail, as I use + address suffixes to sort incoming mail and
occasionally need to send emails from the same (e.g.  to this mailing
list).  Not finding a convenient way, I committed a bad hack to
include an optional From: line in the header of outgoing messages.
It's available at

9p.io/sources/contrib/pdt/acme/mail

in case someone might find it useful (or be kind enough to tell me
this is not the right way to do it).

Pouya



--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T9469a3ec554967c5-M059a7a0d5e206cd7b9c25ef2
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] acme/Mail setup on plan9port

2014-04-08 Thread Ramakrishnan Muthukrishnan
Hi,

I followed Mathieu's instructions in this previous discussion[1].
mailfs reports an imapconnect success. But acme Mail command gives an
error: Mail: cannot mount mail: dial ... /tmp/ns.rkrishnan.:0/mail:
No such file or directory. Indeed, I see only 3 files in the
/tmp/ns.rkrishnan.:0 directory: factotum, plumb, acme. Can someone
anyone help me? I am on Debian GNU/Linux, running plan9port from the
latest hg. I had to add a linker path to make upas to compile. My
changes are here[2].

[1] 
https://groups.google.com/forum/#!topic/comp.os.plan9/-vzwp6GweH0%5B1-25-false%5D
[2] 
https://bitbucket.org/vu3rdd/plan9port/commits/89e77038bdd228c5def5f6fcb2b53a186825d144
-- 
  Ramakrishnan



Re: [9fans] acme/Mail sorted by replies(threaded)

2014-02-11 Thread Alexander Sychev
Hi,

Try to set an environment variable upasname before upas/smtp executing (I
set it before acme), but it should be m...@some.com, not  'alias' 
m...@some.com.
upas/marshal takes a user from upasname too.


On Tue, Feb 11, 2014 at 12:43 PM, uvelichi...@gmail.com wrote:

 Hi, I just now write that in acme [full text editor with undo
 etc.]. I setup stunnel using your recipe, thanks for publishing it. Maybe
 you also know where to point acme/Mail or upas/smtp to insert in 'From:'
 header funny 'nice uvel'm...@some.com instead of $u...@domain.dom? In
 which rc files it can be done or it need be hardcoded? As for threading, I
 localize my changes to acme/Mail in only two functions and try do things in
 the way natural for original code, so you can easy mk install and try to
 see how it looks, don't forget -t flag for threading.
 Best regards.
  Hello,
 
  I just want to say it makes me feel better to see someone is trying
  to improve Mail. I've been using Mail for some time in parallel with
  the gmail web interface. (Basically, I prefer to write an email within
  acme [full text editor with undo etc.], but searching for a conversation
  is just simpler in the web interface. Also, it happens to me from time
  to time, that email is not actually sent from within acme (due to some
  lost connection, stunnel, ...), so I nearly always check the situation
  with the web interface).
 
  I hope I will try your work at some point.
  Note also there was a message about 'amail' quite recently.
  Finally, as far as I can tell, writing a threaded view can be be tricky:
 
 
 http://mandrillapp.com/track/click.php?u=30146375id=35be47b5b7dd4d84a0b4eaa38a5b17b9url=http%3A%2F%2Fwww.jwz.org%2Fdoc%2Fthreading.htmlurl_id=d540878ee7743a86723ed03cbffa32dd6b47ed7b
 
  Thanks
  Ruda
 
  On 10 February 2014 21:33, Uvelichitel uvelichi...@gmail.com wrote:
  Hi. I know at least one implementation exist before
 
 http://mandrillapp.com/track/click.php?u=30146375id=35be47b5b7dd4d84a0b4eaa38a5b17b9url=https%3A%2F%2Fbitbucket.org%2Fmpl%2Facmemail-with-sort-by-threadurl_id=7983b0540dd0bc52b3c6cda1acff61b742eb32a9.
 It based on
  Subject header comparison. So I write another one based on MessageID
  and Inreplayto headers.
 
 http://mandrillapp.com/track/click.php?u=30146375id=35be47b5b7dd4d84a0b4eaa38a5b17b9url=https%3A%2F%2Fbitbucket.org%2Fuvelichitel%2Fmailurl_id=203c219a5344874c12e2fc4a73a2c8513a39edd4
  You can mk install. Flag -t added for threading. Tested on p9p.
  Fill free to try. Feedback appreciated.
  Best regards.
 




-- 
Best regards,
  santucco


Re: [9fans] acme/Mail sorted by replies(threaded)

2014-02-11 Thread erik quanstrom
 Try to set an environment variable upasname before upas/smtp executing (I
 set it before acme), but it should be m...@some.com, not  'alias' 
 m...@some.com.
 upas/marshal takes a user from upasname too.

i'm not sure how this works in p9p, but in plan 9,
/mail/box/$user/headers is prepended to the headers.
you can set From: or any other header field here.
special processing in marshal will weed out redundant
headers, favoring the pre-set ones.

- erik



Re: [9fans] acme/Mail sorted by replies(threaded)

2014-02-11 Thread erik quanstrom
 I just want to say it makes me feel better to see someone is trying
 to improve Mail. I've been using Mail for some time in parallel with
 the gmail web interface. (Basically, I prefer to write an email within
 acme [full text editor with undo etc.], but searching for a conversation
 is just simpler in the web interface. Also, it happens to me from time
 to time, that email is not actually sent from within acme (due to some
 lost connection, stunnel, ...), so I nearly always check the situation
 with the web interface).

not sure if this applies to p9p, but ned (mail with no arguments on plan 9)
is really good for finding stuff.
g/sender/h
is typically enough to find mail from a particular person.
and there are other options that search particular header fields, or the body.
i prefer the unix-style interface to search boxes.

unfortunately the results of a search are not themselves a mailbox.

- erik



Re: [9fans] acme/Mail sorted by replies(threaded)

2014-02-11 Thread uvelichitel
 I just want to say it makes me feel better to see someone is trying
 to improve Mail. I've been using Mail for some time in parallel with
 the gmail web interface. (Basically, I prefer to write an email within
 acme [full text editor with undo etc.], but searching for a conversation
 is just simpler in the web interface. Also, it happens to me from time
 to time, that email is not actually sent from within acme (due to some
 lost connection, stunnel, ...), so I nearly always check the situation
 with the web interface).
 
 not sure if this applies to p9p, but ned (mail with no arguments on plan 9)
 is really good for finding stuff.
   g/sender/h
 is typically enough to find mail from a particular person.
 and there are other options that search particular header fields, or the body.
 i prefer the unix-style interface to search boxes.
 
 unfortunately the results of a search are not themselves a mailbox.
 
 - erik

ned compiles on p9p, also p9p acme/Mail this days get Search command based on 
imap service and producing mbox.

- uvelichitel



[9fans] acme/Mail sorted by replies(threaded)

2014-02-10 Thread Uvelichitel
Hi. I know at least one implementation exist before 
https://bitbucket.org/mpl/acmemail-with-sort-by-thread. It based on 
Subject header comparison. So I write another one based on MessageID 
and Inreplayto headers. 
https://bitbucket.org/uvelichitel/mail
You can mk install. Flag -t added for threading. Tested on p9p.
Fill free to try. Feedback appreciated.
Best regards.



Re: [9fans] Acme/Mail with plan9ports in Mac OS

2013-03-20 Thread Alexander Sychev
Hi,

On Sat, Mar 9, 2013 at 10:10 PM, Rubén Berenguel ru...@mostlymaths.net wrote:
 Hi everyone,

 I'm trying (just for the sake of getting it to work!) to read my (imap) mail
 via acme from plan9ports. I got the mail file server started in my namespace
 (I can 9p ls mail and see my folders in INBOX for my work account, but I
 can't get gmail to work... Probably needs TLS support and if I understood
 correctly, plan9port does not have TLS yet.)


TLS is supported in plan9port's mailfs via stunnel, but it is quite
old version of stunnel - 3.x (I have stunnel 3.26). You should just
specify a flag -t for mailfs. It exellent works with gmail for me.

 Problem is, if I middle-click on Mail in the main tag in Acme, I am greeted
 by:

 Mail: exit 1
 No mail for ruben


I'm sure your 'Mail' is not plan9port's Mail.
Type 'type Mail' and you will find something like 'Mail is /usr/bin/Mail'
You should set a path to plan9port binares before $PATH or start Mail
via '9 Mail'

-- 
Best regards,
  santucco



Re: [9fans] Acme/Mail with plan9ports in Mac OS

2013-03-20 Thread Steve McCoy
On Wednesday, March 20, 2013 4:56:42 AM UTC-4, Alexander Sychev wrote:
 
 I'm sure your 'Mail' is not plan9port's Mail.
 
 Type 'type Mail' and you will find something like 'Mail is /usr/bin/Mail'
 
 You should set a path to plan9port binares before $PATH or start Mail
 
 via '9 Mail'
 

This is the way to go. The filesystem on OSX is case-insensitive. What Rubén 
saw as /usr/bin/Mail and /usr/bin/mail are the same file.
Followup-To:
Distribution:
Organization: University of Bath, Bath, BA2 7AY, UK
Keywords:
Cc:


--
Dennis Davis, BUCS, University of Bath, Bath, BA2 7AY, UK
d.h.da...@bath.ac.uk



Re: [9fans] Acme/Mail with plan9ports in Mac OS

2013-03-20 Thread Steve McCoy
On Wednesday, March 20, 2013 11:42:14 AM UTC-4, Steve McCoy wrote:
…

I don't know who that Dennis guy is, or why his info got added to my email. 
Could this be a side effect of using Google groups to reply?

[ Moderators note:

  Apologies.  The comp.os.plan9 is a moderated Newsgroup and
  articles need to be approved before being posted.  As moderator I
  forgot to remove my details before doing this in this case.  It
  has nothing to do with Google groups.  I must try harder :-( ]



Re: [9fans] Acme/Mail with plan9ports in Mac OS

2013-03-20 Thread Rubén Berenguel
:) mail groups have these fun side effects. Although I controlled my
/bin/Mail spurious program, the problem is I still can't get anything from
my gmail account:

mailfs -t imap.gmail.com
mailfs: imapconnect: Unknown error: 0

Since it is an unknown error, I can't really tell what may be going on.
Factotum is running supposedly with the correct credentials, the password
for it is correct, just in case I installed stunnel, and I have IMAP
activated in my gmail account. Out of ideas, will try again in the future.

Thanks everyone ;)

Ruben

On Wed, Mar 20, 2013 at 6:52 PM, Steve McCoy mcco...@gmail.com wrote:

 On Wednesday, March 20, 2013 11:42:14 AM UTC-4, Steve McCoy wrote:
 …

 I don't know who that Dennis guy is, or why his info got added to my
 email. Could this be a side effect of using Google groups to reply?

 [ Moderators note:

   Apologies.  The comp.os.plan9 is a moderated Newsgroup and
   articles need to be approved before being posted.  As moderator I
   forgot to remove my details before doing this in this case.  It
   has nothing to do with Google groups.  I must try harder :-( ]




[9fans] Acme/Mail with plan9ports in Mac OS

2013-03-10 Thread Rubén Berenguel
Hi again,

I kind of figured what the problem may be last night before falling asleep.
At first I thought it may be because I use zsh as shell, and it has this
funny thing about changing uppercase for lowercase in case of need (which
may shadow Mail as a shell command to execute /usr/bin/mail from within
acme.) Turns out I was almost right. When I checked, I found in fact I had
/usr/bin/Mail as a copy (or symlink, I'm not sure) of /usr/bin/mail. I
moved it (just in case it's useful for some reason I'm not aware of) and
started all servers again (factotum, mailfs, plumber) just in case. Now,
from the command line Mail works (uses nedmail) and gives me a prompt to
interact with my mail box:

253 messages
: b
(prints 10 headers as expected)

If I try to open Mail inside acme it does nothing: opens a +Errors window
with

253 messages
:

and stops at it.

At least this is closer to getting mail working!

Thanks for any suggestion,

Ruben


[9fans] Acme/Mail with plan9ports in Mac OS

2013-03-09 Thread Rubén Berenguel
Hi everyone,

I'm trying (just for the sake of getting it to work!) to read my (imap)
mail via acme from plan9ports. I got the mail file server started in my
namespace (I can 9p ls mail and see my folders in INBOX for my work
account, but I can't get gmail to work... Probably needs TLS support and if
I understood correctly, plan9port does not have TLS yet.)

Problem is, if I middle-click on Mail in the main tag in Acme, I am greeted
by:

Mail: exit 1
No mail for ruben

ruben is my local user name, which is different from my imap login name.
Looks like Mail is executing the mail command instead of using Acme/Mail.
How can I get Acme/Mail to understand where to fetch mail? I thought it
would be automatic, getting it via the mail file server but looks like it
doesn't. Oh, I have the plumber (and factotum) also running, both seem to
be working correctly (at least I can plumb things and they work.)

Any suggestions?

Thanks,

Ruben Berenguel


Re: [9fans] Acme/Mail with plan9ports in Mac OS

2013-03-09 Thread John Floren
This is just a guess, but what does your $PATH look like?

On Sat, Mar 9, 2013 at 11:10 AM, Rubén Berenguel ru...@mostlymaths.net wrote:
 Hi everyone,

 I'm trying (just for the sake of getting it to work!) to read my (imap) mail
 via acme from plan9ports. I got the mail file server started in my namespace
 (I can 9p ls mail and see my folders in INBOX for my work account, but I
 can't get gmail to work... Probably needs TLS support and if I understood
 correctly, plan9port does not have TLS yet.)

 Problem is, if I middle-click on Mail in the main tag in Acme, I am greeted
 by:

 Mail: exit 1
 No mail for ruben

 ruben is my local user name, which is different from my imap login name.
 Looks like Mail is executing the mail command instead of using Acme/Mail.
 How can I get Acme/Mail to understand where to fetch mail? I thought it
 would be automatic, getting it via the mail file server but looks like it
 doesn't. Oh, I have the plumber (and factotum) also running, both seem to be
 working correctly (at least I can plumb things and they work.)

 Any suggestions?

 Thanks,

 Ruben Berenguel



Re: [9fans] acme Mail and several folders; caching

2012-12-11 Thread erik quanstrom
 Finally (but not so importantly), has anyone considered some caching
 (as eg. mutt does)? Loading the 'plan9' folder from gmail takes well
 about a minute.

the upas/fs in contrib quanstro/nupas does do caching.  it was
written become i had a few users with 500mb mailboxes, and since
access was slow (the file server had a couple 100gb ide disks), the
imap mail client timed out and opened the mail box again.  since the
file server didn't have more than ~100 mb of buffers, this would
make the second download slower.  rince, rather, repeat until
the mail host goes boom.

- erik



Re: [9fans] acme Mail and several folders; caching

2012-12-09 Thread Rudolf Sykora
Also, it now seems to me, that having two folders open and sending a
*single* message from acme results in the message being sent twice...
Sorry for the inconvenience, but it wasn't done on purpose.

Ruda



Re: [9fans] acme mail arrival time wrong in faces

2011-04-02 Thread Sasha and Tanya Kapshuk

Hi,

I'm based in Ukraine and the other week we put our clocks one hour 
forward to do to daylight savings.


The time got updated everywhere else but in the faces. When an email 
arrives, the time it arrived is ok in acme mail, but not in faces.


Can anyone please suggest how to correct that.

Thanks.

Sasha Kapshuk.




Re: [9fans] acme mail arrival time wrong in faces

2011-04-02 Thread erik quanstrom
 The time got updated everywhere else but in the faces. When an email 
 arrives, the time it arrived is ok in acme mail, but not in faces.

if $timezone differs for faces, then it will display different
times/dates.  if you change the timezone, did you resart faces?

both acme Mail and faces believe whatever upas/fs tells 'em.

- erik



Re: [9fans] acme mail arrival time wrong in faces

2011-04-02 Thread Sasha and Tanya Kapshuk

On 04/02/2011 05:33 PM, erik quanstrom wrote:

The time got updated everywhere else but in the faces. When an email
arrives, the time it arrived is ok in acme mail, but not in faces.
 

if $timezone differs for faces, then it will display different
times/dates.  if you change the timezone, did you resart faces?

both acme Mail and faces believe whatever upas/fs tells 'em.

- erik

   

thanks for getting back to me, erik.

i'll have to look into what was changed in the system settings as far as 
the timezone goes.
i'll check the settings you suggested checking and let you know if i'm 
still having trouble with it.


sasha.




Re: [9fans] Acme Mail

2010-05-26 Thread erik quanstrom
On Tue May 25 21:56:49 EDT 2010, lyn...@orthanc.ca wrote:
  Nedmail and acme Mail are operating on the same
  mailbox, and nedmail already has a nice language
  built in.  Back when I did that sort of thing, I found
  it easy to just fire up nedmail in a shell window.
 
 But ultimatly this sort of functionality should be in upas/fs itself, 
 driven by commands written to /mail/fs/ctl.

i'd like to disagree, and say this is a ui (ned/Mail/imap4
client) problem, but the current setup is already less
than optimal.

admittedly, minooka is no longer a fast machine, but
here's a fairly generic mailbox in use every day

minooka; time upas/fs -pf /mail/box/xx/mbox
1.12u 0.14s 3.23rupas/fs -pf /mail/box/xx/mbox
minooka; echo q | time upas/nedmail
22875 messages
: 0.40u 2.95s 8.56r  upas/nedmail

that's a pretty long wait for ned to get the skinny on
the 22875th message, which i have an approximately
0.27182% chance of reading.

if you don't care about fast, at just over 1k of
memory/message, ned is using 28mb of memory.  that
seems like a lot when i haven't looked at any messages.

it makes more sense to get the skinny on the next n
messages, akin to page's cache.  but in order to do
that, the next n messages need to be obvious without
poking through the whole pile in order to sort.

which leads us directly to lyndon's point.

- erik



Re: [9fans] Acme Mail

2010-05-26 Thread Lyndon Nerenberg

it makes more sense to get the skinny on the next n
messages, akin to page's cache.  but in order to do
that, the next n messages need to be obvious without
poking through the whole pile in order to sort.


This is exactly why IMAPs Thread and Sort extensions are such a big win.

Note that upas wouldn't necessarily have to re-order /mail/fs/mbox in 
place. Another possibility would be to have a 'sort' file that you would 
write a sort request to, then read to get the list of filenames under 
/mail/fs returned ordered by the sort. E.g. if /mail/fs/mbox contains

messages 1, 3 45, and 92,

open /mail/fs/sort
write recvtime reversed
read
close

might return 92\n45\n3\n1\n.

There's a lot of room for experimentation here.



Re: [9fans] Acme Mail

2010-05-26 Thread erik quanstrom
 This is exactly why IMAPs Thread and Sort extensions are such a big win.

they couldn't do everything wrong.

- erik



[9fans] Acme Mail

2010-05-25 Thread Skip Tavakkolian
is there a way to mark *all* messages in a mail box for later
processing - e.g.  Delmesg.  in nedmail one can do g/pattern/d
unfortunately

Edit ,x/pattern/ --+

marks only one.




Re: [9fans] Acme Mail

2010-05-25 Thread David Leimbach
Edit ,

selects the whole thing doesn't it?  When I want to clear out an entire Acme
window I just do Edit ,d for example.

I don't really use Acme Mail though, so I'm unsure of what the difference is
in marking vs selecting

Daev

On Tue, May 25, 2010 at 12:11 AM, Skip Tavakkolian 9...@9netics.com wrote:

 is there a way to mark *all* messages in a mail box for later
 processing - e.g.  Delmesg.  in nedmail one can do g/pattern/d
 unfortunately

 Edit ,x/pattern/ --+

 marks only one.





Re: [9fans] Acme Mail

2010-05-25 Thread erik quanstrom
 is there a way to mark *all* messages in a mail box for later
 processing - e.g.  Delmesg.  in nedmail one can do g/pattern/d
 unfortunately
 
 Edit ,x/pattern/ --+
 
 marks only one.

what about:

Edit s:^[0-9].*$:(deleted-):g

nupas Mail has a nonstandard Save in the main window.
iirc, adding commands to the main screen did take a bit
of code.  so running ned might be easier for some tasks.

- erik




Re: [9fans] Acme Mail

2010-05-25 Thread Skip Tavakkolian
sorry, i meant all messages meeting a pattern in the subject line. combining
your suggestion with pattern marking works correctly:

Edit ,x/pattern/ --+ s/^[0-9]+/(deleted)-/

 is there a way to mark *all* messages in a mail box for later
 processing - e.g.  Delmesg.  in nedmail one can do g/pattern/d
 unfortunately
 
 Edit ,x/pattern/ --+
 
 marks only one.
 
 what about:
 
 Edit s:^[0-9].*$:(deleted-):g
 
 nupas Mail has a nonstandard Save in the main window.
 iirc, adding commands to the main screen did take a bit
 of code.  so running ned might be easier for some tasks.
 
 - erik




Re: [9fans] Acme Mail

2010-05-25 Thread Skip Tavakkolian
i was wrong; it doesn't work. Put doesn't actually delete the messages. i think
this will require mods to /acme/mail/src/mail.c

 sorry, i meant all messages meeting a pattern in the subject line. combining
 your suggestion with pattern marking works correctly:
 
 Edit ,x/pattern/ --+ s/^[0-9]+/(deleted)-/
 
 is there a way to mark *all* messages in a mail box for later
 processing - e.g.  Delmesg.  in nedmail one can do g/pattern/d
 unfortunately
 
 Edit ,x/pattern/ --+
 
 marks only one.
 
 what about:
 
 Edit s:^[0-9].*$:(deleted-):g
 
 nupas Mail has a nonstandard Save in the main window.
 iirc, adding commands to the main screen did take a bit
 of code.  so running ned might be easier for some tasks.
 
 - erik




Re: [9fans] Acme Mail

2010-05-25 Thread ron minnich
On Tue, May 25, 2010 at 8:42 AM, Skip Tavakkolian 9...@9netics.com wrote:
 i was wrong; it doesn't work. Put doesn't actually delete the messages. i 
 think
 this will require mods to /acme/mail/src/mail.c

we had a back and forth a long time ago about this. I wanted a way to
match a subject and delete all messages on that subject. There was no
apparent way.

the conclusion was that we needed a way to say middle button action
in a command line. Russ kindly offered to take a patch if someone
would write it.

So we could say something like
x/viagra/whatever
where whatever corresponded to 'middle-button-Del' or some such.

You can't just change what's in the window AFAIK. That's a reflection
of state, not the state itself.

ron



Re: [9fans] Acme Mail

2010-05-25 Thread erik quanstrom
 You can't just change what's in the window AFAIK. That's a reflection
 of state, not the state itself.

Mail's inspection of the selection confused me
try typing (deleted- in front of a message. now
try deleting it by selecting that line and b2ing
Delmesg.

Nothing happens.

i can't find the discussion, so i hope this isn't
a repeat of wild speculation.

it would be cool if acme had an edit command
that would allow the executation of an
acme command on the given selection.  suppose
!| executed acme commands rather than plan
9 commands.  then you could have

Edit X:/mail/fs: ,x:^.*$: g:u.example.com: !Delmsg

- erik

p.s. don't try substituing | for ! in the above command:
qunlock called qith qlock not held , from 0x1f350.

/sys/src/cmd/acme/wind.c:165
 160 */
 161f = w-body.file;
 162for(i=f-ntext-1; i=0; i--){
 163w = f-text[i]-w;
 164w-owner = 0;
165qunlock(w);

☺



Re: [9fans] Acme Mail

2010-05-25 Thread Mathieu Lonjaret
I had only replied to the OP because I didn't think other people could
be interested, and I had announced it a while ago already, but here goes
again, just in case.

I patched p9p acme Mail to have a sort by conversation/subject
(http://codereview.appspot.com/264043/show), so if what you want is being
able to delete a bunch of messages with the same subject it's very easy
to do in one mouse swipe once they're all grouped together by this sort.

Of course that does not really help with spam because they won't have
the same subject, only similar ones all matching viagra, as in your
example.

I've been using it the whole time since then, no issue so far.

Hope that helps,
Mathieu
---BeginMessage---
On Tue, May 25, 2010 at 8:42 AM, Skip Tavakkolian 9...@9netics.com wrote:
 i was wrong; it doesn't work. Put doesn't actually delete the messages. i 
 think
 this will require mods to /acme/mail/src/mail.c

we had a back and forth a long time ago about this. I wanted a way to
match a subject and delete all messages on that subject. There was no
apparent way.

the conclusion was that we needed a way to say middle button action
in a command line. Russ kindly offered to take a patch if someone
would write it.

So we could say something like
x/viagra/whatever
where whatever corresponded to 'middle-button-Del' or some such.

You can't just change what's in the window AFAIK. That's a reflection
of state, not the state itself.

ron
---End Message---


Re: [9fans] Acme Mail

2010-05-25 Thread Skip Tavakkolian
thanks. that will go a long way toward what i need. hopefully the patch
is easy to apply to the latest Plan9 sources.

 I had only replied to the OP because I didn't think other people could
 be interested, and I had announced it a while ago already, but here goes
 again, just in case.
 
 I patched p9p acme Mail to have a sort by conversation/subject
 (http://codereview.appspot.com/264043/show), so if what you want is being
 able to delete a bunch of messages with the same subject it's very easy
 to do in one mouse swipe once they're all grouped together by this sort.
 
 Of course that does not really help with spam because they won't have
 the same subject, only similar ones all matching viagra, as in your
 example.
 
 I've been using it the whole time since then, no issue so far.
 
 Hope that helps,
 Mathieu




Re: [9fans] Acme Mail

2010-05-25 Thread Akshat Kumar
 thanks. that will go a long way toward what i need. hopefully the patch
 is easy to apply to the latest Plan9 sources.

If you make any modifications to
Mathieu's patch for p9p, in order to
apply it to Plan 9, then could you
please post the new patch sources
somewhere?  I could definitely make use
of such work.


Best,
ak