head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	96.09.01.12.19.53;	author david;	state Exp;
branches;
next	1.1;

1.1
date	96.09.01.10.53.26;	author root;	state Exp;
branches;
next	;


desc
@Initial Version.
@


1.2
log
@Fixed 2 bugs:
1. Now uses correct $1 $2 for host and user.
2. Now quotes host and user so shell doesn't see ':' as comment.
@
text
@#! /bin/sh
# $Id: smtppass,v 1.1 1996/09/01 10:53:26 root Exp david $
# Returns password for tuple (host,user).
# Usage: smtppass host user
grep "$1:$2" /var/qmail/control/passwords | cut -d ':' -f 3
@


1.1
log
@Initial revision
@
text
@d2 4
a5 2
# $Id$
grep $host:$user /var/qmail/control/passwords | cut -d ':' -f 3
@
