#!/bin/sh
#
# qbonk
# John Simpson <jms1@jms1.net>
#
#
# 2005-04-11 jms1 - (no code changed.) changed the copyright notice to
#   specify that the license is the GPL VERSION 2 ONLY. i'm not comfortable
#   with the "or future versions" clause until i know what these "future
#   versions" will look like.
#
# 2005-12-09 jms1 - adding "-c" to the touch command, in case a file 
#   happens to be removed by qmail-send while this script is running. 
#   thanks to somebody calling himself "atom smasher" for the tip.
#
# 2006-06-28 jms1 - after an email from John Newman, i examined the 
#   source code for qmail-send. it turns out that the only file whose
#   timestamp needs to be touched is the info/*/* file itself... and
#   since that's what "find" is already looking for, that makes the job
#   a lot easier (and a lot less sucseptible to shell slowdowns due to
#   having to expand "*/*" on a command line.)
#
###############################################################################
#
# Copyright (C) 2003-2006 John Simpson.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2, as
# published by the Free Software Foundation.
#
# 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
# or visit http://www.gnu.org/licenses/gpl.txt
#
###############################################################################

for n in $*
do
	touch -ct 199801010000 /var/qmail/queue/info/*/$n
done