Subject: [sup-talk] some user questions

From: [email-masked] (Eyal Oren)
Date: Tue, 9 Oct 2007 16:54:51 +0200

Hi

First, thanks for sup! It's very nice. I have some questions/remarks. For 
simple things, point me to files and linenumbers: I can submit patches.

- I have the feeling that several keybindings are overloaded between 
   different screens, but in a confusing manner. For example, when 
inbox-mode, 'S' means mark-as-spam, while in contact-list-mode it means 
search-for-messages. That is confusing, because S for search makes sense in 
both contexts. I've already marked several emails as spam inadvertently 
because of this. There might be more of these, I'm not sure.

- When are changes applied? Some changes are applied instantly (when 
   marking an email as spam, it will instantly disappear from the inbox) 
while others need a manual refresh (when unmarking mail as spam, it will 
instantly disappear from the spam view but when changing back to the inbox, 
a refresh is needed before the email is shown).  Would it be very expensive 
to update a buffer automatically when it is being switched to?  Also, 
personally, I'd rename the help text 'Discard threads and reload' into 
'refresh view'. 

- Is it possible to index emails on parts of the email address, splitting 
   on '.' and '@'? I would like to search for emails from 'john', not from 
'john.doe at hotmail.com'.

- Is it possible to undelete an email? I hit 'd', realise my mistake, 
   search for the email which I can still find (I guess because the changes 
haven't yet been written into ferret) and then wonder if there's still 
something I can do to prevent me from losing this email?

- Is it possible to change the ordering of threads? I'm used to sorting my 
   emails oldest-first.

- I'm trying to use sup together with putmail [1], a simple lightweight MTA 
   (similar to bsmtp). putmail can mimic sendmail. I can configure sup to 
use putmail, but the emails generated by sup are not understood by putmail 
(see one example attached). Can you maybe see whether the error is on sup's 
side or on putmail's?

-eyal

[1] http://putmail.sourceforge.net/
-------------- next part --------------
((lp1
S'/usr/local/bin/putmail_enqueue.py'
p2
aS'Subject: test\nFrom: Eyal Oren <eyal.oren at deri.org>\nTo: eyal.oren at gmail.com\nDate: Tue, 09 Oct 2007 16:49:14 +0200\nMessage-Id: <1191941333-sup-4666 at timmy>\nUser-Agent: Sup/0.1\nContent-Type: text/plain; charset=UTF-8\n\ntest email body\n\n-- \n -eyal\n'
p3
t.

---

From: [email-masked] (Eyal Oren)
Date: Wed, 10 Oct 2007 09:18:08 +0200

Hi! I found some answers to my own questions:

> 'john.doe at hotmail.com'.
Addresses are not split, but emails are indexed on aliases, so you can search 
for from:bob.

> something I can do to prevent me from losing this email?
After deleting a thread, I can hit '@' to revert the changes before they are 
saved into ferret.
 
> - Is it possible to change the ordering of threads? I'm used to sorting my 
Haven't found this yet, but am getting used to it.

> (see one example attached). Can you maybe see whether the error is on sup's 
I figured it out: putmail also has the -t option (like sendmail) to extract 
senders from the email, but ignores options such as -ti or -oem. So the sendmail 
line in config.yaml should be one of these:
  - ":sendmail: /usr/local/bin/putmail.py -t" (direct sending)
  - ":sendmail: /usr/local/bin/putmail_enqueue.py -t" (queue for later)

Wanted to add this to the wiki, but got: "cant write 
html/mywikidb/keep/H/HomePage.kp: Permission denied at 
/var/www/gforge-projects/sup/wiki/wiki.pl line 2856. For help, please send mail 
to the webmaster (tom at infoether.com), giving this error message and the time and 
date of the error."

 -eyal

---

From: [email-masked] (William Morgan)
Date: Mon, 29 Oct 2007 08:58:12 -0700

Excerpts from Eyal Oren's message of Tue Oct 09 07:54:51 -0700 2007:
> inbox-mode, 'S' means mark-as-spam, while in contact-list-mode it
> means search-for-messages.

The current keybindings are, by and large, whatever occurred to me in
the middle of the night when I was working on it. The can definitely be
refined. Specific change requests or patches are accepted.

I'd also be open to having the keybindings configurable, but that's
pretty far down on my priority queue at the moment.

> while others need a manual refresh (when unmarking mail as spam, it
> will instantly disappear from the spam view but when changing back to
> the inbox, a refresh is needed before the email is shown).

Changes are applied to the *index* only when $ is pressed, or when the
buffer closes. I try and apply all changes to the *buffer* immediately,
but you're right that some changes are not done that way right now. You
can consider those bugs for the time being.

> Also, personally, I'd rename the help text 'Discard threads and
> reload' into 'refresh view'. 

Done.

> - Is it possible to index emails on parts of the email address,
> splitting on '.' and '@'? I would like to search for emails from
> 'john', not from 'john.doe at hotmail.com'.

Not convinced about '.', but maybe '@'. Would people find this useful?

> - Is it possible to change the ordering of threads? I'm used to
> sorting my emails oldest-first.

No. :)

-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (David Stubbs)
Date: Mon, 29 Oct 2007 17:09:05 +0000

> Not convinced about '.', but maybe '@'. Would people find this useful?

I just use the wildcard, so I can't see the advantage. For example:

 query: from:jbrown*

Congratulations on your recent marriage William!

David.