Sat, 23 Dec 2006

mairix


mairix -p -v -a -t	// -p purges empty holes left by deletions
			// -v verbose during indexing
			// -a augment the vfolder rather than write-over
			// -t return the entire thread in a successful search

mairix 	t:pointer	// To: header
	c:pointer	// Cc: header
	a:pointer	// To:, Cc: or From: headers
	f:pointer	// From: header
	s:pointer	// Subject header
	s:pointer=2	// allow up to 2 errors in subject keyword
	b:pointer	// message body
	d:3m-1m		// msgs between 3 mths and 1 mth ago
	d:-2y		// msgs older than 2 yrs
	d:2w-		// msgs within last 2 wks
	z:1m-		// msgs larger than 1 megabyte
	z:10k-20k	// msgs between 10k and 20k bytes
	p:/archive/	// msgs with /archive/ in their path

Example:	assume e-mail address richard@doesnt.exist

mairix d:3m- f:richard+doesnt+exist s:chrony

	// matches all msgs newer than 3 mths from richard and word chrony in 
	// the subject line

mairix d:6m- f:richard s:chrony=2

	// matches a wider range in the e-mail address, newer than 6 mths,
	// and allows up to 2 errors in the keyword in subject search

In Mutt, access mairix as follows:

	!		// open shell
	mairix f:kevin	// enter search criteria
	c=vfolder	// change folder to see results in vfolder

Make sure you run mairix -tp occasionally to update the DB.

Files:  ~/.mairixrc
	/usr/share/doc/mairix/mairix.html

Posted at: 17:59 | category: /mail | Comments ()