File: lsmgen.py

package info (click to toggle)
fetchmail-ssl 5.9.11-6.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,952 kB
  • ctags: 2,498
  • sloc: ansic: 20,487; sh: 3,574; python: 1,705; yacc: 761; makefile: 682; perl: 640; lex: 258; awk: 124; sed: 93; lisp: 84
file content (37 lines) | stat: -rwxr-xr-x 1,212 bytes parent folder | download | duplicates (3)
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
36
37
#!/usr/bin/env python
#
# lsmgen.py -- generate current LSM for fetchmail
#
# FIXME: The FTP location doesn't actually work.
import sys, os, time
version = sys.argv[1];
size = int(sys.argv[2].split()[0])/1000
wwwhost = os.environ['WWWVIRTUAL'];
date = time.strftime("%Y%b%0d", time.localtime()).upper()

fmt = """Begin3
Title:		fetchmail
Version:	%s
Entered-date:	%s
Description:	Full-featured IMAP/POP2/POP3/APOP/RPOP/KPOP/ETRN/ODMR client 
	        with GUI configuration, daemon mode, forwarding via SMTP or 
		local MDA, reply address rewrites, support for multidrop
		mailboxes. Supports SASL authentication, Kerbereros, GSSAPI, 
		OTP. Not a mail user agent, rather a pipe-fitting that 
		forwards fetched mail to your local delivery system. 
		Your one-stop solution for intermittent email connections.
		Home page and FAQ at http://%s/~esr/fetchmail.
Keywords:	mail, client, POP, POP2, POP3, APOP, RPOP, KPOP, IMAP, ETRN,
    		ODMR, SMTP, ESMTP, GSSAPI, RPA, NTLM, CRAM-MD5, SASL.
Author: 	esr@snark.thyrsus.com (Eric S. Raymond)
Primary-site:	locke.ccil.org /pub/esr/fetchmail
		%sK fetchmail-%s.tar.gz
Platforms:	All
Copying-policy:	GPL
End
"""
print fmt % (version, date, wwwhost, size, version)