Stephen Eglen | 1 Feb 2011 13:29
Picon
Picon
Favicon

Re: searching for all messages in a thread

Dear all,

thanks for the helpful replies; I hadn't seen '/ s' before, that could
be useful in some cases.  Although right now what I tend to do is have
all my mail going in one large folder, so I rarely want to visit all of
that folder and then narrow down with / s.

Bill Wohler <wohler <at> newt.com> wrote:

> Yes, thanks for the reminder. I'd have to double-check to remind myself,
> but I believe that `/ s' is limited to the messages in the current view,

Yes, '/ s' narrows from the current view, so unless you already have the
whole folder visible, you won't get all the matches from one folder.

I'll investigate further and report back.

Stephen

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
Stephen Eglen | 1 Feb 2011 13:33
Picon
Picon
Favicon

Re: searching for all messages in a thread

> Me neither but it sounds promising. I've been meaning to ask the list
> about searching too, as I can't seem to find a good method. I'm
> currently using mairix which works OK but I'm unable to search for
> words containing accented characters (being Swedish, this is a big
> problem for me). Is there a way to encode the search string in a way
> that it finds messages with the string 'Malmö' for example? I've been
> trying swish and namazu and I think it was namazu that could handle
> accented characters, but it had some other limitations that made me
> give it up (can't quite remember 

hi Henrik,

On this page
http://upsilon.cc/~zack/blog/posts/2009/10/mail_indexing_for_mutt/

other users (e.g. on Sun 01 Nov 2009) commented the same problem about
mairix not coping with accented chars.  notmuch might be better in this
respect.

Stephen

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
mh-e-users mailing list
mh-e-users <at> lists.sourceforge.net
(Continue reading)

Henrik Frisk | 2 Feb 2011 22:59
Picon
Picon

Re: searching for all messages in a thread

Stephen Eglen <S.J.Eglen <at> damtp.cam.ac.uk> wrote:

> > Me neither but it sounds promising. I've been meaning to ask the list
> > about searching too, as I can't seem to find a good method. I'm
> > currently using mairix which works OK but I'm unable to search for
> > words containing accented characters (being Swedish, this is a big
> > problem for me). Is there a way to encode the search string in a way
> > that it finds messages with the string 'Malmö' for example? I've been
> > trying swish and namazu and I think it was namazu that could handle
> > accented characters, but it had some other limitations that made me
> > give it up (can't quite remember 
> 
> hi Henrik,
> 
> On this page
> http://upsilon.cc/~zack/blog/posts/2009/10/mail_indexing_for_mutt/
> 
> other users (e.g. on Sun 01 Nov 2009) commented the same problem about
> mairix not coping with accented chars.  notmuch might be better in this
> respect.
> 
Thanks for the info. Yes, I think I will give notmuch a try. If I do, I promise to report back!

/Henrik

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
(Continue reading)

Stephen Eglen | 3 Feb 2011 15:16
Picon
Picon
Favicon

Re: searching for all messages in a thread

I think I've made some progress on my query.  mairix has a -t switch:

"As well as returning the matched messages, also return every message in
the same thread as one of the real matches." (from  mairix man page)

So, if I have one message inn a thread, referenced by its Message-Id,
then I can now get a list of all files inthat thread, if indexed by
Mairix.  Here's some elisp as proof-of-concept:

(defun check-msg-id (id) 
  ;;(shell-command 
  (setq id2 (concat "echo "  id 
		    "| sed -e 's/[~,/=^]\+/=,/g' "
		    "-e 's/.\{31\}/&=,/g' -e 's/^\(=,\)\+//g' -e 's/$/=/' "
		    "-e 's/\(=,\|=\)\+$/=/g'"))
  (setq id2a (shell-command-to-string id2))
  (shell-command (concat "mairix -t -r m:" id2a))
)

This command (using the Message-ID from Bill's recent message).  You'll
see the Message-ID needs quote escaping, as described in this Dec 2010
message (mairix has since been patched in line with this change):
http://www.mail-archive.com/mairix-users <at> lists.sourceforge.net/msg00142.html

(check-msg-id "17459.1296423658 <at> olgas.newt.com")

then generates as output:

/home/stephen/MAIL/mh/archive-2010-06-01/7612
/home/stephen/MAIL/mh/archive-2010-06-01/7625
(Continue reading)

Bill Wohler | 3 Feb 2011 17:31
Picon
Picon
Gravatar

Re: searching for all messages in a thread

Stephen Eglen <S.J.Eglen <at> damtp.cam.ac.uk> wrote:

> I think I've made some progress on my query.  mairix has a -t switch:
> ...
> Now, how do I get these search results integrated back into MH-E?  ANy
> hints on where to start looking in the code.

Nice. Check out mh-mairix-execute-search in mh-search.el. You can either
create a variant of that, or put the command-line arguments into a
variable and add -t to it in the scope of your command. Hmmm, wonder if
we should create mh-<search-command>-arguments variables?

I'd also look into the mairix configuration file. There might be a way
of turning on the -t option within the config file as well.

--

-- 
Bill Wohler <wohler <at> newt.com> aka <Bill.Wohler <at> nasa.gov>
http://www.newt.com/wohler/
GnuPG ID:610BD9AD

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
Jay Vosburgh | 4 Feb 2011 01:25
Picon
Favicon

Different highlighting for unseen in folder view?


	Normally, unseen messages in the folder view are bolded.  I've
just starting trying out threading, and the bold isn't sufficiently
different for me to easily pick them out (since new messages tend to pop
in all over).

	Is there a way to modify the unseen messages to something other
than bold?

	I don't see anything in the customization, although I did find
that mh-generate-sequence-font-lock is used to create the bold rule in
the first place.  An additional call doesn't seem to work, e.g.,

(mh-generate-sequence-font-lock mh-unseen-seq unseen blue)

	adds a second mh-folder-font-lock-unseen item to
mh-folder-font-lock-keywords; I'm guessing that just the first one is
processed.

	Any suggestions?  I could hack up the mh-e source code, but I'd
rather save that for a last resort.

	-J

---
	-Jay Vosburgh, IBM Linux Technology Center, fubar <at> us.ibm.com

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
(Continue reading)

Bill Wohler | 4 Feb 2011 07:06
Picon
Picon
Gravatar

Re: Different highlighting for unseen in folder view?

Jay Vosburgh <fubar <at> us.ibm.com> wrote:

> 	Normally, unseen messages in the folder view are bolded.  I've
> just starting trying out threading, and the bold isn't sufficiently
> different for me to easily pick them out (since new messages tend to pop
> in all over).
> 
> 	Is there a way to modify the unseen messages to something other
> than bold?

Hi Jay,

I would have expected to find an appropriate face in M-x customize-group
RET mh-faces RET which you could have easily modified to your heart's
content, but I did not find it.

It does seem like the line in mh-folder.el that said:

  (mh-generate-sequence-font-lock mh-unseen-seq unseen bold)

should have said:

  (mh-generate-sequence-font-lock mh-unseen-seq unseen mh-folder-unseen)

> 	I don't see anything in the customization, although I did find
> that mh-generate-sequence-font-lock is used to create the bold rule in
> the first place.  An additional call doesn't seem to work, e.g.,
> 
> (mh-generate-sequence-font-lock mh-unseen-seq unseen blue)
> 
(Continue reading)

Kevin Layer | 11 Feb 2011 00:30
Picon
Favicon

how to move a message to the end of the folder?

That is, I want it to be the highest numbered message in the folder.

I realize this is more of an nmh question, but anyone know how to do
this (safely)?

Thanks.

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
Aleksander Matuszak | 11 Feb 2011 01:15
Picon
Picon
Favicon

Re: how to move a message to the end of the folder?


Kevin Layer writes:

> That is, I want it to be the highest numbered message in the folder.
> 
> I realize this is more of an nmh question, but anyone know how to do
> this (safely)?

By the nmh command, use real message number or cur instead
of first and your folder name instead of deleted, (but test
on deleted is very safe =:-)).

refile first -nolink -src +deleted +deleted

By shell command, again use real message instead of first, 
this operate on current folder, note backquotes.

mv `mhpath first` `mhpath new`

   max

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
layer | 11 Feb 2011 01:21
Favicon

Re: how to move a message to the end of the folder?

Aleksander Matuszak <max <at> l5.pk.edu.pl> wrote:

>> 
>> Kevin Layer writes:
>> 
>> > That is, I want it to be the highest numbered message in the folder.
>> > 
>> > I realize this is more of an nmh question, but anyone know how to do
>> > this (safely)?
>> 
>> By the nmh command, use real message number or cur instead
>> of first and your folder name instead of deleted, (but test
>> on deleted is very safe =:-)).
>> 
>> refile first -nolink -src +deleted +deleted

Nice.  The only downside to this, it doesn't update the
.mh_sequences.  Almost perfect, but I can probably hack this in elisp.

Thanks.

>> 
>> By shell command, again use real message instead of first, 
>> this operate on current folder, note backquotes.
>> 
>> mv `mhpath first` `mhpath new`

Wow, didn't know about "mhpath new".  Cool.

Thanks, again.
(Continue reading)


Gmane