Re: searching for emails by date using mutt

2022-08-18 Thread Derek Schrock
On Thu, Aug 18, 2022 at 10:33:13PM EDT, Ranjan Maitra wrote:
> Hi,
> 
> Is there a way, in mutt, to search for emails sent on a specific date? Say 
> emails sent on September 22 2010?
> 
> Many thanks,
> Ranjan
> 

l to limit the box while index

Start reading here http://www.mutt.org/doc/manual/#patterns-modifier

You'll get to 3.4 for date info and examples.


searching for emails by date using mutt

2022-08-18 Thread Ranjan Maitra
Hi,

Is there a way, in mutt, to search for emails sent on a specific date? Say 
emails sent on September 22 2010?

Many thanks,
Ranjan



Re: searching across folders using mutt

2022-05-30 Thread steve

Le 30-05-2022, à 14:49:53 -0500, Ranjan Maitra a écrit :


Can mairix and notmuch also search within attachments?


I don't know but after a quick look, it seems that those tools only index
text files. 


Re: searching across folders using mutt

2022-05-30 Thread Ranjan Maitra
On Mon May30'22 07:25:28AM, steve wrote:
> From: steve 
> Date: Mon, 30 May 2022 07:25:28 +0200
> To: mutt-users@mutt.org
> Subject: Re: searching across folders using mutt
>
> Hi Greg,
>
> Le dimanche 29 mai 2022 à 23:31, Greg Marks a écrit :
>
> >
> > Is there a solution for searching across folders for those of us whose
> > e-mail is stored in mbox rather than maildir format?
>
> I guess mairix can do that.
>
> See https://gitlab.com/muttmua/mutt/-/wikis/UseCases/SearchingMail

Hi,

Can mairix and notmuch also search within attachments?

Many thanks and best wishes,
Ranjan


Re: searching across folders using mutt

2022-05-30 Thread Ofer Inbar
On Sun, May 29, 2022 at 11:31:51PM -0500,
Greg Marks  wrote:
> According to the man page for notmuch:
> 
>Mail storage that uses mbox format, (where one mbox file
>contains many messages), will not work with notmuch.  If
>that's how your mail is currently stored, it is recommended
>you first convert it to maildir format with a utility such 
>as mb2md before running notmuch setup .
> 
> Is there a solution for searching across folders for those of us whose
> e-mail is stored in mbox rather than maildir format?

You could just use the filesystem and simple shell commands.
It's not indexed, but grep is pretty fast.

For example, which "folders" (aka files, in mbox format) contain
messages with the subject line "some subject"?

$ fgrep -l 'Subject: some subject' *

Use grep -E or egrep for full regex search.
Use "find . -type f | xargs grep ..." to search files in a directory tree.

You may get some false positives when searching for a header if the
body of an email contains a header line that matches, but overall this
works well - it's what I do on the host where I have mbox format email.
  -- Cos


Re: searching across folders using mutt

2022-05-29 Thread Angel M Alganza

Hello,

On Sun, May 29, 2022 at 11:31:51PM -0500, Greg Marks wrote:


Is there a solution for searching across folders for those of us whose
e-mail is stored in mbox rather than maildir format?


Mairix does: https://github.com/rc0/mairix

Cheers,
Ángel


Re: searching across folders using mutt

2022-05-29 Thread steve

Hi Greg,

Le dimanche 29 mai 2022 à 23:31, Greg Marks a écrit :



Is there a solution for searching across folders for those of us whose
e-mail is stored in mbox rather than maildir format?


I guess mairix can do that.

See https://gitlab.com/muttmua/mutt/-/wikis/UseCases/SearchingMail


Re: searching across folders using mutt

2022-05-29 Thread Ranjan Maitra
On Sun May29'22 11:31:51PM, Greg Marks wrote:
> From: Greg Marks 
> Date: Sun, 29 May 2022 23:31:51 -0500
> To: mutt-users@mutt.org
> Subject: Re: searching across folders using mutt
>
> > Now, I know how to search this (quite readily) in a folder. But when I do 
> > not know the folder it is stored in, so far, it has been simply about 
> > guessing the right folders.
> >
> > > notmuch will do exactly that.
> > >
> > > see https://notmuchmail.org/mutttips/
>
> According to the man page for notmuch:
>
>Mail storage that uses mbox format, (where one mbox file
>contains many messages), will not work with notmuch.  If
>that's how your mail is currently stored, it is recommended
>you first convert it to maildir format with a utility such
>as mb2md before running notmuch setup .

Thanks, I use maildir for a while now, so I am good with notmuch. Still 
wondering about notmuch vs. recoll, though.

> Is there a solution for searching across folders for those of us whose
> e-mail is stored in mbox rather than maildir format?

I seem to have read somewhere today that recoll works with mbox, but I am not 
sure if I read this correctly.

Many thanks again!
Ranjan





Re: searching across folders using mutt

2022-05-29 Thread Greg Marks
> Now, I know how to search this (quite readily) in a folder. But when I do not 
> know the folder it is stored in, so far, it has been simply about guessing 
> the right folders. 
> 
> > notmuch will do exactly that.
> > 
> > see https://notmuchmail.org/mutttips/

According to the man page for notmuch:

   Mail storage that uses mbox format, (where one mbox file
   contains many messages), will not work with notmuch.  If
   that's how your mail is currently stored, it is recommended
   you first convert it to maildir format with a utility such 
   as mb2md before running notmuch setup .

Is there a solution for searching across folders for those of us whose
e-mail is stored in mbox rather than maildir format?

Best regards,
Greg Marks


signature.asc
Description: PGP signature


Re: searching across folders using mutt

2022-05-29 Thread Ranjan Maitra
On Sun May29'22 08:14:20PM, steve wrote:
> From: steve 
> Date: Sun, 29 May 2022 20:14:20 +0200
> To: mutt-users@mutt.org
> Subject: Re: searching across folders using mutt
>
> Hi Ranjan,
>
> notmuch will do exactly that.
>
> see https://notmuchmail.org/mutttips/
>
> best,
>
> steve

Steve,

Indeed, thanks very much! I have now found notmuch and also found recoll (that 
I had previously never heard of).

Here is a page with some help on how to  use recoll:

https://www.lesbonscomptes.com/recoll/faqsandhowtos/MuttAndRecoll.html

The python script is missing, but I was able to find it online by searching for 
it on DuckDuckGo.

For notmuch, there is some advice here: http://log.or.cz/?p=228 I found this 
from this other website on mutt tricks from a Rice University history 
professor: https://www.owlnet.rice.edu/~wcm1/mutt-tips.html

Anyway, I was wondering, what are the pros and cons of recoll vis-a-vis 
notmuch? Both appear to do similar things.

Many thanks again, and best wishes,
Ranjan







> Le 29-05-2022, à 10:40:27 -0500, Ranjan Maitra a écrit :
>
> > Dear friends,
> >
> > I have now been using mutt for about 20 months or so, having graduated from 
> > sylpheed, and life is generally well, but for one issue, and that is 
> > searching across folders.
> >
> > So, suppose I know that I have an email in some folder with "stuff" in the 
> > subject line. Now, I know how to search this (quite readily) in a folder. 
> > But when I do not know the folder it is stored in, so far, it has been 
> > simply about guessing the right folders. Sometimes I get lucky, and 
> > sometimes I put it away, and occasionally, I do get lucky on a 
> > timed-release format, but I was wondering if I can get rid of this reliance 
> > on luck, as both my years and size of folders go up.
> >
> > Is there an easy way to do this in mutt? I would like to stick to simple 
> > tools (and stay in mutt) if possible.
> >
> > My email is pulled in by fetchmail from a POP3 server (gmx) and processed 
> > by procmail into folders. I do not use IMAP. I thought I would put this in 
> > in case it was relevant.
> >
> > Many thanks again for your suggestions, and best wishes,
> > Ranjan
> >
> >


Re: searching across folders using mutt

2022-05-29 Thread steve

Hi Ranjan,

notmuch will do exactly that.

see https://notmuchmail.org/mutttips/

best,

steve

Le 29-05-2022, à 10:40:27 -0500, Ranjan Maitra a écrit :


Dear friends,

I have now been using mutt for about 20 months or so, having graduated from 
sylpheed, and life is generally well, but for one issue, and that is searching 
across folders.

So, suppose I know that I have an email in some folder with "stuff" in the 
subject line. Now, I know how to search this (quite readily) in a folder. But when I do 
not know the folder it is stored in, so far, it has been simply about guessing the right 
folders. Sometimes I get lucky, and sometimes I put it away, and occasionally, I do get 
lucky on a timed-release format, but I was wondering if I can get rid of this reliance on 
luck, as both my years and size of folders go up.

Is there an easy way to do this in mutt? I would like to stick to simple tools 
(and stay in mutt) if possible.

My email is pulled in by fetchmail from a POP3 server (gmx) and processed by 
procmail into folders. I do not use IMAP. I thought I would put this in in case 
it was relevant.

Many thanks again for your suggestions, and best wishes,
Ranjan




searching across folders using mutt

2022-05-29 Thread Ranjan Maitra
Dear friends,

I have now been using mutt for about 20 months or so, having graduated from 
sylpheed, and life is generally well, but for one issue, and that is searching 
across folders.

So, suppose I know that I have an email in some folder with "stuff" in the 
subject line. Now, I know how to search this (quite readily) in a folder. But 
when I do not know the folder it is stored in, so far, it has been simply about 
guessing the right folders. Sometimes I get lucky, and sometimes I put it away, 
and occasionally, I do get lucky on a timed-release format, but I was wondering 
if I can get rid of this reliance on luck, as both my years and size of folders 
go up.

Is there an easy way to do this in mutt? I would like to stick to simple tools 
(and stay in mutt) if possible.

My email is pulled in by fetchmail from a POP3 server (gmx) and processed by 
procmail into folders. I do not use IMAP. I thought I would put this in in case 
it was relevant.

Many thanks again for your suggestions, and best wishes,
Ranjan




Re: Faster message body searching

2021-08-20 Thread Jean Louis
* Chinmaya Nagpal  [2021-08-20 23:20]:
> Is there any way to make it faster to do ~b limits in maildir mailboxes? 
> I don't really use notmuch for much other than message body searching so 
> I'm considering if I should get rid of it entirely. 

If you don't know who is the correspondent and you wish to find
message by body search then either you would use indexer like notmuch,
and I am using "mu" indexer https://github.com/djcb/mu/ as I find it
better; or maybe you could use simple `grep' to locate the message,
which would be probably slower with larger number of Maildirs.

In order to limit searches in bodies to specific conversant my Maildir
setup is such that all emails related to specific email address are
automatically saved to corresponding Maildir folder:

~/Maildir/u...@example.com is Maildir directory containing all emails
to and from u...@example.com

~/Maildir/other-u...@other-example.com is Maildir directory containing all 
emails
to and from other-u...@other-example.com

That way if I wish to search with ~b narrowed and related to specific
email address then the search goes much faster. 

Otherwise I have to use indexer to locate those messages which I do
not know to which conversant they belong.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/


Re: Faster message body searching

2021-08-20 Thread Kevin J. McCarthy

On Sat, Aug 21, 2021 at 01:49:27AM +0530, Chinmaya Nagpal wrote:

Is there any way to make it faster to do ~b limits in maildir mailboxes?


$thorough_search, set by default, decodes each message before searching 
through it.  You most likely want to do this, but it does slow the 
searching down.


Each message is decoded to a temp file.  You might see some speedup by 
setting $tmpdir to memory, e.g. "/dev/shm", during the search.


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Faster message body searching

2021-08-20 Thread Chinmaya Nagpal
Is there any way to make it faster to do ~b limits in maildir mailboxes? 
I don't really use notmuch for much other than message body searching so 
I'm considering if I should get rid of it entirely. 


Re: Searching sent folder

2018-02-06 Thread Erik Christiansen
On 07.02.18 03:54, David Woodfall wrote:
> > When I use search or limit in my sent folder on an address it shows no
> > matches. They seem to only work on subjects. Is there a way to get
> > them to work on addresses?
> > 
> > -dave
> > 
> 
> I found limit ~C


In the index, "/ ~h elephant" will find any such hiding in headers.
Haven't you used ~b to search mail bodies? Admittedly the latter does
not work on collapsed threads, in version 1.8.0.

Erik


Re: Searching sent folder

2018-02-06 Thread David Woodfall

When I use search or limit in my sent folder on an address it shows no
matches. They seem to only work on subjects. Is there a way to get
them to work on addresses?

-dave



I found limit ~C

-dave



Searching sent folder

2018-02-06 Thread David Woodfall

When I use search or limit in my sent folder on an address it shows no
matches. They seem to only work on subjects. Is there a way to get
them to work on addresses?

-dave



Re: easier searching in my sent-mail folder

2015-12-04 Thread Cameron Simpson

On 04Dec2015 20:45, Jurriaan <jurriaan_m...@onderneming10.net> wrote:

Is there any way to have the 'l' command (limit) default to include
searching the recipients email addresses in the sent mail folder?

Normally, when I press 'l' and enter a word, that word is searched for
in the email-address of the sender and in the subject, I think.

In the sent-email folder, I'd like to default to the email-address of
the recipient and the subject, since the email-address of the sender is
rather less useful there.

Is there anyway to do that? Optionally searching the entire body is fine
too, of course.


What you want is the $simple_search configuration variable.

If the expression supplied to  or  does not look like a valid 
pattern expression (~f and so forth) or one of the special words "all", 
"tagged" etc, the string is embedded in the value of $simple_search, whose 
default is:


 ~f %s | ~s %s

i.e. search the author and subject as you observed.

You could write a folder-hook to set $simple_search specially when in your 
sent-email folder. For your interest, I set it to:


 set simple_search="~f %s | ~t %s | ~c %s | ~s %s"

for all folders.


I've tried searching in the documentation, but I've not found what I'm
looking for. Do I need a limit-hook? Do I need a folder-dependent macro?


It is buried in the "Simple Search" section (section 3.2 in mutt 1.5.24) of the 
Patterns section. It took me a while to find it just now also.


Regrettably, on reflection, I think it is in the right place. If I were to 
suggets a doc improvement it would be to mention, tersely but at the start of 
the patterns section, that invalid patterns are treated as simple searches 
[link] and are inserted into the value of $simple_search if not one of the 
special words.


Cheers,
Cameron Simpson <c...@zip.com.au>


easier searching in my sent-mail folder

2015-12-04 Thread Jurriaan
Is there any way to have the 'l' command (limit) default to include
searching the recipients email addresses in the sent mail folder?

Normally, when I press 'l' and enter a word, that word is searched for
in the email-address of the sender and in the subject, I think.

In the sent-email folder, I'd like to default to the email-address of
the recipient and the subject, since the email-address of the sender is
rather less useful there.

Is there anyway to do that? Optionally searching the entire body is fine
too, of course.

I've tried searching in the documentation, but I've not found what I'm
looking for. Do I need a limit-hook? Do I need a folder-dependent macro?

Thanks,
Jurriaan


Re: easier searching in my sent-mail folder

2015-12-04 Thread jurriaan_mutt
From: Cameron Simpson <c...@zip.com.au>
Date: Sat, Dec 05, 2015 at 07:52:42AM +1100
> On 04Dec2015 20:45, Jurriaan <jurriaan_m...@onderneming10.net> wrote:
> >Is there any way to have the 'l' command (limit) default to include
> >searching the recipients email addresses in the sent mail folder?
> >
> What you want is the $simple_search configuration variable.
> 
> If the expression supplied to  or  does not look like a valid
> pattern expression (~f and so forth) or one of the special words "all",
> "tagged" etc, the string is embedded in the value of $simple_search, whose
> default is:
> 
>  ~f %s | ~s %s
> 
> i.e. search the author and subject as you observed.
> 
> You could write a folder-hook to set $simple_search specially when in your
> sent-email folder. For your interest, I set it to:
> 
>  set simple_search="~f %s | ~t %s | ~c %s | ~s %s"
> 
> for all folders.
> 

Most excellent. I'm not sure what is more impressing: the power of mutt
or the speed of it's users.
This is easily adapted to the hooks I already had for normal and
sent-mail folders, which alter index_format and sorting.

Many thanks!

Jurriaan


Re: Searching To:-Headers in Sent Mail

2013-06-05 Thread Cameron Simpson
On 03Jun2013 15:18, christian ebert blacktr...@gmx.net wrote:
| * Erik Christiansen on Monday, June 03, 2013 at 23:41:59 +1000
|  On 03.06.13 14:30, Patrick Ben Koetter wrote:
|  I'd like to search messages by recipient in my Sent-Folder, but at least my
|  mutt install won't do it out of the box.
|  
|  To do that, I just use:
|  
|  / ~h some_recipient_name
|  
|  OK, that looks in all the headers, but you probably want to check Cc: as
|  well, anyway? (And [s]he's not likely to crop up in many other headers,
|  so mucking with a tight regex doesn't seem warranted.)
| 
| / ~C some_recipient_name
| 
| looks in to: and cc:

And probably has the added advantage of being able to search entirely
in mutt's in-memory knowledge of the message headers; I thuink mutt
has to open and read messages if you ask to search all the headers.

On this topic, I've recently been very pleased to search messages
by address group. By transcribing my address db groups into mutt
alias commands of the form (example):

  alias -group abcshop abcshop ABC Shop News shopn...@your.abc.net.au, ABC 
Shop Web Server abcshopord...@your.abc.net.au, ABCShop Online 
shopord...@your.abc.net.au

I get both a mutt alias abcshop (not particularly useful in this
particular example) but also a mutt group named abcshop. And
that means one can use the:

  %C abcshop

pattern to search for messages to/cc addresses in that group.

This is outstandingly useful if you've got groups representing your
employer or client companies and stuff like that; you can limit
the mail view by one or more groups and then do further searching
or browsing.

I've got a macro named LB I use that limits to fairly comoplicated
pattern I use a lot when review my mail history in a particular
context. That pattern has been GREATLY simplified by using groups
(%C, %f) instead of individual address matches (~C, ~f).

Cheers,
-- 
Cameron Simpson c...@zip.com.au

The engine purrs beneath me with a purpose,
ready for the pleasure of my hand upon the throttle. - Peter Smith


Searching To:-Headers in Sent Mail

2013-06-03 Thread Patrick Ben Koetter
I'd like to search messages by recipient in my Sent-Folder, but at least my
mutt install won't do it out of the box.

Is the scope mutt searches for limited by context (e.g. Sent-Folder) or do I
have to use a special search keyword?

THX

p@rick


-- 
Patrick Ben Koetter
p...@state-of-mind.de


Re: Searching To:-Headers in Sent Mail

2013-06-03 Thread Erik Christiansen
On 03.06.13 14:30, Patrick Ben Koetter wrote:
 I'd like to search messages by recipient in my Sent-Folder, but at least my
 mutt install won't do it out of the box.

To do that, I just use:

/ ~h some_recipient_name

OK, that looks in all the headers, but you probably want to check Cc: as
well, anyway? (And [s]he's not likely to crop up in many other headers,
so mucking with a tight regex doesn't seem warranted.)

Erik

-- 
Money is truthful.  If a man speaks of his honour, make him pay cash.
   - Lazarus Long



Re: Searching To:-Headers in Sent Mail

2013-06-03 Thread Christian Ebert
* Erik Christiansen on Monday, June 03, 2013 at 23:41:59 +1000
 On 03.06.13 14:30, Patrick Ben Koetter wrote:
 I'd like to search messages by recipient in my Sent-Folder, but at least my
 mutt install won't do it out of the box.
 
 To do that, I just use:
 
 / ~h some_recipient_name
 
 OK, that looks in all the headers, but you probably want to check Cc: as
 well, anyway? (And [s]he's not likely to crop up in many other headers,
 so mucking with a tight regex doesn't seem warranted.)

/ ~C some_recipient_name

looks in to: and cc:

-- 
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions


Searching for an email by sender's address

2013-04-27 Thread John Niendorf

Hi Guys,

How do you guys search for all messages from a particular sender?
When I do a search, it picks up words from the subject by ignores the sender's 
(or recipient's) address.
--
John


Re: Searching for an email by sender's address

2013-04-27 Thread Tim Gray

On Apr 27, 2013 at 09:36 PM +0200, John Niendorf wrote:

How do you guys search for all messages from a particular sender?
When I do a search, it picks up words from the subject by ignores the 
sender's (or recipient's) address.


Try '~f'.  So limit, then `~f name`.



Re: Searching for an email by sender's address

2013-04-27 Thread s. keeling
Incoming from John Niendorf:
 
 How do you guys search for all messages from a particular sender?
 When I do a search, it picks up words from the subject by ignores
 the sender's (or recipient's) address.

I prefer grepmail.  It's its own .deb in Wheezy, or
http://grepmail.sourceforge.net/ 


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*) :(){ :|: };:
- -


signature.asc
Description: Digital signature


Re: Searching for an email by sender's address

2013-04-27 Thread Greg Donoghue
On Sat, Apr 27, 2013 at 09:36:15PM +0200, John Niendorf wrote:
 
 How do you guys search for all messages from a particular sender?
 When I do a search, it picks up words from the subject by ignores the 
 sender's (or recipient's) address.

One option is to use the sort o function.

-- 
Greg Donoghue
g...@gmx.us


Re: Searching for an email by sender's address

2013-04-27 Thread John Niendorf

On Sat, Apr 27, 2013 at 03:49:48PM -0400, Tim Gray wrote:


Try '~f'.  So limit, then `~f name`.


Thanks Tim,

That seems to work pretty well.

--
John


problem with mailcap and searching

2012-05-29 Thread Xylo Drum
I have a pretty much default mutt setup including some very simple
lines in my .mailcap such as:

image/jpg; xview %s
image/jpeg; xview %s

these work fine for viewing images, but when trying to do a 'l' search
with a pattern of ~bfoo mutt keeps throwing up

mailcap entry for type image/jpeg not found

hoping someone can help me fix this annoying little problem,

Thank you.


Re: problem with mailcap and searching

2012-05-29 Thread Gary Johnson
On 2012-05-29, Xylo Drum wrote:
 I have a pretty much default mutt setup including some very simple
 lines in my .mailcap such as:
 
 image/jpg; xview %s
 image/jpeg; xview %s
 
 these work fine for viewing images, but when trying to do a 'l' search
 with a pattern of ~bfoo mutt keeps throwing up
 
 mailcap entry for type image/jpeg not found

Mutt is looking for a rule in your .mailcap for converting
image/jpeg attachments to plain text.  Such rules must contain the
'copiousoutput' flag.  Unless you have some meaningful way of
generating text from a JPEG image, you may need to add some sort of
no-op rule like this (untested):

image/jpeg; true; copiousoutput

just to give mutt something to execute.

Regards,
Gary



Re: problem with mailcap and searching

2012-05-29 Thread Xylo Drum
Hi Gary,

Thanks for swift reply. Your solution works in that it fixes the
'search' problem, but it means that I can't view the attachments with
'v' - there needs to be a way to use 'switch' in the mailcap, or get
mutt to use different mailcaps in different contexts.

Cheers,

On Tue, May 29, 2012 at 5:20 PM, Gary Johnson garyj...@spocom.com wrote:
 On 2012-05-29, Xylo Drum wrote:
 I have a pretty much default mutt setup including some very simple
 lines in my .mailcap such as:

 image/jpg; xview %s
 image/jpeg; xview %s

 these work fine for viewing images, but when trying to do a 'l' search
 with a pattern of ~bfoo mutt keeps throwing up

 mailcap entry for type image/jpeg not found

 Mutt is looking for a rule in your .mailcap for converting
 image/jpeg attachments to plain text.  Such rules must contain the
 'copiousoutput' flag.  Unless you have some meaningful way of
 generating text from a JPEG image, you may need to add some sort of
 no-op rule like this (untested):

    image/jpeg; true; copiousoutput

 just to give mutt something to execute.

 Regards,
 Gary



Re: problem with mailcap and searching

2012-05-29 Thread Gary Johnson
On 2012-05-29, Xylo Drum wrote:

 On Tue, May 29, 2012 at 5:20 PM, Gary Johnson garyj...@spocom.com wrote:
  On 2012-05-29, Xylo Drum wrote:
  I have a pretty much default mutt setup including some very simple
  lines in my .mailcap such as:
 
  image/jpg; xview %s
  image/jpeg; xview %s
 
  these work fine for viewing images, but when trying to do a 'l' search
  with a pattern of ~bfoo mutt keeps throwing up
 
  mailcap entry for type image/jpeg not found
 
  Mutt is looking for a rule in your .mailcap for converting
  image/jpeg attachments to plain text.  Such rules must contain the
  'copiousoutput' flag.  Unless you have some meaningful way of
  generating text from a JPEG image, you may need to add some sort of
  no-op rule like this (untested):
 
     image/jpeg; true; copiousoutput
 
  just to give mutt something to execute.

 Thanks for swift reply. Your solution works in that it fixes the
 'search' problem, but it means that I can't view the attachments with
 'v' - there needs to be a way to use 'switch' in the mailcap, or get
 mutt to use different mailcaps in different contexts.

Did you use the copiousoutput rule in addition to your original
rule, or did you replace the original rule by the copiousoutput
rule?  You can and should use both, e.g.,

image/jpeg; xview %s
image/jpeg; true; copiousoutput

See

http://www.spocom.com/users/gjohnson/mutt/#mime

for a little more on this.

Regards,
Gary



Re: problem with mailcap and searching

2012-05-29 Thread Xylo Drum
Aha!

Fixed.

Many thanks,

On Tue, May 29, 2012 at 6:45 PM, Gary Johnson garyj...@spocom.com wrote:
 On 2012-05-29, Xylo Drum wrote:

 On Tue, May 29, 2012 at 5:20 PM, Gary Johnson garyj...@spocom.com wrote:
  On 2012-05-29, Xylo Drum wrote:
  I have a pretty much default mutt setup including some very simple
  lines in my .mailcap such as:
 
  image/jpg; xview %s
  image/jpeg; xview %s
 
  these work fine for viewing images, but when trying to do a 'l' search
  with a pattern of ~bfoo mutt keeps throwing up
 
  mailcap entry for type image/jpeg not found
 
  Mutt is looking for a rule in your .mailcap for converting
  image/jpeg attachments to plain text.  Such rules must contain the
  'copiousoutput' flag.  Unless you have some meaningful way of
  generating text from a JPEG image, you may need to add some sort of
  no-op rule like this (untested):
 
     image/jpeg; true; copiousoutput
 
  just to give mutt something to execute.

 Thanks for swift reply. Your solution works in that it fixes the
 'search' problem, but it means that I can't view the attachments with
 'v' - there needs to be a way to use 'switch' in the mailcap, or get
 mutt to use different mailcaps in different contexts.

 Did you use the copiousoutput rule in addition to your original
 rule, or did you replace the original rule by the copiousoutput
 rule?  You can and should use both, e.g.,

    image/jpeg; xview %s
    image/jpeg; true; copiousoutput

 See

    http://www.spocom.com/users/gjohnson/mutt/#mime

 for a little more on this.

 Regards,
 Gary



Re: Searching for hook to save new read mail to its particular mailbox

2010-09-13 Thread Nicolas Williams
On Fri, Sep 10, 2010 at 09:49:57AM +0200, j...@telefonica.net wrote:
 Nico, I will search for your macro to see what can I do with regular
 expressions.

For your convenience:

macro index , 
tag-pattern!~D^Jtag-prefix-condsave-message/path/to/some/maildir/^J^Jend-condsync-mailbox
 Move all undeleted messages to maildir folders

Then use ',' to move all undeleted mail to a maildir.

Change the tag-pattern to your liking, and, of course, the save-message
path.

Nico
-- 


Re: Searching for hook to save new read mail to its particular mailbox

2010-09-10 Thread j...@telefonica.net
Thanks friends for your proposal.

I like to receive all new mail in the same inbox and after read them,
each one must be moved, if not deleted, to its final store mailbox
according to list or author.

Nico, I will search for your macro to see what can I do with regular
expressions.

-- 
Jose Angel Navarro Cortes
email: j...@telefonica.net
web: http://janc.es/
Usuario Linux: #49178

El 10.09.09 23:13:35  Nicolas Williams dijo:
 On Thu, Sep 09, 2010 at 06:53:07AM -0700, Michael Elkins wrote:
  On Tue, Sep 07, 2010 at 12:57:51PM +0200, j...@telefonica.net wrote:
  I'm searching about a hook that will save to its mailbox all mails with
  To: list_...@server.com after had read them, I think when changing
  mailboxes.
  
  Now, I received all mails to +spoolfile but I would like to move with a
  hook the ones coming To: list_...@server.com after had read them.
  
  I have tried with save-hook, fcc-hook, but I can't find which one will
  do that move or copy.
  
  Mutt does not really have any automatic filtering built in.  What
  most people do in this situation is to use something like procmail
  to filter incoming mail into separate mailboxes per email list, then
  put mailboxes +list1 +list2 in their ~/.muttrc to be informed when
  each mailbox has new mail.
 
 Mutt has a wonderful regular expression language that makes it easy to
 write small, powerful search expressions.  Searches are filters, really
 (see gmail).  It seems like a pity that mutt doesn't have a first-class
 filter.  Procmail is not easy to use by comparison to mutt.  Sure, sure,
 if you're using a text-based MUA you can write procmail filters.  True.
 
 But for some use cases external programs like getmail, fetchmail and
 procmail all fall short.  For example, I've given up on fetchmail
 because it dropped 30K messages once (from a 100K msg folder).  I've
 given up on getmail because it doesn't preserve message flags, so if
 I've an IMAP Inbox that I want to leave a few days' worth of messages at
 a time for accessing from multiple MUAs (say, mobiles), then I can't use
 getmail to later move those off the IMAP server.  (No, the getmail
 maintainer was not interested in patches to preserve message
 status/flags.)  If I use IMAP, can't or don't leave mail on the server,
 but can use neither getmail nor fetchmail then how am I to use procmail?
 
 So I use mutt as a mail fetcher.  It's easy: I've a simple macro that
 tags all un-deleted messages and the tag-saves them to their destination
 (I've posted this macro before).  It'd be easy to add multiple steps,
 with each step tagging messages matching a given filter, then tag-saving
 to specific folders.  Well, 'easy' is relative -- easy for me, but then,
 I don't file e-mail (I depend on searches).  Mutt could provide this off
 the shelf, and then it would be really easy.
 
 Seems like a shame to have a great search language that cannot also be
 used for writing filters.  Mutt has everything it needs to replace that
 getmail/fetchmail/procmail mix -- only the finishing touches are
 missing.
 
 Nico
 -- 


Re: Searching for hook to save new read mail to its particular mailbox

2010-09-10 Thread Patrick Shanahan
* Nicolas Williams nicolas.willi...@oracle.com [09-10-10 00:19]:
 But for some use cases external programs like getmail, fetchmail and
 procmail all fall short.  For example, I've given up on fetchmail
 because it dropped 30K messages once (from a 100K msg folder).  I've
 given up on getmail because it doesn't preserve message flags, so if
 I've an IMAP Inbox that I want to leave a few days' worth of messages at
 a time for accessing from multiple MUAs (say, mobiles), then I can't use
 getmail to later move those off the IMAP server.  (No, the getmail
 maintainer was not interested in patches to preserve message
 status/flags.)  If I use IMAP, can't or don't leave mail on the server,
 but can use neither getmail nor fetchmail then how am I to use procmail?

simple.  Use  mutt as you do now and access your mail from outside via ssh.
-- 
Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711
http://wahoo.no-ip.org Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://counter.li.org


Re: Searching for hook to save new read mail to its particular mailbox

2010-09-09 Thread Michael Elkins

On Tue, Sep 07, 2010 at 12:57:51PM +0200, j...@telefonica.net wrote:

I'm searching about a hook that will save to its mailbox all mails with
To: list_...@server.com after had read them, I think when changing
mailboxes.

Now, I received all mails to +spoolfile but I would like to move with a
hook the ones coming To: list_...@server.com after had read them.

I have tried with save-hook, fcc-hook, but I can't find which one will
do that move or copy.


Mutt does not really have any automatic filtering built in.  What most people 
do in this situation is to use something like procmail to filter incoming mail 
into separate mailboxes per email list, then put mailboxes +list1 +list2 in 
their ~/.muttrc to be informed when each mailbox has new mail.


me


Re: Searching for hook to save new read mail to its particular mailbox

2010-09-09 Thread Nicolas Williams
On Thu, Sep 09, 2010 at 06:53:07AM -0700, Michael Elkins wrote:
 On Tue, Sep 07, 2010 at 12:57:51PM +0200, j...@telefonica.net wrote:
 I'm searching about a hook that will save to its mailbox all mails with
 To: list_...@server.com after had read them, I think when changing
 mailboxes.
 
 Now, I received all mails to +spoolfile but I would like to move with a
 hook the ones coming To: list_...@server.com after had read them.
 
 I have tried with save-hook, fcc-hook, but I can't find which one will
 do that move or copy.
 
 Mutt does not really have any automatic filtering built in.  What
 most people do in this situation is to use something like procmail
 to filter incoming mail into separate mailboxes per email list, then
 put mailboxes +list1 +list2 in their ~/.muttrc to be informed when
 each mailbox has new mail.

Mutt has a wonderful regular expression language that makes it easy to
write small, powerful search expressions.  Searches are filters, really
(see gmail).  It seems like a pity that mutt doesn't have a first-class
filter.  Procmail is not easy to use by comparison to mutt.  Sure, sure,
if you're using a text-based MUA you can write procmail filters.  True.

But for some use cases external programs like getmail, fetchmail and
procmail all fall short.  For example, I've given up on fetchmail
because it dropped 30K messages once (from a 100K msg folder).  I've
given up on getmail because it doesn't preserve message flags, so if
I've an IMAP Inbox that I want to leave a few days' worth of messages at
a time for accessing from multiple MUAs (say, mobiles), then I can't use
getmail to later move those off the IMAP server.  (No, the getmail
maintainer was not interested in patches to preserve message
status/flags.)  If I use IMAP, can't or don't leave mail on the server,
but can use neither getmail nor fetchmail then how am I to use procmail?

So I use mutt as a mail fetcher.  It's easy: I've a simple macro that
tags all un-deleted messages and the tag-saves them to their destination
(I've posted this macro before).  It'd be easy to add multiple steps,
with each step tagging messages matching a given filter, then tag-saving
to specific folders.  Well, 'easy' is relative -- easy for me, but then,
I don't file e-mail (I depend on searches).  Mutt could provide this off
the shelf, and then it would be really easy.

Seems like a shame to have a great search language that cannot also be
used for writing filters.  Mutt has everything it needs to replace that
getmail/fetchmail/procmail mix -- only the finishing touches are
missing.

Nico
-- 


Searching for hook to save new read mail to its particular mailbox

2010-09-07 Thread janc
Hi all.

I'm searching about a hook that will save to its mailbox all mails with
To: list_...@server.com after had read them, I think when changing
mailboxes.

Now, I received all mails to +spoolfile but I would like to move with a
hook the ones coming To: list_...@server.com after had read them.

I have tried with save-hook, fcc-hook, but I can't find which one will
do that move or copy.

I already move the ones I send to that list with:
fcc-hook '~t \\list_...@server\.com\\' ~/mail/list_one

Thanks in advanced for your help.

Best regards.

-- 
Jose Angel Navarro Cortes
email: j...@telefonica.net
web: http://janc.es/
Usuario Linux: #49178


Re: Searching for hook to save new read mail to its particular mailbox

2010-09-07 Thread Rado S
=- j...@telefonica.net wrote on Tue  7.Sep'10 at 12:57:51 +0200 -=

 I'm searching about a hook that will save to its mailbox all mails
 with To: list_...@server.com after had read them, I think when
 changing mailboxes.

Use macro rather than hook to save before change, replace your
change-folder key with that macro.

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.


Re: Body searching

2009-08-31 Thread Noah Slater
On Mon, Aug 24, 2009 at 12:57:11PM +0800, fvw wrote:
 / ~b EXPR

Thanks.

-- 
Noah Slater, http://tumbolia.org/nslater


Re: Body searching

2009-08-24 Thread Erik Christiansen
On Mon, Aug 24, 2009 at 12:57:11PM +0800, fvw wrote:
 On Mon, Aug 24, 2009 at 04:36:25AM +0100, Noah Slater wrote:
 How can I search through the body of all messages in a folder?
 
 I have mairix set up for my archives, but not my inbox. My current
 setup would make it problematic to do so. Is it possible to do a
 simple search through the message bodies of the current folder?

 / ~b EXPR

For me, that works on uncollapsed threads only, so I need to precede it
with EscV . I'm not aware of a way around that.

Erik

-- 
Each year, humanity's ecological overdraft gets larger,
... and nature doesn't do bailouts.   - Andrew Simms



Body searching

2009-08-23 Thread Noah Slater
Hey,

How can I search through the body of all messages in a folder?

I have mairix set up for my archives, but not my inbox. My current setup would
make it problematic to do so. Is it possible to do a simple search through the
message bodies of the current folder?

Thanks,

-- 
Noah Slater, http://tumbolia.org/nslater


Re: Body searching

2009-08-23 Thread fvw
On Mon, Aug 24, 2009 at 04:36:25AM +0100, Noah Slater wrote:
Hey,

How can I search through the body of all messages in a folder?

I have mairix set up for my archives, but not my inbox. My current setup would
make it problematic to do so. Is it possible to do a simple search through the
message bodies of the current folder?
/ ~b EXPR


Re: searching in search results

2008-11-21 Thread lee
On Wed, Nov 19, 2008 at 08:36:43PM -0600, lee wrote:

 is it possible to somehow search within search results?

Thanks a lot for your answers! I didn't even know that it's possible
to combine different search criteria in one line, and I've been using
mutt for years ... Combining them should be enough in most cases :)

But I found two packages:


mairix - indexes and searches email in locally stored email
nmzmail - indexes and searches email in maildir folders


I'll take a look at them and try them out, I'm curious what can be
done with them.


-- 
http://en.wikipedia.org/wiki/Posting_style


searching in search results

2008-11-19 Thread lee

Hi,

is it possible to somehow search within search results? For example,
if I want to find a message of which I know the From: header and a
word or some words of the body, how do I find it when going by either
the From: line or the body only would give too many results?

Maybe tag messages by From: header and then limit the search to tagged
messages? That would work for two levels of searching only, unless I'd
start copying messages around or so ... which I could do to begin
with. Hmm. But is there a better way?


-- 
http://en.wikipedia.org/wiki/Posting_style


Re: searching in search results

2008-11-19 Thread Patrick Shanahan
* lee [EMAIL PROTECTED] [11-19-08 21:37]:
 
 is it possible to somehow search within search results? For example,
 if I want to find a message of which I know the From: header and a
 word or some words of the body, how do I find it when going by either
 the From: line or the body only would give too many results?
 
 Maybe tag messages by From: header and then limit the search to tagged
 messages? That would work for two levels of searching only, unless I'd
 start copying messages around or so ... which I could do to begin
 with. Hmm. But is there a better way?
 

Look at mairix,   http://www.rc0.org.uk/mairix

mairix is a tool for indexing and searching email messages stored in
Maildir, MH, or mbox folders. The index contains a map of which words
occur in which parts of which messages. Searches on this index are
fast and generate symlinks to the matching messages in a new Maildir
or MH folder, or copies of matching messages in an mbox folder, which
can be browsed normally in a mail client.

I have been using it for about two years and have been very pleased.
-- 
Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711
http://wahoo.no-ip.org Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://counter.li.org


Re: searching in search results

2008-11-19 Thread David Haguenauer
Hi,

* lee [EMAIL PROTECTED], 2008-11-19 20:36:43 Wed:
 is it possible to somehow search within search results? For example,
 if I want to find a message of which I know the From: header and a
 word or some words of the body, how do I find it when going by either
 the From: line or the body only would give too many results?

I recommend Mairix as well, but otherwise you can simply use a more
complex search pattern, such as `~fuser~bword', where `user' and
`word' stand for the strings you are looking for. This pattern will
only match messages that are both from `user' and contain `word'.

-- 
David Haguenauer


pgpQlaXhgp7Wk.pgp
Description: PGP signature


Re: searching in search results

2008-11-19 Thread Robin Lee Powell
On Wed, Nov 19, 2008 at 08:36:43PM -0600, lee wrote:
 
 Hi,
 
 is it possible to somehow search within search results? For
 example, if I want to find a message of which I know the From:
 header and a word or some words of the body, how do I find it when
 going by either the From: line or the body only would give too
 many results?

l the first part, then / within that.

-Robin

-- 
They say:  The first AIs will be built by the military as weapons.
And I'm thinking:  Does it even occur to you to try for something
other than the default outcome? -- http://shorl.com/tydruhedufogre
http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/


Re: searching in search results

2008-11-19 Thread Ed Blackman

On Wed, Nov 19, 2008 at 08:36:43PM -0600, lee wrote:

is it possible to somehow search within search results? For example,
if I want to find a message of which I know the From: header and a
word or some words of the body, how do I find it when going by either
the From: line or the body only would give too many results?


Search or limit, then ~f joe ~b 'meeting tonight' would search or 
limit to messages that have joe in the From: line and meeting 
tonight in the body.


By default, search terms are logically ANDed together so that only 
messages meeting all criteria are returned.  You can use ~f joe | ~b 
'meeting tonight' to return messages that meet ANY critera (logical 
OR), and ! for negation.


man muttrc and search for logical operators for examples.

Ed


signature.txt
Description: Digital signature


Re: searching or wrapping input fields

2008-06-30 Thread Anton Shterenlikht
 another shot in the dark, set edit_headers

Wrapping headers in the editor mode?
That'll do!

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423


Re: searching or wrapping input fields

2008-06-30 Thread Patrick Shanahan
* Anton Shterenlikht [EMAIL PROTECTED] [06-30-08 08:35]:
  another shot in the dark, set edit_headers
 
 Wrapping headers in the editor mode?
 That'll do!


That is the configuration that provided wrapping in the headers?
Who'd have thought   :^)

glad to have helped.
-- 
Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711
http://wahoo.no-ip.org Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://counter.li.org


Re: searching or wrapping input fields

2008-06-29 Thread Anton Shterenlikht
On Fri, Jun 27, 2008 at 02:05:55PM -0400, Patrick Shanahan wrote:
 * Anton Shterenlikht [EMAIL PROTECTED] [06-27-08 11:59]:
  
 
 yes, I didn't notice that you were still using
User-Agent: Mutt/1.4.2.3i
   
   6.3.205.  smart_wrap
 
   Type: boolean
   Default: yes
 
   Controls the display of lines longer then the screen width in the
   internal pager. If set, long lines are wrapped at a word boundary.
   If unset, lines are simply wrapped at the screen edge. Also see the
   ``$markers variable.
   
 IF this does not resolve your problem, I guess an upgrade is in order.
 I would say that an upgrade *should* be made in any circumstance.

But that is in pager. I get text wrapping in the pager fine. And yes,
I can use smart_wrap and markers for a clearere wrapping display.

HOwever, I can't wrap the input fields either during inputting, or after
enter in the message sending interface.

I tend not to use the development branch, and stick to stable, but
I'll see if mutt-devel will be able to solve this problem.
I'll report back.

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423


Re: searching or wrapping input fields

2008-06-29 Thread Anton Shterenlikht
On Sun, Jun 29, 2008 at 03:18:14PM +0100, Anton Shterenlikht wrote:
 On Fri, Jun 27, 2008 at 02:05:55PM -0400, Patrick Shanahan wrote:
  * Anton Shterenlikht [EMAIL PROTECTED] [06-27-08 11:59]:
   
  
  yes, I didn't notice that you were still using
 User-Agent: Mutt/1.4.2.3i

6.3.205.  smart_wrap
  
Type: boolean
Default: yes
  
Controls the display of lines longer then the screen width in the
internal pager. If set, long lines are wrapped at a word boundary.
If unset, lines are simply wrapped at the screen edge. Also see the
``$markers variable.
  
  IF this does not resolve your problem, I guess an upgrade is in order.
  I would say that an upgrade *should* be made in any circumstance.
 
 But that is in pager. I get text wrapping in the pager fine. And yes,
 I can use smart_wrap and markers for a clearere wrapping display.
 
 HOwever, I can't wrap the input fields either during inputting, or after
 enter in the message sending interface.
 
 I tend not to use the development branch, and stick to stable, but
 I'll see if mutt-devel will be able to solve this problem.
 I'll report back.

I just installed mutt-devel-1.5.18_1.
I added set wrap = -1 to leave 1 space free on the right hand
side of the screen.
However, the behaviour in message sending interface is still the same.

top of the screenshot during message sending interface

y:Send  q:Abort  t:To  c:CC  s:Subj  a:Attach file  d:Descrip  ?:Help
From: Anton Shterenlikht [EMAIL PROTECTED]
  To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
 Bcc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject:
Reply-To:

cut the screenshot


i.e. To, Cc and Bcc do not wrap, but are cut at the edge of the screen.

HOw can I make them wrap?
Do To,Cc,Bcc lines wrap for other mutt users?

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423


Re: searching or wrapping input fields

2008-06-29 Thread Anton Shterenlikht
On Sun, Jun 29, 2008 at 12:41:27PM -0400, Patrick Shanahan wrote:
 * Anton Shterenlikht [EMAIL PROTECTED] [06-29-08 10:52]:
  I just installed mutt-devel-1.5.18_1.
  I added set wrap = -1 to leave 1 space free on the right hand
  side of the screen.
  However, the behaviour in message sending interface is still the same.
  
  top of the screenshot during message sending interface
  
  y:Send  q:Abort  t:To  c:CC  s:Subj  a:Attach file  d:Descrip  ?:Help
  From: Anton Shterenlikht [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
   Bcc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
   Subject:
  Reply-To:
  
  cut the screenshot
  
  
  i.e. To, Cc and Bcc do not wrap, but are cut at the edge of the screen.
  
  HOw can I make them wrap?
  Do To,Cc,Bcc lines wrap for other mutt users?
 
 Guess that only leaves the terminal application...  What term are you
 using?  ps aux | grep term
 
 I don't know much about setting different parameters in term.  I am
 using xterm in openSUSE 10.1:

Just to be clear, are you saying your To/Cc/Bcc wrap in the compose menu?

I have the same behaviour with xterm-235 or syscons (the default
FreeBSD virtual terminal).

I understand how wrapping is controlled in the pager and the
editor modes, basically the editor settings (vi in my case) and
mutt settings wrap, smart_wrap and markers.

However, what is controlling wrapping in the index and the compose modes,
perhaps some library on which mutt depends?

Is it possible to wrap in the index mode at all?  
It seems to me that the terminal control is similar in the
index and the compose modes.

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423


Re: searching or wrapping input fields

2008-06-27 Thread Patrick Shanahan
* Anton Shterenlikht [EMAIL PROTECTED] [06-27-08 10:39]:
 On Fri, Jun 27, 2008 at 10:22:41AM -0400, Patrick Shanahan wrote:
  
  if your terminal program is utilizing emacs keystrokes, meta-f or
  alt-f will go forward one word (white space delimited) and meta-b
  or alt-b will go backward one word.  Maybe this will help.
 
 Patrick, yes, I know about this facility. It is in section 2.2 Editing
 Input Fields. On my system it's ESC/B and ESC/F to move backwards and
 forwards one word respectively. This is good, but it would be better
 to be able to view the whole list at once, or to be able to search within
 the list.

other options, set wordwrap in your editor.  I use jed with mail-mode,
but I know that joe also has wordwrap.  I see the entire list with
headers enabled in my editor.  

Not on the text entry line at the bottom of the mutt screen, but after
enter the To/Cc/Bcc lists are all wrapped.  I believe that this (not
the bottom line) is controlled via .muttrc,
  set wrapcolumn=-6

-- 
Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711
http://wahoo.no-ip.org Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://counter.li.org


Re: searching or wrapping input fields

2008-06-27 Thread Anton Shterenlikht
On Fri, Jun 27, 2008 at 11:14:46AM -0400, Patrick Shanahan wrote:
 * Anton Shterenlikht [EMAIL PROTECTED] [06-27-08 10:39]:
  On Fri, Jun 27, 2008 at 10:22:41AM -0400, Patrick Shanahan wrote:
   
   if your terminal program is utilizing emacs keystrokes, meta-f or
   alt-f will go forward one word (white space delimited) and meta-b
   or alt-b will go backward one word.  Maybe this will help.
  
  Patrick, yes, I know about this facility. It is in section 2.2 Editing
  Input Fields. On my system it's ESC/B and ESC/F to move backwards and
  forwards one word respectively. This is good, but it would be better
  to be able to view the whole list at once, or to be able to search within
  the list.
 
 other options, set wordwrap in your editor.  I use jed with mail-mode,
 but I know that joe also has wordwrap.  I see the entire list with
 headers enabled in my editor.  
 
 Not on the text entry line at the bottom of the mutt screen, but after
 enter the To/Cc/Bcc lists are all wrapped.  I believe that this (not
 the bottom line) is controlled via .muttrc,
   set wrapcolumn=-6

I use vi, and words do wrap in the editor, though
not in the input fields.

When I enter the To/Cc/Bcc long list,
it  is cut at the terminal edge, not wrapped.

The wrapcolumn is not recognised by my mutt:

% mutt
Error in /home/mexas/.muttrc, line 3: wrapcolumn: unknown variable
source: errors in /home/mexas/.muttrc
Press any key to continue...
%

and it doesn't appear in the manual either:

6.3. Configuration Variables

[skip]
  6.3.234. weed

  6.3.235. wrap_search
[skip]


I should probably add mutt -v:
%mutt -v
Mutt 1.4.2.3i (2007-05-26)
Copyright (C) 1996-2002 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: FreeBSD 7.0-STABLE (i386) [using ncurses 5.6]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
-USE_FCNTL  +USE_FLOCK
+USE_POP  +USE_IMAP  +USE_GSS  +USE_SSL  -USE_SASL  
+HAVE_REGCOMP  -USE_GNU_REGEX  +COMPRESSED  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  
+HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO  
-ISPELL
SENDMAIL=/usr/sbin/sendmail
MAILPATH=/var/mail
PKGDATADIR=/usr/local/share/mutt
SYSCONFDIR=/usr/local/etc
EXECSHELL=/bin/sh
-MIXMASTER
To contact the developers, please mail to [EMAIL PROTECTED].
To report a bug, please use the flea(1) utility.

vvv.initials
1.3.28.nr.threadcomplete
rr.compressed


many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423


Re: searching or wrapping input fields

2008-06-27 Thread Anton Shterenlikht
On Fri, Jun 27, 2008 at 04:57:20PM +0100, Anton Shterenlikht wrote:
 On Fri, Jun 27, 2008 at 11:14:46AM -0400, Patrick Shanahan wrote:
  * Anton Shterenlikht [EMAIL PROTECTED] [06-27-08 10:39]:
   On Fri, Jun 27, 2008 at 10:22:41AM -0400, Patrick Shanahan wrote:

if your terminal program is utilizing emacs keystrokes, meta-f or
alt-f will go forward one word (white space delimited) and meta-b
or alt-b will go backward one word.  Maybe this will help.
   
   Patrick, yes, I know about this facility. It is in section 2.2 Editing
   Input Fields. On my system it's ESC/B and ESC/F to move backwards and
   forwards one word respectively. This is good, but it would be better
   to be able to view the whole list at once, or to be able to search within
   the list.
  
  other options, set wordwrap in your editor.  I use jed with mail-mode,
  but I know that joe also has wordwrap.  I see the entire list with
  headers enabled in my editor.  
  
  Not on the text entry line at the bottom of the mutt screen, but after
  enter the To/Cc/Bcc lists are all wrapped.  I believe that this (not
  the bottom line) is controlled via .muttrc,
set wrapcolumn=-6
 
 I use vi, and words do wrap in the editor, though
 not in the input fields.
 
 When I enter the To/Cc/Bcc long list,
 it  is cut at the terminal edge, not wrapped.
 
 The wrapcolumn is not recognised by my mutt:
 
 % mutt
 Error in /home/mexas/.muttrc, line 3: wrapcolumn: unknown variable
 source: errors in /home/mexas/.muttrc
 Press any key to continue...
 %
 
 and it doesn't appear in the manual either:
 
 6.3. Configuration Variables
 
 [skip]
   6.3.234. weed
 
   6.3.235. wrap_search
 [skip]
 
 
 I should probably add mutt -v:
 %mutt -v
 Mutt 1.4.2.3i (2007-05-26)
 Copyright (C) 1996-2002 Michael R. Elkins and others.
 Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
 Mutt is free software, and you are welcome to redistribute it
 under certain conditions; type `mutt -vv' for details.
 
 System: FreeBSD 7.0-STABLE (i386) [using ncurses 5.6]
 Compile options:
 -DOMAIN
 -DEBUG
 -HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
 -USE_FCNTL  +USE_FLOCK
 +USE_POP  +USE_IMAP  +USE_GSS  +USE_SSL  -USE_SASL  
 +HAVE_REGCOMP  -USE_GNU_REGEX  +COMPRESSED  
 +HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
 +HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
 +HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
 +ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  
 +HAVE_LANGINFO_YESEXPR  
 +HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO  
 -ISPELL
 SENDMAIL=/usr/sbin/sendmail
 MAILPATH=/var/mail
 PKGDATADIR=/usr/local/share/mutt
 SYSCONFDIR=/usr/local/etc
 EXECSHELL=/bin/sh
 -MIXMASTER
 To contact the developers, please mail to [EMAIL PROTECTED].
 To report a bug, please use the flea(1) utility.
 
 vvv.initials
 1.3.28.nr.threadcomplete
 rr.compressed
 

Patrick,

writecolumn doesn't seem to appear in mutt-devel (1.5.18) either.
There is wrap, which is the substitute for the deprecated wrapmargin.
I put set wrapmargin = -5 in my mutt-stable (1.4.2.3),
but see no difference. The To/Cc/Bcc fields after enter are still
not wrapped, but cut at the right edge of the terminal.

many thanks
anton
 
-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423


Re: searching or wrapping input fields

2008-06-27 Thread Patrick Shanahan
* Anton Shterenlikht [EMAIL PROTECTED] [06-27-08 11:59]:
 
 I use vi, and words do wrap in the editor, though
 not in the input fields.
 
 When I enter the To/Cc/Bcc long list,
 it  is cut at the terminal edge, not wrapped.
 
 The wrapcolumn is not recognised by my mutt:

yes, I didn't notice that you were still using
   User-Agent: Mutt/1.4.2.3i
   
 % mutt
 Error in /home/mexas/.muttrc, line 3: wrapcolumn: unknown variable
 source: errors in /home/mexas/.muttrc
 Press any key to continue...
 %

Upgrade mutt.  You are missing a *lot* of enhancement and features  :^(

I'm at 1.5.13.  And the oldest .muttrc example I have is from
2003-06-19, Mutt 1.5.4i.

www.mutt.org, manual for 1.4.2.3i shows 6.3.205 smart_wrap:
  
  6.3.205.  smart_wrap

  Type: boolean
  Default: yes

  Controls the display of lines longer then the screen width in the
  internal pager. If set, long lines are wrapped at a word boundary.
  If unset, lines are simply wrapped at the screen edge. Also see the
  ``$markers variable.

IF this does not resolve your problem, I guess an upgrade is in order.
I would say that an upgrade *should* be made in any circumstance.

-- 
Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711
http://wahoo.no-ip.org Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://counter.li.org


Re: Searching imap folders

2008-06-13 Thread Vincent Beffara
Hi,

 I would like to find a way to search multiple folders on imaps from with
 Mutt.

 I tried getting mairix to work but it seems to want to only search local
 folders.

 Is there a another way to search imap folders that are only available
 remote?

One good way is to have a local copy of them, using a tool like
offlineimap, and then point mutt and mairix to the local maildir instead
of the imap server. Plus you get offline access to your e-mail as a
bonus!

  /v

-- 
Vincent Beffara
UMPA - ENS Lyon
46 Allée d'Italie
69364 LYON cedex 07
Tel: 04 72 72 85 25
Fax: 04 72 72 84 80


pgp5IHYb5hP5v.pgp
Description: PGP signature


Re: Searching imap folders

2008-06-13 Thread Joseph
On 06/13/08, Vincent Beffara wrote:
 Hi,
 
  I would like to find a way to search multiple folders on imaps from with
  Mutt.
 
  I tried getting mairix to work but it seems to want to only search local
  folders.
 
  Is there a another way to search imap folders that are only available
  remote?
 
 One good way is to have a local copy of them, using a tool like
 offlineimap, and then point mutt and mairix to the local maildir instead
 of the imap server. Plus you get offline access to your e-mail as a
 bonus!

Does offlineimap provide a stable setup when you have 100s of emails and
10s of folders?


-- 
respectfully,
 
|Joseph |
 




signature.asc
Description: Digital signature


Re: Searching imap folders

2008-06-13 Thread Marianne Promberger
On 06/13/08 10:29, Joseph wrote:

 Does offlineimap provide a stable setup when you have 100s of emails and
 10s of folders?

I've started using offlineimap a few months ago, and use it for two
different mail accounts and 17 different mailboxes. One of them is for
a mailing list that can easily receive 100 e-mails a day. Absolutely
no problem, offlineimap is great and v fast.

I actually started using it from the same situation that you are in,
having heard about mairix and realizing you can't use it over imap.
But now I'm delighted by the easy synchronization not just between
offline use and imap accounts, but also between different machines.

And needless to say, working with local folders is much faster than
working on the imap folders, at least for me.

m.


Re: Searching imap folders

2008-06-13 Thread Vincent Beffara
  One good way is to have a local copy of them, using a tool like
  offlineimap, and then point mutt and mairix to the local maildir instead
  of the imap server. Plus you get offline access to your e-mail as a
  bonus!

 Does offlineimap provide a stable setup when you have 100s of emails and
 10s of folders?

Yes, and it is extremely fast (I have about 12k messages totalling 500Mo
in about 30 mailboxes, and offlineimap keeps going just fine. One sync
with no new message takes about 3 to 5 seconds ...)

The only thing that it doesn't sync back to the imap server is the
creation of local mailboxes, everything else (moving e-mail, marking as
read/unread, deleting) is flawless.

  /v

PS: Well one caveat is if you are using darwin / mac os x, then there is
a nasty bug due to the system's implementation of realloc() that
interacts with python's socket library. It should be fixed by now - and
in any case, the worst that can happen is that offlineimap randomly
crashes on large e-mails, but it will not lose email in the process.

-- 
Vincent Beffara
UMPA - ENS Lyon
46 Allée d'Italie
69364 LYON cedex 07
Tel: 04 72 72 85 25
Fax: 04 72 72 84 80


pgpfOO4uDfLZl.pgp
Description: PGP signature


Searching imap folders

2008-06-12 Thread Joseph
I would like to find a way to search multiple folders on imaps from with
Mutt.

I tried getting mairix to work but it seems to want to only search local
folders.

Is there a another way to search imap folders that are only available
remote?


-- 
+ respectfully, Joseph =+


signature.asc
Description: Digital signature


searching in base64-encoded messages

2008-04-14 Thread Steve S
Hi all

Occasionally, I get mail where the content is base64 encoded

[...headers...]

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

[...more headers...]

SGkgR2HDq2wsCgpBY3R1YWxseSB3aGVuIHdvcmtpbmcgd2l0aCBncmFwaHMgSSBwcmVmZXJyZWQg
aWdyYXBoIG92ZXIgbmV0d29ya3g6Cmh0dHA6Ly9jbmV1cm9jdnMucm1raS5rZmtpLmh1L2lncmFw
aC8KCi1qZWxsZQoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f

The problem is that I can search the message body for some text only when I
view it in the pager since Mutt correctly decodes the content. But from the
message index a search ~b EXPR matches nothing b/c, I guess, Mutt does not
decode anything then.

Can I solve this from within Mutt, e.g. decode a message before a search, just
like it is done when viewing it?  I found nothing in the manual and also
http://wiki.mutt.org/?MuttFaq/Charset didn't help much.

If not, I have to decode the message content before Mutt reads it. Python and
Perl have facilities to do that, but I will need to parse the message and
fiddle out the encoded content (at least with the Python route, I played with
that a little). If possible, I would like to save this work if anybody knows if
there are tools which do that already ... ?  Of course the best would be if I
could solve it with some macros/hooks with Mutt since, apparently, Mutt can do
exactly that :)

Many thanks!

steve


Re: searching in base64-encoded messages

2008-04-14 Thread Steve S
On Apr 14 14:24, Angel Olivera wrote:
 On Mon 14.Apr.08 14:11, Steve S wrote:
 Occasionally, I get mail where the content is base64 encoded

 [...]

 The problem is that I can search the message body for some text only 
 when I view it in the pager since Mutt correctly decodes the content. 
 But from the message index a search ~b EXPR matches nothing b/c, I 
 guess, Mutt does not decode anything then.

 Can I solve this from within Mutt, e.g. decode a message before a  
 search, just like it is done when viewing it?  I found nothing in the  
 manual

 See $thorough_search.

Ah, that one was hiding. I looked for [_]*decode[_]*, not [_]*search[_]* in
the manual. I presumed that this is a frequent need and that there is a setting.
Exactly what I need - perfect. Thanks a lot!

steve


Re: searching in sent

2007-12-07 Thread Michael Tatge
* On Fri, Dec 07, 2007 Pau Amaro-Seoane ([EMAIL PROTECTED]) muttered:
 I have not found the way of modifying the To: thing. It must be
 related to $to_chars, but how? Thanks for your answer
 This is what I have:
 
 set index_format=%4C %Z %{%b %d} %-15.15L (%4c) %s

Change %-15.15L into %-15.15F

%F - author name, or recipient name if the message is from you
%L - If an address in the To or CC header field matches an address
 defined by the users ``subscribe'' command, this displays To
 list-name, otherwise the same as %F.


HTH,

Michael
-- 
Linux: the operating system with a CLUE... Command Line User Environment.
-- seen in a posting in comp.software.testing

PGP-Key-ID: 0xDC1A44DD
Jabber: [EMAIL PROTECTED]


Re: searching in sent

2007-12-07 Thread Pau Amaro-Seoane
This is what I have:

set index_format=%4C %Z %{%b %d} %-15.15L (%4c) %s

I have not found the way of modifying the To: thing. It must be
related to $to_chars, but how? Thanks for your answer

2007/12/6, Nicolas Rachinsky [EMAIL PROTECTED]:
 * Pau Amaro-Seoane [EMAIL PROTECTED] [2007-12-06 14:15 +0100]:
  and yet I would love to get rid of the To: thing... I don't have a
  From: in my inbox... it's a  word repeated unnecessary as many times
  as email I have sent... I know I have sent them, it's the SENT
  folder...

 Redefine $index_format in your sent folder.

 Nicolas
 --
 http://www.rachinsky.de/nicolas



Re: searching in sent

2007-12-07 Thread Pau Amaro-Seoane
I must be mentally retarded, but I tried that one and it didn't work
for me... I get always the To:... ??? Please corroborate mi IQ

2007/12/7, Michael Tatge [EMAIL PROTECTED]:
 * On Fri, Dec 07, 2007 Pau Amaro-Seoane ([EMAIL PROTECTED]) muttered:
  I have not found the way of modifying the To: thing. It must be
  related to $to_chars, but how? Thanks for your answer
  This is what I have:
 
  set index_format=%4C %Z %{%b %d} %-15.15L (%4c) %s

 Change %-15.15L into %-15.15F

 %F - author name, or recipient name if the message is from you
 %L - If an address in the To or CC header field matches an address
  defined by the users ``subscribe'' command, this displays To
  list-name, otherwise the same as %F.


 HTH,

 Michael
 --
 Linux: the operating system with a CLUE... Command Line User Environment.
 -- seen in a posting in comp.software.testing

 PGP-Key-ID: 0xDC1A44DD
 Jabber: [EMAIL PROTECTED]



Re: searching in sent

2007-12-07 Thread Nicolas Rachinsky
[Please do not top-post]

* Pau Amaro-Seoane [EMAIL PROTECTED] [2007-12-07 16:11 +0100]:
 I must be mentally retarded, but I tried that one and it didn't work
 for me... I get always the To:... ??? Please corroborate mi IQ

I just noted that I don't know a way to avoid the 'To '. I seem to
ignore it automatically. Sorry.

Nicolas

-- 
http://www.rachinsky.de/nicolas


Re: searching in sent

2007-12-06 Thread Pau Amaro-Seoane
Hi,

yes, absolutely; ~b stas does find stas

What I mean is that when I am in my inbox folder, I usually have to
look for an email from somebody; what I usually do is to look for that
somebody and then order the folder according to the sender, this way I
can quickly look for the email I was looking for.

Whilst in inbox this is as easy as / stas enter oo, in sent, when
I do / stas enter mutt doesn't find anything even if I have 250
emails from that person. Since the only obvious difference between
inbox and sent is that To: field, I thought this could be the
problem.

In any case, now I have set default_hook=(~f %s !~P) | (~P ~C %s) |
~s %s in my muttrc and still / stas does not yield any result. I
don't understand the ~s part of it, what's is it piping into?

Thanks,

Pau

PS: Of course, I can always do ~ b stas, but I like to understand what
the problem is

2007/12/5, Kyle Wheeler [EMAIL PROTECTED]:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On Wednesday, December  5 at 12:03 AM, quoth Nicolas Rachinsky:
 * Kyle Wheeler [EMAIL PROTECTED] [2007-12-04 16:39 -0600]:
  Searching in any index (sent, inbox, whatever) relies on the value of
  $default_hook, which defaults to ~f %s !~P | (~P ~C %s).
 
 I think you mean $simple_search with the default ~f %s | ~s %s.

 Right! Sorry, my mistake.

 ~Kyle
 - --
 He who dares not offend cannot be honest.
 -- Thomas Paine
 -BEGIN PGP SIGNATURE-
 Comment: Thank you for using encryption!

 iD8DBQFHVd9/BkIOoMqOI14RArtWAKDdpwuS+SEfC23WHf5NKMH1dgpJrwCgpaRG
 wssRcSWme4EGCEzHfBIrvso=
 =ojUG
 -END PGP SIGNATURE-



Re: searching in sent

2007-12-06 Thread Nicolas Rachinsky
[please do not top-post]

* Pau Amaro-Seoane [EMAIL PROTECTED] [2007-12-06 12:41 +0100]:
  I think you mean $simple_search with the default ~f %s | ~s %s.
 
  Right! Sorry, my mistake.

 In any case, now I have set default_hook=(~f %s !~P) | (~P ~C %s) |
 ~s %s in my muttrc and still / stas does not yield any result. I
 don't understand the ~s part of it, what's is it piping into?

Why did you set default_hook and not simple_search? This is mentioned
in the mail you are replying to.

Nicolas

-- 
http://www.rachinsky.de/nicolas


Re: searching in sent

2007-12-06 Thread Pau Amaro-Seoane
and yet I would love to get rid of the To: thing... I don't have a
From: in my inbox... it's a  word repeated unnecessary as many times
as email I have sent... I know I have sent them, it's the SENT
folder...

2007/12/6, Pau Amaro-Seoane [EMAIL PROTECTED]:
  Why did you set default_hook and not simple_search? This is mentioned
  in the mail you are replying to.
 
  Nicolas
 
  --
  http://www.rachinsky.de/nicolas


 because I am preparing a big move to another country and I didn't look
 carefully?

 my excuses, my fault

 thanks a lot

 Pau



Re: searching in sent

2007-12-06 Thread Pau Amaro-Seoane
 Why did you set default_hook and not simple_search? This is mentioned
 in the mail you are replying to.

 Nicolas

 --
 http://www.rachinsky.de/nicolas


because I am preparing a big move to another country and I didn't look
carefully?

my excuses, my fault

thanks a lot

Pau


Re: searching in sent

2007-12-06 Thread Nicolas Rachinsky
* Pau Amaro-Seoane [EMAIL PROTECTED] [2007-12-06 14:15 +0100]:
 and yet I would love to get rid of the To: thing... I don't have a
 From: in my inbox... it's a  word repeated unnecessary as many times
 as email I have sent... I know I have sent them, it's the SENT
 folder...

Redefine $index_format in your sent folder.

Nicolas
-- 
http://www.rachinsky.de/nicolas


searching in sent

2007-12-04 Thread Pau Amaro-Seoane
Hi,

/ is a wonderful tool to search for keywords in the inbox BUT not in
sent... because mutt adds automatically a To in the field, which
seems to spoil the search:

  24   F Dec 03 To Stas (  13) tomorrow
  25   F Dec 03 To Guste(   3) Re: nos vamos
  26   F Dec 03 To Stas (   8) Re: tomorrow
  27   F Dec 03 To Guste(  36) Re: nos vamos
  28   F Dec 03 To Stas (  24) Re: tomorrow

Is there a way to get rid of that To in the 5th column?

Pau


Re: searching in sent

2007-12-04 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tuesday, December  4 at 11:07 PM, quoth Pau Amaro-Seoane:
 / is a wonderful tool to search for keywords in the inbox BUT not 
 in sent... because mutt adds automatically a To in the field, 
 which seems to spoil the search:

  24   F Dec 03 To Stas (  13) tomorrow
  25   F Dec 03 To Guste(   3) Re: nos vamos
  26   F Dec 03 To Stas (   8) Re: tomorrow
  27   F Dec 03 To Guste(  36) Re: nos vamos
  28   F Dec 03 To Stas (  24) Re: tomorrow

 Is there a way to get rid of that To in the 5th column?

Generally speaking, no, there isn't. However, that's not what is 
breaking your search (trust me). Mutt does not search the text that is 
displayed; it searches the underlying details of the messages.

Searching in any index (sent, inbox, whatever) relies on the value of 
$default_hook, which defaults to ~f %s !~P | (~P ~C %s). All mutt 
searches rely on simple patterns, and default_hook is a good example 
of what can be done with simple patterns. What happens is that the 
string you're searching for gets substituted into $default_hook in 
place of the %s markers. Thus, if you searched for foo, that's 
equivalent to searching for ~f foo !~P | (~P ~C foo). Translated 
into English, that means: search for messages originating from foo 
but not from me (as defined by the alternates command) OR messages 
from me that are addressed to or CC'd to foo.

If you're having trouble searching in your sent folder, then my guess 
is that you haven't sufficiently informed mutt of your email addresses 
(using alternates).

Personally, I frequently prefer a $default_hook setting of:

 set default_hook=(~f %s !~P) | (~P ~C %s) | ~s %s

~Kyle
- -- 
Once a government is committed to the principle of silencing the voice 
of opposition, it has only one way to go, and that is down the path of 
increasingly repressive measures, until it becomes a source of terror 
to all its citizens and creates a country where everyone lives in 
fear.
-- Harry Truman
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iD8DBQFHVdcQBkIOoMqOI14RAhn/AKD4mAFUsWmUZrsT2u1hEML07zpD8wCgn9Uk
KFq28YWuc6esumuZ1hujNAs=
=xRnZ
-END PGP SIGNATURE-


Re: searching in sent

2007-12-04 Thread Gary Johnson
On 2007-12-04, Pau Amaro-Seoane [EMAIL PROTECTED] wrote:
 Hi,
 
 / is a wonderful tool to search for keywords in the inbox BUT not in
 sent... because mutt adds automatically a To in the field, which
 seems to spoil the search:
 
   24   F Dec 03 To Stas (  13) tomorrow
   25   F Dec 03 To Guste(   3) Re: nos vamos
   26   F Dec 03 To Stas (   8) Re: tomorrow
   27   F Dec 03 To Guste(  36) Re: nos vamos
   28   F Dec 03 To Stas (  24) Re: tomorrow
 
 Is there a way to get rid of that To in the 5th column?

You can change the way those lines in the index are formatted by 
setting your 'index_format' differently for your sent folder with a 
folder-hook.  See the manual.

But what makes you think that those To's are spoiling your search?  
/ does not search the text of the display--it searches attributes of 
the messages.  By default, mutt expands the / command according to 
the 'simple_search' configuration variable to search the From and 
Subject fields.  If you want to search for a particular recipient, 
then specify ~t in the search pattern, like this:

   Search for: ~t stas

That's in the mutt manual, too, under Patterns.

HTH,
Gary



Re: searching in sent

2007-12-04 Thread Nicolas Rachinsky
* Kyle Wheeler [EMAIL PROTECTED] [2007-12-04 16:39 -0600]:
 Searching in any index (sent, inbox, whatever) relies on the value of 
 $default_hook, which defaults to ~f %s !~P | (~P ~C %s).

I think you mean $simple_search with the default ~f %s | ~s %s.

Nicolas

-- 
http://www.rachinsky.de/nicolas


Re: searching in sent

2007-12-04 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday, December  5 at 12:03 AM, quoth Nicolas Rachinsky:
* Kyle Wheeler [EMAIL PROTECTED] [2007-12-04 16:39 -0600]:
 Searching in any index (sent, inbox, whatever) relies on the value of 
 $default_hook, which defaults to ~f %s !~P | (~P ~C %s).

I think you mean $simple_search with the default ~f %s | ~s %s.

Right! Sorry, my mistake.

~Kyle
- -- 
He who dares not offend cannot be honest.
-- Thomas Paine
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iD8DBQFHVd9/BkIOoMqOI14RArtWAKDdpwuS+SEfC23WHf5NKMH1dgpJrwCgpaRG
wssRcSWme4EGCEzHfBIrvso=
=ojUG
-END PGP SIGNATURE-


searching

2002-09-17 Thread MindFuq

I'm thinking about switching to mutt.  

Major deterrant: the crappy search functionality.  

When my index is displayed and I press / to do a search, it only searches 
the screen.  If I want to search message bodies, it seems I have to open each 
message and do the search;  not practical if I have a mailbox containing over 
a hundred messages.  Am I missing something?



Re: searching

2002-09-17 Thread Ken Weingold

On Tue, Sep 17, 2002, MindFuq wrote:
 I'm thinking about switching to mutt.  
 
 Major deterrant: the crappy search functionality.  
 
 When my index is displayed and I press / to do a search, it only searches 
 the screen.  If I want to search message bodies, it seems I have to open each 
 message and do the search;  not practical if I have a mailbox containing over 
 a hundred messages.  Am I missing something?

You are missing a HUGE something.  Look at
http://www.mutt.org/doc/manual/manual-4.html#ss4.2 for all your
search options.


-Ken






OT: grepm and mbox indexing (was: Re: searching across mailboxes)

2002-02-26 Thread Gregor Zattler

Hi,
* Knute [EMAIL PROTECTED] [Fre 22 Feb 2002 13:00:00 GMT]:
 On Fri, 22 Feb 2002, Thomas Baker wrote:
  On Fri, 22 Feb 2002, Adam Byrtek wrote:
   On Fri, Feb 22, 2002 at 09:43:42AM -0800, Carl B. Constantine wrote:
Is there a way in mutt to search across all my local mailboxes for a
message that is from a specific person and then display the list of
matches so I can go through and look for the message I want?
   
   You should try grepm at
   http://www.barsnick.net/sw/grepm.html
 
[...]
 grepm is a wrapper for grepmail.
 It works well, but grepm only searches one mailbox for matches.

No. grepm hands all options to grepmail and therefor is abel to
scan multiple mboxes or whole directory structures:

 Grepmail -- according to the manpage has the option for recursion
 though.
 
 When I've used grepm,  it works great, and is easier to find matches
 than searching thru the index to find it.

Yes, ist's great. Does anybody knows a mbox full text indexing
and searching package?


Ciao, Gregor



searching across mailboxes

2002-02-22 Thread Carl B. Constantine

Is there a way in mutt to search across all my local mailboxes for a
message that is from a specific person and then display the list of
matches so I can go through and look for the message I want?

Thanks.

-- 
Carl B. Constantine University of Victoria
Programmer Analyst  http://www.uvic.ca
UNIX System Administrator   Victoria, BC, Canada
[EMAIL PROTECTED]



Re: searching across mailboxes

2002-02-22 Thread Adam Byrtek

On Fri, Feb 22, 2002 at 09:43:42AM -0800, Carl B. Constantine wrote:
 Is there a way in mutt to search across all my local mailboxes for a
 message that is from a specific person and then display the list of
 matches so I can go through and look for the message I want?

You should try grepm at
http://www.barsnick.net/sw/grepm.html

-- 

  _.|._ |_  _.: Adam Byrtek, [EMAIL PROTECTED]
 (_|||_)| |(_|: gg 1802819, pgp 0xB25952C0
 |



Re: searching across mailboxes

2002-02-22 Thread Thomas Baker

On Fri, 22 Feb 2002, Adam Byrtek wrote:
 Date: Fri, 22 Feb 2002 18:56:20 +0100
 From: Adam Byrtek [EMAIL PROTECTED]
 Reply-To: Adam Byrtek [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: searching across mailboxes
 
 On Fri, Feb 22, 2002 at 09:43:42AM -0800, Carl B. Constantine wrote:
  Is there a way in mutt to search across all my local mailboxes for a
  message that is from a specific person and then display the list of
  matches so I can go through and look for the message I want?
 
 You should try grepm at
 http://www.barsnick.net/sw/grepm.html

I understand grepmail (http://sourceforge.net/projects/grepmail) does
something like this, but I haven't tried it myself (and am curious).

Tom

___
Dr. Thomas Baker [EMAIL PROTECTED]
Birlinghoven Library, Fraunhofer-Gesellschaft
Institutszentrum Schloss Birlinghoven  +49-2241-14-2352
53754 Sankt Augustin, Germany  fax +49-2241-14-2619

Home: Stubenrauchstr. 64   home-office +49-30-8109-9027
  14167 Berlin, Germany mobile +49-171-408-5784





Re: searching across mailboxes

2002-02-22 Thread John Buttery

On Fri, Feb 22, 2002 at 07:41:21PM +0100, Thomas Baker wrote:
On Fri, 22 Feb 2002, Adam Byrtek wrote:
 Date: Fri, 22 Feb 2002 18:56:20 +0100
 From: Adam Byrtek [EMAIL PROTECTED]
 Reply-To: Adam Byrtek [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: searching across mailboxes
 
 On Fri, Feb 22, 2002 at 09:43:42AM -0800, Carl B. Constantine wrote:
  Is there a way in mutt to search across all my local mailboxes for a
  message that is from a specific person and then display the list of
  matches so I can go through and look for the message I want?
 
 You should try grepm at
 http://www.barsnick.net/sw/grepm.html

I understand grepmail (http://sourceforge.net/projects/grepmail) does
something like this, but I haven't tried it myself (and am curious).

Tom

  grepmail's a great little app.  Basically what it does is, it works
like grep except it expects the file it's searching to be a 
From -delimited mbox file.  For each match it finds, it outputs the
entire message containing that line.  The output (which is normally
spit to stdout) can be redirected to a file to create a new mbox file
if desired.

-- 

 John Buttery
 (Web page temporarily unavailable)




msg24689/pgp0.pgp
Description: PGP signature


Re: searching across mailboxes

2002-02-22 Thread Knute

On Fri, 22 Feb 2002, Thomas Baker wrote:

 On Fri, 22 Feb 2002, Adam Byrtek wrote:
  Date: Fri, 22 Feb 2002 18:56:20 +0100
  From: Adam Byrtek [EMAIL PROTECTED]
  Reply-To: Adam Byrtek [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: searching across mailboxes

Well that was fun.  Made me wonder what I broke in mutt! :)
hehehe...
  
  On Fri, Feb 22, 2002 at 09:43:42AM -0800, Carl B. Constantine wrote:
   Is there a way in mutt to search across all my local mailboxes for a
   message that is from a specific person and then display the list of
   matches so I can go through and look for the message I want?
  
  You should try grepm at
  http://www.barsnick.net/sw/grepm.html

 I understand grepmail (http://sourceforge.net/projects/grepmail) does
 something like this, but I haven't tried it myself (and am curious).

grepm is a wrapper for grepmail.
It works well, but grepm only searches one mailbox for matches.
Grepmail -- according to the manpage has the option for recursion
though.

When I've used grepm,  it works great, and is easier to find matches
than searching thru the index to find it.

-- 
Knute

You live, You die.  Enjoy the interval!
-- Clarence



msg24690/pgp0.pgp
Description: PGP signature


Header cache patch and searching through multiple mailboxes

2002-01-27 Thread Bruno Postle

[ Dire-Warning: this is a proof of concept script, it works for me on my
system.  Other than that I can't say, except that it requires a
development version of mutt and a patch that is labelled by it's author
as broken... ]

I have about 50,000 messages in a couple of dozen nfs mounted Maildirs
(all the old stuff is in mbox archives) - Searching all this mail is a
big drag, since mutt can't 'limit' across multiple mailboxes and
grepping through all this junk can take hours.

Michael Elkins' header cache patch is an experiment in speeding up
access to Maildirs by scattering db files everywhere - I have the idea
that eventually these db files can speed-up searching as well.

This script can search those 50,000 email headers and populate a
temporary results folder containing 3,000 messages in about 40 seconds.
It's an *extremely* blunt instrument, but I hope it will inspire
somebody else to write something a bit more elegant and precise.

It can be called with a macro, though you have to switch to the
'=search-results' folder to see the results:

macro index \cL shell-escape'search-maildir.pl '

It takes a single perl-regex argument, which it matches against
everything, sort-of like these:

[EMAIL PROTECTED]

'(Newbie Question|unsubscribe|@yahoo.com|@hotmail.com|BIG5)'

-- 
Bruno


#!/usr/bin/perl
use strict;
use Fcntl;
use DB_File;
use File::Find;

# This script requires the mutt header caching patch from
# http://www.sigpipe.org:8080/mutt/ NOTE: currently this patch is declared
# broken, so this will probably delete all your files, drink your beer and eat
# your cat.  Bruno Postle [EMAIL PROTECTED]

# Change these and make sure $resultdir exists as a Maildir, NOTE: this script
# will *delete* all existing files in $resultdir
my $mailfolder = /home/bruno/Mail;
my $resultdir = $mailfolder/search-results;

my $pattern = $ARGV[0];
my ( %hash, @folders );

unlink $resultdir/cur/*;

find ( { wanted = \maildirs }, $mailfolder );

sub maildirs
{
return unless /hcache\.db/;
return if ( $File::Find::name =~ /$resultdir/ );
my $maildir = $File::Find::name;
$maildir =~ s/\/hcache\.db//;
push @folders, $maildir;
}

foreach ( @folders )
{
my $x = tie %hash, DB_File, $_/hcache.db
or die Cannot open $_/hcache.db: $!\n;
find ( { wanted = \messages }, $_ );
undef $x;
untie %hash;
}

sub messages
{
 return unless /:/;
 my $uid = $File::Find::name;
 $uid =~ s/.*\/([^\/]*):.*/${1}/;
 if ( $hash{$uid} =~ /$pattern/i )
 {
 link ( $File::Find::name, $resultdir/cur/$uid:2,S );
 }
}

1;





target line for searching in builtin pager

2002-01-09 Thread Hanspeter Roth

By default the matched line is just glued at the top.
Is there something like a target line for the search function in the
builtin pager? (Something like -j for `less'?)

-Hanspeter



Re: Searching through headers? (Message-ID)

2002-01-06 Thread Im Eunjea

* Carlos Laviola [EMAIL PROTECTED] [2002-01-06 15:04]:
 Hello,
 
 I'd like to search for a header, specifically, the Message-ID header,
 but haven't found a way to do that in Mutt yet.  Do you know how?
 
 Thanks,
 Carlos.
 

http://mutt.org/doc/manual/manual-4.html#ss4.2

~h EXPR messages which contain EXPR in the message header
~i ID   message which match ID in the ``Message-ID'' field


-- 
Eunjea [EMAIL PROTECTED]
http://kldp.org/~eunjea/
GnuPG fingerprint: 08C9 2D3F 91B2 D395 2EFF  4C33 544C 321C E194 91CF



msg22401/pgp0.pgp
Description: PGP signature


Re: process substitution (was: Re: Searching big gobs of e-mail)

2002-01-01 Thread Peter Poeml

On Mon, Dec 17, 2001 at 07:12:32PM +0100, Gregor Zattler wrote:
 Hi Peter,

Hi Gregor, 

 hi mutt users,
[...]
 mutt -f (grepmail -h cco@ *)
 
 i see mutt reading messages from /dev/fd/63, a few messages from
 grepmaiol and then: 
 
 the mutt index which first looks fine but when I hit enter to read a
 message the pager was empty...

Sorry, I seem to have properly tested it with zsh only. I assumed that
bash does it the same way (create a temp file), and changed the =(
syntax to ( for my posting.

Thanks Christian and Vineet for the recherche.

Peter

-- 
VFS: Busy inodes after unmount. Self-destruct in 5 seconds.  Have a nice day...



Searching thru message headers?

2001-12-29 Thread Carlos Laviola

I know I can search thru message bodies, but how do I search thru
their headers?

Thanks,
Carlos.

-- 
 _ _  _| _  _  | _   . _ | _   to hell with icq, use jabber!
(_(_|| |(_)_)  |(_|\/|(_)|(_|  THIS SPACE INTENTIONALLY LEFT BLANK?



Re: Searching thru message headers?

2001-12-29 Thread bsmith


msg.pgp
Description: PGP message


Re: Searching thru message headers?

2001-12-29 Thread René Clerc

* [EMAIL PROTECTED] [EMAIL PROTECTED] 
[29-12-2001 15:01]:

| On Fri, Dec 28, 2001 at 08:20:30PM -0200, Carlos Laviola wrote:
|  I know I can search thru message bodies, but how do I search thru
|  their headers?

| From the manual:
|   4.2.  Patterns
|  ...
|   ~h EXPR messages which contain EXPR in the message header
|  ...
| 
| So type /~hheader(s) to search for

Probably superfluous, but the combination of body and headers is ~B.

Wanted to share it, because this is the one I use most often...

-- 
René Clerc  - ([EMAIL PROTECTED])

I base my fashion taste on what doesn't itch.
-Gilda Radner



msg22002/pgp0.pgp
Description: PGP signature


Re: process substitution (was: Re: Searching big gobs of e-mail)

2001-12-19 Thread Vineet Kumar

* Gregor Zattler ([EMAIL PROTECTED]) [011218 03:44]:
 Hi Peter,
 hi mutt users,
 * Peter Poeml [EMAIL PROTECTED] [Mon 10 Dez 2001 20:04:17 GMT]:
 [...]
  As mentioned before, grepmail can jump in because mutt works on single
  mail boxes. Now I was curious and figured out the command for your real
  example:
  
  mutt -f (grepmail -huqd between 2001-09-01 and 2001-10-01 \
  ^From.*frob@(foo|bar).net mbox1 mbox2 mbox3)
 
 This seems cool but when i gave it a (much more simppler) try:
 
 mutt -f (grepmail -h cco@ *)
 
 i see mutt reading messages from /dev/fd/63, a few messages from
 grepmaiol and then: 
 
 the mutt index which first looks fine but when I hit enter to read a
 message the pager was empty...
 
 also 
 
 ae (ls)
 emacs (ls)
 jed (ls)
 
 did not work.
 
 
 Any hints?

Well, it won't help the bash-users out there, but anyone willing to give
zsh a try will benefit from this excerpt from the Process substitution
of the zshexpn manpage:

   Both  the  /dev/fd  and the named pipe implementation have
   drawbacks.  In the former case, some programmes may automatically
   close the file descriptor in question before examining the file
   on the  command line, particularly if this is necessary for
   security reasons such as when the pro­ gramme is running setuid.
   In the second case, if the programme  does  not  actually  open
   the file,  the subshell attempting to read from or write to the
   pipe will (in a typical implementa­ tion, different operating
   systems may have different behaviour) block for ever and have  to
   be killed explicitly.  In both cases, the shell actually supplies
   the information using a pipe, so that programmes that expect to
   lseek (see lseek(2)) on the file will not work.

...

   If = is used, then the file passed as an argument will be the
   name of a temporary file contain­ ing  the output of the list
   process.  This may be used instead of the  form for a program
   that expects to lseek (see lseek(2)) on the input file.

So this works for me:

mutt -f =(mboxgrep -mmaildir '^From:.*callahan@homicide\.SFPD\.gov' $MAIL)

mboxgrep even adds the wicked ^From_  lines!


Really, though, zsh effectively does the same thing as what grepm does,
with the temp file.

Vineet

-- 
Satan laughs when  #  I disapprove of what you say, but I will
we kill each other.#   defend to the death your right to say it.
Peace is the only way. #  --Beatrice Hall, The Friends of Voltaire, 1906




msg21763/pgp0.pgp
Description: PGP signature


process substitution (was: Re: Searching big gobs of e-mail)

2001-12-18 Thread Gregor Zattler

Hi Peter,
hi mutt users,
* Peter Poeml [EMAIL PROTECTED] [Mon 10 Dez 2001 20:04:17 GMT]:
[...]
 As mentioned before, grepmail can jump in because mutt works on single
 mail boxes. Now I was curious and figured out the command for your real
 example:
 
 mutt -f (grepmail -huqd between 2001-09-01 and 2001-10-01 \
   ^From.*frob@(foo|bar).net mbox1 mbox2 mbox3)

This seems cool but when i gave it a (much more simppler) try:

mutt -f (grepmail -h cco@ *)

i see mutt reading messages from /dev/fd/63, a few messages from
grepmaiol and then: 

the mutt index which first looks fine but when I hit enter to read a
message the pager was empty...

also 

ae (ls)
emacs (ls)
jed (ls)

did not work.


Any hints?


Ciao, Gregor

P.S.: The problem the thread was involved with (searching on multiple
mailboxes) can be easily solved with a shell script called grepm. It
simply redirects grepmails output in a temorary file, starts mutt with
this and deletes the temorary file when mutt is exited.








Re: process substitution (was: Re: Searching big gobs of e-mail)

2001-12-18 Thread Cristian

Hello searchers in Mutt,

On Mon, Dec 17, 2001 at 07:12:32PM +0100, Gregor Zattler wrote:
 mutt -f (grepmail -h cco@ *)
 
 i see mutt reading messages from /dev/fd/63, a few messages from
 grepmaiol and then: 
 
 the mutt index which first looks fine but when I hit enter to read a
 message the pager was empty...

Oops. I get the same result. Thinking about it, this is not
surprising.  The process substitution construct creates a pipe to
avoid temporary files.  If you want to access a message listed in the
index, you need random access to the mail box, which is something a
pipe does not give you.

So it's better to say something like eg,
grepmail -hm cco@ *  /tmp/grpfldr ; mutt -f /tmp/grpfldr ; rm /tmp/grpfldr

And this is just what grepm does.  People not using mbox format will
have to use mboxgrep (mentioned earlier in this thread).

 ae (ls)
 emacs (ls)
 jed (ls)

Emacs cannot read from a pipe (at least not from the command line).

By the way: The pro searcher will create an index (in the sense of a
hash table) for his mail -- like real search engines and databases do.
Now I remember a tool called ``Managing Gigabytes'' which is often
used for searching in really big gobs of mail.  You can find it there:
http://www.cs.mu.oz.au/mg/

Cheers,
Cristian


-- 

}{  Cristian Pietsch
}{  http://www.interling.de



msg21713/pgp0.pgp
Description: PGP signature


  1   2   >