You could always make a shell script in say bin/find_owner like

#! /bin/bash
if [ $# -ne 1 ]; then
    echo Usage: $0 pattern
    echo where pattern is a regular expression to match
    exit 1
fi
/path/to/bin/list_owners -wm|grep -P "^[^\t]|$1"

for your less savvy folks.

And for MM 3, the `mailman findmember` command does what you want.

$ bin/mailman findmember -h
Usage: mailman findmember [OPTIONS] PATTERN

  Display all memberships for a user or users with address matching a
pattern.

Options:
  -r, --role [all|owner|moderator|nonmember|member|administrator]
                                  Display only memberships with the given
                                  role.  If not given, 'all' role, i.e. all
                                  roles, is the default.
  -h, --help                      Show this message and exit.


** Changed in: mailman
   Importance: Undecided => Wishlist

** Changed in: mailman
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Mailman
Coders, which is subscribed to GNU Mailman.
https://bugs.launchpad.net/bugs/1946272

Title:
  make find_member support --moderators option (patch supplied)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mailman/+bug/1946272/+subscriptions

_______________________________________________
Mailman-coders mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/mailman-coders.python.org/
Member address: [email protected]

Reply via email to