Changes between Version 2 and Version 3 of QueryCommand


Ignore:
Timestamp:
Oct 27, 2013 6:54:26 PM (4 years ago)
Author:
MichaelRay
Comment:

minor fixes

Legend:

Unmodified
Added
Removed
Modified
  • QueryCommand

    v2 v3  
    22mutt's internal alias management?
    33
    4 By setting <tt>$query_command</tt> in
     4By setting '''$query_command''' in
    55your .[[ConfigList|muttrc]] you can tell mutt to use an external
    66program for looking up addresses when invoking the "Query" command
    7 (hit '?' for mutt-keybinding). <tt>query_command</tt> is used as
     7(hit '?' for mutt-keybinding). '''query_command''' is used as
    88well for address completion in any prompt for address entry,
    99default by hitting ^T.
     
    1111=== Selecting multiple lines in query menu ===
    1212
    13 The query command can return multiple addresses. If you want to select multiple addresses it does not work if you tag them with   't' and then hit <tt>return</tt>. What works for me is pressing <tt>;-m</tt>.
    14 
     13The query command can return multiple addresses. If you want to select multiple addresses it does not work if you tag them with   't' and then hit '''return'''. What works for me is pressing ''';-m'''.
    1514
    1615=== Different tools for queries ===
     
    2928
    3029 * http://shove-it.de/open/jcm/muttquery.py --
    31   * I searched the web to find a query program to query the kde-addressbook. I use kaddressbook because it eases the use of my palm. This script just reads the std.vcf file. No need of addressbook-conversion. Please write here any improvement wishes. It is not testet well til now, just wrote it and it seems to work anyhow.
     30  * I searched the web to find a query program to query the kde-addressbook. I use kaddressbook because its doesn't give me carpal tunnel. This script just reads the std.vcf file. No need for an addressbook-conversion. Please write any improvement requests here.
    3231
    3332 * QueryCommand/MuttLdapSearch -- Search LDAP directory using only ldapsearch and SH commands.
     
    3534
    3635 * http://gromnizki.unixdev.net/etc/mutt_openldap.tcl -- \
    37   Yet another way to search LDAP directory. Requires <b>Tcl</b> http://tcl.tk \
    38   and <b>ldapsearch</b> http://openldap.org. Some script advantages:
     36  Yet another way to search LDAP directory. Requires '''Tcl''' http://tcl.tk \
     37  and '''ldapsearch''' http://openldap.org. Some script advantages:
    3938  * UTF-8 support.
    40   * Easy search mode (automatically match <i>mail</i>, <i>cn</i>, \
    41    <i>sn</i> and <i>givenName</i> attributes).
     39  * Easy search mode (automatically match '''mail''', '''cn''', \
     40   '''sn''' and '''givenName''' attributes).
    4241  * Automatically recognizes LDAP search filter mode (i.e. write \
    4342   something like "(cn=john*)" (with double quotes!) to use it).
    44   * Display attributes (except <i>mail</i> and <i>cn</i>) in user order.
     43  * Display attributes (except '''mail''' and '''cn''') in user order.
    4544  * Size limit support.
    4645
    4746 * QueryCommand/EvolutionSearch -- Search the Ximian Evolution 2 address book.
    48   * Use this if you want a query_command for searching your Evolution address book. It has not been extensively tested but is simple and should be easy to customise.
     47  * Use this if you want a query_command for searching your Evolution address book. It has not been extensively tested but is simple and should be easy to customize.
    4948
    5049 * Gmail contact search
     
    5352  * [http://git.chizang.net/?p=mutt_gmail_search.git;a=tree mutt_gmail_search.py] - alex@chizang.net
    5453
    55 
    5654 * http://harward.us/~nharward/mabs.zip -- Mac Address Book Search (universal binary).  The source code needs a few enhancements for non-mutt users as a general utility and then will be published.
    5755
     
    5957  * This program's sole function is to perform lookups in the MacOS X Address Book and feed the results to the terminal in a format that Mutt can understand for e-mail address queries and e-mail address completion.
    6058
    61 
    6259=== Using Multiple Query Tools ===
    6360
    6461The above tools are great if all your addresses are in one place, but what if you've got multiple sources to search? (My need for a solution for this came from having to search the corporate LDAP directory and abook's records.)
    6562
    66 Fortunately, many *nix distributions (Debian, Redhat both confirmed) come with the perfect tool for combining these resources.  Additionally, this method can be used with the majority of the tools listed above and with most stand-alone scripts written for mutt on the interwubs:
     63Fortunately, many *nix distributions (Debian, Redhat both confirmed) come with the perfect tool for combining these resources.  Additionally, this method can be used with the majority of the tools listed above and with most stand-alone scripts written for mutt on the internet:
    6764{{{
    6865user@myhost:~/.mutt/address-providers$ pwd
     
    7572#!/bin/bash
    7673echo "hello@hello.com  buuuuuuuuuh     HELLOOOOOOOOOOOOOOO"
    77 echo "gfdgfd@43hg4.net Roger Smith     Properly Formed Entry"
     74echo "gfdgfd@example.net Roger Smith     Properly Formed Entry"
    7875user@myhost:~/.mutt/address-providers$ grep query ~/.muttrc
    7976set query_command = "echo ; /bin/run-parts -a '%s' /home/user/.mutt/address-providers/|grep '@'"