---
name: mboxgrep
version: 0.7.9_3
origin: mail/mboxgrep
comment: Utility to scan mailboxes for messages matching a regular expression
arch: freebsd:9:x86:64
www: http://mboxgrep.sourceforge.net/
maintainer: anders@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 52032
desc: |
  mboxgrep is a small utility that scans a mailbox for messages matching a
  regular expression. Found messages can be either displayed on standard output,
  counted, deleted, piped to a shell command or written to another mailbox.

  Its features include:

  * ability to limit the search to message body or headers (although the whole
  message is scanned by default)
  * message counting
  * ability to invert the sense of matching
  * ability to write found messages to another mailbox
  * support for mbox (either plain or compressed), MH, nnmh, nnml and maildir
  folders
  * support for basic and extended POSIX regular expressions, and, optionally,
  Perl-complatible regular expressions (if linked with the PCRE library)

  WWW: http://mboxgrep.sourceforge.net/
categories: [mail]
files:
  /usr/local/bin/mboxgrep: 34612f9906c34d4cf6e2a15d3d55b0f5774dee175ccbac7344b1cace478a8872
  /usr/local/info/mboxgrep.info: 89b33b3724770cd3c15d77a9a2c7ae2ef6bf3fbcaa39cd06a5ba6347304ce6fb
  /usr/local/man/man1/mboxgrep.1.gz: eddb1845f9bfa7b4f375fb205a80b8c0d0bb376cfbde5f40ec4e4945f916cbcd
  /usr/local/share/doc/mboxgrep/ChangeLog: 6509c9b3c97c459738619ac8228110b3e40898d304428fe76d9655892a3cf7d2
  /usr/local/share/doc/mboxgrep/NEWS: 1d7121fdfc1f736ab02750134b0be1018a19b5ae2beabe1d153a4929b3a5b513
  /usr/local/share/doc/mboxgrep/README: e82fd5919d855c63a04fa2d7781e97b579853935868a24467a9425bbf45efaad
  /usr/local/share/doc/mboxgrep/TODO: a543c13e5db68dad7e20ba2e0afe8739c43c3ed5caf7ac225a98058f730fee65
directories:
  /usr/local/share/doc/mboxgrep/: n
scripts:
  post-install: |
    file=/usr/local/info/mboxgrep.info
    install-info --quiet /usr/local/info/mboxgrep.info ${file%25/*}/dir
  pre-deinstall: |
    if [ -f /usr/local/info/dir ]; then if sed -e '1,/Menu:/d' /usr/local/info/dir | grep -q '^[*] '; then true; else rm /usr/local/info/dir; fi; fi
  post-deinstall: |
    file=/usr/local/info/mboxgrep.info
    install-info --quiet --delete /usr/local/info/mboxgrep.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
