Re: How do you survive without notmuch?

2016-04-11 Thread Derek Martin
On Mon, Apr 11, 2016 at 10:13:06PM +1000, Erik Christiansen wrote:
> In the latter half of several decades of software development, I took to
> heart "Unix _is_ the IDE". Similarly, there's no need for mutt to do
> more than be a good MUA, as perfectly good search capability pre-exists.

But you must see the flaw with this approach:  It requires every user
to make efforts to integrate their own solution for searching for
their mail--a task that seems (to me) very obviously part of what
any typical user would want to do, as part of handling their mail.  As
such, doesn't it make sense that the MUA have good searching
capabilities built in?  Doing so saves a MASSIVE amount of work, in
man-hours.

This is where the Unix Philosophy falls down, IMO.  And don't get me
wrong--I'm a fan.  But no solution is the right solution for every
problem.

-- 
Derek D. Martinhttp://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.



pgpPyRka07mij.pgp
Description: PGP signature


associating sig and other properties with "From:" drop-down in mutt

2016-04-11 Thread tech-lists

Hello list,

In my .muttrc I have a section that begins like this:
###
macro compose v "^Uidentity_" "Select from"
###

after this I have various addresses:

alias identity_a0 my-preferred-email-address 
alias identity_a1 my-work-email-address 

This setup works well, allowing me to set the From: from a drop-down
before I send.

What I'd like is, for each From: also associate a sig and other
characteristics, like whether by default the email should be
gpg-signed, what other headers it wants. Is there an elegant way to do
this? I don't want "being able to select the other address" to change,
hopefully that can remain as-is. What I want is the *consequences of
that selection* to change, so that on selection it's not just the
"From:" that changes, but the other stuff as well.

Many thanks,
--
J.



Re: How do you survive without notmuch?

2016-04-11 Thread Erik Christiansen
On 05.04.16 12:47, Xu Wang wrote:
> I am so used to using notmuch integrated into mutt (via mutt-kz), that
> I would like to be able to understand how someone does *not* use
> notmuch. How do you search for a certain message? Is it simply a
> matter of the following?

Deleting around 90% of list traffic makes searching faster.

Organising what is retained, according to subject is an even greater
accelerator:

$ ls -1 mail/* | wc -l
1211

On the rare occasions I'm not sure where to look, grep always quickly
delivers the goods for me. It's generally not necessary to search all
1211 mailboxes, e.g.

$ grep foo mail/mutt_* > /tmp/matches

Opening /tmp/matches with vim, I can then use gf on likely candidates.

In more than a decade of this efficient practice, I've had not much
reason to seek any alternative. Just once it seemed to fail, until I
broadened a limited search, as above, to scan all files. I had archived
the post under a more relevant topic.

A simple but useful aid has been the shell function:

mls () 
{ 
ls -xF ~/mail/*$1*
}

Now any part of a subject name finds all related collections:

$ mls security
/home/erik/mail/cnc_linux_security/home/erik/mail/linux_security
/home/erik/mail/linux_security_hints  /home/erik/mail/postfix_security
/home/erik/mail/ubuntu_security

In the latter half of several decades of software development, I took to
heart "Unix _is_ the IDE". Similarly, there's no need for mutt to do
more than be a good MUA, as perfectly good search capability pre-exists.
(For slightly faster searches, fgrep, and for modern regex, egrep.)

Erik


Re: toggle-quoted

2016-04-11 Thread Andreas Mueller
  that's it  :-)
  thanks a lot and have a nice week

  Andreas

On 10.04.16 12:31, Bernard Massot wrote:
> Le 30/03/2016 à 14:15, Andreas Mueller a écrit :
> > How can I default fold the quoted Mail in the pager without
> > pressing T ?
> You can add the following line to your configuration file:
> message-hook ~A 'push '
> -- 
> Bernard Massot

-- 
Andreas Müller - Raum: 35/114b - Tel: 2875


Re: toggle-quoted

2016-04-11 Thread Andreas Mueller
 unfortunately not:
 if I go to my send-dialog,
 I get parts of the hook-macro in my "To:" field

 Andreas

On 11.04.16 08:42, Andreas Mueller wrote:
>   that's it  :-)
>   thanks a lot and have a nice week
> 
>   Andreas
> 
> On 10.04.16 12:31, Bernard Massot wrote:
> > Le 30/03/2016 à 14:15, Andreas Mueller a écrit :
> > > How can I default fold the quoted Mail in the pager without
> > > pressing T ?
> > You can add the following line to your configuration file:
> > message-hook ~A 'push '
> > -- 
> > Bernard Massot
> 
> -- 
> Andreas Müller - Raum: 35/114b - Tel: 2875

-- 
Andreas Müller - Raum: 35/114b - Tel: 2875