File: lsmgen.sh

package info (click to toggle)
fetchmail 4.6.4-1.1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,416 kB
  • ctags: 1,117
  • sloc: ansic: 10,540; sh: 1,678; python: 1,208; yacc: 384; perl: 319; makefile: 207; lex: 185
file content (35 lines) | stat: -rwxr-xr-x 1,115 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/perl
#
# lsmgen.sh -- generate current LSM for fetchmail
#
$version = $ARGV[0];
$size = substr($ARGV[1], 0, 3);
$wwwhost = $ENV{'WWWHOST'};

@months
  = ('JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC');

my($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
$month = $months[$mon];

print <<EOF;
Begin3
Title:		fetchmail
Version:	$version
Entered-date:	${mday}${month}${year}
Description:	Full-featured IMAP/POP2/POP3/APOP/RPOP/KPOP client with GUI
		configuration, daemon mode, forwarding via SMTP or local MDA,
		superior reply handling, support for multidrop mailboxes. 
		Not a mail user agent, rather a	pipe-fitting that seamlessly
		forwards fetched mail to your local delivery system. 
		Your one-stop solution for intermittent email connections.
		Home page and FAQ at http://$wwwhost/~esr/fetchmail.
Keywords:	mail, client, POP, POP2, POP3, APOP, RPOP, KPOP, IMAP, SMTP
Author: 	esr\@snark.thyrsus.com (Eric S. Raymond)
Primary-site:	locke.ccil.org /pub/esr/fetchmail
		${size}K fetchmail-$version.tar.gz
Platforms:	All
Copying-policy:	GPL
End
EOF