aboutsummaryrefslogtreecommitdiffstats
path: root/NEWS
<
#/bin/bash
#
# fetchmaildistrib --- Distribute central fetchmail knowledge.
#
# The central fetchmail database, /etc/fetchmail, contains all accounts that
# are to be fetched by the root's daemon. Often, a user desires quicker
# access (e.g., when testing some email path). In such cases, the destination
# user (marked as is USER here in the poll lines) should set up a ~/.fetchmailrc
# for himself. This scripts generates such lines from the central file.
#
# By Rick van Rein.

# From stdin, select poll lines for user $1
function selectuser () {
	grep ^poll | grep "is $1 here"
}


for i in `cut -d: -f1 </etc/passwd`
do	homedir=`grep ^$i: /etc/passwd | cut -d: -f6`
	fetchfile=`selectuser $i </etc/fetchmailrc`
	if [ -z "$fetchfile" ]
	then	rm -f $homedir/.fetchmailrc
	else	cp /dev/null $homedir/.fetchmailrc
		chmod go-rwx $homedir/.fetchmailrc
		grep ^defaults /etc/fetchmailrc >>$homedir/.fetchmailrc
		selectuser $i </etc/fetchmailrc >>$homedir/.fetchmailrc
	fi
done
span>
Commit message (Expand)AuthorAgeFilesLines
...
* More patches by Sunil.Eric S. Raymond2002-06-221-1/+3
* Sunil's CAPA patch.Eric S. Raymond2002-06-221-0/+1
* Change RPM spec.Eric S. Raymond2002-06-211-0/+2
1-0/+2
* Debian patch merge.Eric S. Raymond2002-03-091-0/+2
* Minor fixes.Eric S. Raymond2002-03-091-0/+4
* Corrected comments.Eric S. Raymond2002-02-151-2/+3
* Fill in stats.Eric S. Raymond2002-02-151-0/+4
* Minor fixes for 5.9.8.Eric S. Raymond2002-02-151-0/+8
* Ready to ship.Eric S. Raymond2002-02-021-0/+4
* GSSAPI and ODMR fixes.Eric S. Raymond2002-02-021-0/+1
* Don't bomb silently on SSL when SSL isn't compiled.Eric S. Raymond2002-02-011-0/+1
* Use smtpaddress to specify the return path on warning mail.Eric S. Raymond2002-02-011-0/+1
* Fixes by Matthias Andree.Eric S. Raymond2002-02-011-0/+1
* Sunil Shetye's fixews for IMAP and SMTP edge cases.Eric S. Raymond2002-02-011-0/+1
* Before the next fix round.Eric S. Raymond2002-02-011-0/+3
* Minor fixes from Henrique.Eric S. Raymond2001-12-191-1/+3
* Ready to ship.Eric S. Raymond2001-12-141-0/+4
* Revised dup-killer code.Eric S. Raymond2001-12-141-0/+2
* LMTP fix.Eric S. Raymond2001-12-141-1/+6
* Ready to ship.Eric S. Raymond2001-11-081-0/+4
* Avoid UIDL core dump.Eric S. Raymond2001-11-081-1/+3
* Sicket leak avoidance.Eric S. Raymond2001-11-081-0/+2
* Easy bug fixes for this round.Eric S. Raymond2001-11-081-0/+13
* Logging logic changed. Verbosity lowered.Eric S. Raymond2001-10-041-1/+4
* Ready to go.Eric S. Raymond2001-10-031-0/+9
* HMH's changes.Eric S. Raymond2001-10-021-1/+1
* error.c -> report.cEric S. Raymond2001-09-301-0/+3
* Ready to ship.Eric S. Raymond2001-09-301-0/+6
* getopt_long is back for Solaris and HP-UX.Eric S. Raymond2001-09-301-2/+3
* Got rid of BSD-classic licenses.Eric S. Raymond2001-09-301-0/+4
* Prevent UID lossage because of the DNS lookups getting moved.Eric S. Raymond2001-09-281-0/+1
* Fix the bad GETOPT_LONG patch.Eric S. Raymond2001-09-271-0/+2