#!/bin/sh
#
# abmess - wrapper of less for MIME messages by using abmailc
#
# Copyright (C) 2007-2008 Taiji Yamada <taiji@aihara.co.jp>
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Affero General Public License for more details.
#
COCO='| lv -Iu8'
#LESSOPEN="| ${ABMAIL_ROOT:-./}abmailc -D- -B- -c 2000 -l 48 %s ${COCO}"
#LESSOPEN="| ${ABMAIL_ROOT:-./}abmailc -D- -c 2000 -l 48 %s ${COCO}"
#LESSOPEN="| ${ABMAIL_ROOT:-./}abmailc -B- -c 2000 -l 48 %s ${COCO}"
LESSOPEN="| ${ABMAIL_ROOT:-./}abmailc -c 2000 -l 48 %s ${COCO}"
#LESSOPEN="| ${ABMAIL_ROOT:-./}abmailc -S -c 2000 -s %s ${COCO}"
export LESSOPEN
exec less -c -e "$@"
