aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-01-14 23:53:39 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-01-14 23:53:39 +0000
commitecc1f4c012afb99be1e92ce67c9cf39aef45308e (patch)
treea45fb2b3d8d66bb918516369242b902f6c567869 /fetchmail.c
parentc7f2ecfaab1d834a4747d6914c833e9d2eaa4bbe (diff)
downloadfetchmail-ecc1f4c012afb99be1e92ce67c9cf39aef45308e.tar.gz
fetchmail-ecc1f4c012afb99be1e92ce67c9cf39aef45308e.tar.bz2
fetchmail-ecc1f4c012afb99be1e92ce67c9cf39aef45308e.zip
fetchmail --version now prints the copyright notice.
svn path=/branches/BRANCH_6-3/; revision=4638
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 24c38141..62ea09fc 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -127,6 +127,16 @@ static RETSIGTYPE donothing(int sig)
lastsig = sig;
}
+static void printcopyright(FILE *fp) {
+ fprintf(fp, GT_("Copyright (C) 2002, 2003 Eric S. Raymond\n"
+ "Copyright (C) 2004 Matthias Andree, Eric S. Raymond, Rob F. Funk, Graham Wilson\n"
+ "Copyright (C) 2005 Matthias Andree, Sunil Shetye\n"
+ "Copyright (C) 2006 Matthias Andree\n"));
+ fprintf(fp, GT_("Fetchmail comes with ABSOLUTELY NO WARRANTY. This is free software, and you\n"
+ "are welcome to redistribute it under certain conditions. For details,\n"
+ "please see the file COPYING in the source or documentation directory.\n"));
+}
+
const char *iana_charset;
int main(int argc, char **argv)
@@ -253,9 +263,12 @@ int main(int argc, char **argv)
#ifdef ENABLE_NLS
"+NLS"
#endif /* ENABLE_NLS */
- "\n";
+ ".\n";
printf(GT_("This is fetchmail release %s"), VERSION);
fputs(features, stdout);
+ puts("");
+ printcopyright(stdout);
+ puts("");
fputs("Fallback MDA: ", stdout);
#ifdef FALLBACK_MDA
fputs(FALLBACK_MDA, stdout);