diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-06-16 11:11:03 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-06-16 15:48:52 +0300 |
commit | a8bff36224f378700fd521e0ea90ffd3cacb4a22 (patch) | |
tree | be12dd01059d02ca3a5d599ee08b56d02f271a35 /examples | |
parent | bd431f59ca92396ca691cad3a64934c2245b420f (diff) | |
download | mailutils-a8bff36224f378700fd521e0ea90ffd3cacb4a22.tar.gz mailutils-a8bff36224f378700fd521e0ea90ffd3cacb4a22.tar.bz2 |
Drop support for Python 2.x
Diffstat (limited to 'examples')
-rw-r--r-- | examples/python/2/Makefile.am | 27 | ||||
-rw-r--r-- | examples/python/2/addr.py | 70 | ||||
-rw-r--r-- | examples/python/2/auth.py | 85 | ||||
-rw-r--r-- | examples/python/2/iconv.py | 35 | ||||
-rw-r--r-- | examples/python/2/lsf.py | 61 | ||||
-rw-r--r-- | examples/python/2/mailcap.py | 36 | ||||
-rw-r--r-- | examples/python/2/mimetest.py | 150 | ||||
-rw-r--r-- | examples/python/2/msg-send.py | 74 | ||||
-rw-r--r-- | examples/python/2/sfrom.py | 36 | ||||
-rw-r--r-- | examples/python/2/url-parse.py | 63 | ||||
-rw-r--r-- | examples/python/3/Makefile.am | 27 | ||||
-rw-r--r-- | examples/python/Makefile.am | 28 | ||||
-rw-r--r-- | examples/python/addr.py (renamed from examples/python/3/addr.py) | 0 | ||||
-rw-r--r-- | examples/python/auth.py (renamed from examples/python/3/auth.py) | 0 | ||||
-rw-r--r-- | examples/python/iconv.py (renamed from examples/python/3/iconv.py) | 0 | ||||
-rw-r--r-- | examples/python/lsf.py (renamed from examples/python/3/lsf.py) | 0 | ||||
-rw-r--r-- | examples/python/mailcap.py (renamed from examples/python/3/mailcap.py) | 0 | ||||
-rw-r--r-- | examples/python/mimetest.py (renamed from examples/python/3/mimetest.py) | 0 | ||||
-rw-r--r-- | examples/python/msg-send.py (renamed from examples/python/3/msg-send.py) | 0 | ||||
-rw-r--r-- | examples/python/sfrom.py (renamed from examples/python/3/sfrom.py) | 0 | ||||
-rw-r--r-- | examples/python/url-parse.py (renamed from examples/python/3/url-parse.py) | 0 |
21 files changed, 27 insertions, 665 deletions
diff --git a/examples/python/2/Makefile.am b/examples/python/2/Makefile.am deleted file mode 100644 index 17399bc93..000000000 --- a/examples/python/2/Makefile.am +++ /dev/null @@ -1,27 +0,0 @@ -## This file is part of GNU Mailutils. -## Copyright (C) 2009-2020 Free Software Foundation, Inc. -## -## GNU Mailutils is free software; you can redistribute it and/or -## modify it under the terms of the GNU General Public License as -## published by the Free Software Foundation; either version 3, or (at -## your option) any later version. -## -## GNU Mailutils is distributed in the hope that it will be useful, but -## WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -## General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -EXTRA_DIST = \ - addr.py\ - auth.py\ - iconv.py\ - lsf.py\ - mailcap.py\ - mimetest.py\ - msg-send.py\ - sfrom.py\ - url-parse.py - diff --git a/examples/python/2/addr.py b/examples/python/2/addr.py deleted file mode 100644 index 9486ddfe4..000000000 --- a/examples/python/2/addr.py +++ /dev/null @@ -1,70 +0,0 @@ -# GNU Mailutils -- a suite of utilities for electronic mail -# Copyright (C) 2009-2020 Free Software Foundation, Inc. -# -# GNU Mailutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. -# -# GNU Mailutils is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -import sys -from mailutils import address -from mailutils import util -from mailutils.error import * - -def parse (str): - util.set_user_email_domain ("localhost") - - try: - addr = address.Address (str) - - count = addr.get_count () - print "%s => count %d" % (addr, len (addr)) - - for no in range (1, count + 1): - isgroup = addr.is_group (no) - print "%d " % no, - - if isgroup: - print "group <%s>" % addr.get_personal (no) - else: - print "email <%s>" % addr.get_email (no) - - if not isgroup: - print " personal <%s>" % addr.get_personal (no) - - print " comments <%s>" % addr.get_comments (no) - print " local-part <%s> domain <%s>" % (addr.get_local_part (no), - addr.get_domain (no)) - print " route <%s>" % addr.get_route (no) - except AddressError, e: - print e - print - -def parseinput (): - try: - while True: - line = sys.stdin.readline ().strip () - if line == '': - break - parse (line) - except KeyboardInterrupt: - sys.exit () - -if __name__ == '__main__': - if len (sys.argv) == 1: - parseinput () - sys.exit () - - for arg in sys.argv[1:]: - if arg == '-': - parseinput () - else: - parse (arg) diff --git a/examples/python/2/auth.py b/examples/python/2/auth.py deleted file mode 100644 index d1cb54aa1..000000000 --- a/examples/python/2/auth.py +++ /dev/null @@ -1,85 +0,0 @@ -# GNU Mailutils -- a suite of utilities for electronic mail -# Copyright (C) 2009-2020 Free Software Foundation, Inc. -# -# GNU Mailutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. -# -# GNU Mailutils is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -import sys -import getopt -import getpass -from mailutils import auth -from mailutils.error import AuthError - -if __name__ == '__main__': - key_type = 'name' - - try: - opts, args = getopt.getopt (sys.argv[1:], 'p:un', - ['password=', 'uid', 'name']) - for o, arg in opts: - if o in ('-p', '--password'): - password = arg - elif o in ('-u', '--uid'): - key_type = 'uid' - elif o in ('-n', '--name'): - key_type = 'name' - except getopt.GetoptError: - print "Usage: %s [OPTION...] key" % sys.argv[0] - print """%s -- test mailutils authentication and authorization schemes - - -n, --name test getpwnam functions - -p, --password=STRING user password - -u, --uid test getpwuid functions - """ % sys.argv[0] - sys.exit (0) - - if not len (args): - print "%s: not enough arguments, try --help" % sys.argv[0] - sys.exit (0) - - if key_type == 'uid': - key = int (args[0]) - else: - key = args[0] - - auth.register_module (('system', 'generic')) - - if key_type == 'name': - auth_data = auth.get_auth_by_name (key) - elif key_type == 'uid': - auth_data = auth.get_auth_by_uid (key) - - if not auth_data: - print '"%s" not found' % key - sys.exit (0) - - print "source: %s" % auth_data.source - print "user name: %s" % auth_data.name - print "password: %s" % auth_data.passwd - print "uid: %d" % auth_data.uid - print "gid: %d" % auth_data.gid - print "gecos: %s" % auth_data.gecos - print "home: %s" % auth_data.dir - print "shell: %s" % auth_data.shell - print "mailbox: %s" % auth_data.mailbox - print "quota: %d" % auth_data.quota - print "change_uid: %d" % auth_data.change_uid - - if not vars ().has_key ('password'): - password = getpass.getpass () - - try: - auth.authenticate (auth_data, password) - print 'Authenticated!' - except AuthError, e: - print e diff --git a/examples/python/2/iconv.py b/examples/python/2/iconv.py deleted file mode 100644 index 8742748c7..000000000 --- a/examples/python/2/iconv.py +++ /dev/null @@ -1,35 +0,0 @@ -# GNU Mailutils -- a suite of utilities for electronic mail -# Copyright (C) 2009-2020 Free Software Foundation, Inc. -# -# GNU Mailutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. -# -# GNU Mailutils is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -import sys -from mailutils import stream -from mailutils import filter - -if len (sys.argv) != 3: - print "usage: %s from-code to-code" % sys.argv[0] - sys.exit (0) - -sti = stream.StdioStream (stream.MU_STDIN_FD) -cvt = filter.FilterIconvStream (sti, sys.argv[1], sys.argv[2]) -out = stream.StdioStream (stream.MU_STDOUT_FD, 0) - -total = 0 -while True: - buf = cvt.read () - out.write (buf) - total += cvt.read_count - if not cvt.read_count: - break diff --git a/examples/python/2/lsf.py b/examples/python/2/lsf.py deleted file mode 100644 index f53cf2b98..000000000 --- a/examples/python/2/lsf.py +++ /dev/null @@ -1,61 +0,0 @@ -# GNU Mailutils -- a suite of utilities for electronic mail -# Copyright (C) 2009-2020 Free Software Foundation, Inc. -# -# GNU Mailutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. -# -# GNU Mailutils is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -import sys -from mailutils import folder -from mailutils import registrar -from mailutils.error import * - -def ls_folders (fname, ref, pattern, level): - try: - fld = folder.Folder (fname) - fld.open () - - list = fld.list (ref, pattern, level) - for f in list: - print f - print "Number of folders: %d" % len (list) - - fld.close () - except Error, e: - print e - -if __name__ == '__main__': - pattern = "*" - level = 0 - argc = len (sys.argv) - - if argc == 5: - level = int (sys.argv[4]) - pattern = sys.argv[3] - ref = sys.argv[2] - fname = sys.argv[1] - elif argc == 4: - pattern = sys.argv[3] - ref = sys.argv[2] - fname = sys.argv[1] - elif argc == 3: - ref = sys.argv[2] - fname = sys.argv[1] - elif argc == 2: - ref = None - fname = sys.argv[1] - else: - print "usage: lsf folder [ref] [pattern] [recursion-level]" - sys.exit (0) - - registrar.register_format () - ls_folders (fname, ref, pattern, level) diff --git a/examples/python/2/mailcap.py b/examples/python/2/mailcap.py deleted file mode 100644 index 785015f37..000000000 --- a/examples/python/2/mailcap.py +++ /dev/null @@ -1,36 +0,0 @@ -# GNU Mailutils -- a suite of utilities for electronic mail -# Copyright (C) 2009-2020 Free Software Foundation, Inc. -# -# GNU Mailutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. -# -# GNU Mailutils is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -from mailutils import stream, mailcap -from os import environ - -stm = stream.FileStream (environ['MAILCAP'] if 'MAILCAP' in environ else "/etc/mailcap") -mc = mailcap.Mailcap (stm) - -for i, entry in enumerate (mc): - print "entry[%d]" % (i + 1) - - # typefield - print "\ttypefield: %s" % entry.get_typefield () - - # view-command - print "\tview-command: %s" % entry.get_viewcommand () - - # fields - for j, ent in enumerate (entry): - print "\tfields[%d]: %s" % ((j + 1), ent) - - print diff --git a/examples/python/2/mimetest.py b/examples/python/2/mimetest.py deleted file mode 100644 index 4c9b93276..000000000 --- a/examples/python/2/mimetest.py +++ /dev/null @@ -1,150 +0,0 @@ -# GNU Mailutils -- a suite of utilities for electronic mail -# Copyright (C) 2009-2020 Free Software Foundation, Inc. -# -# GNU Mailutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. -# -# GNU Mailutils is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -import sys -import getopt -from mailutils import * -from mailutils.header import * - -print_attachments = False -indent_level = 4 - -def print_file (fname, indent): - try: - fp = open (fname, 'r') - for line in fp: - print "%*.*s%s" % (indent, indent, '', line) - fp.close () - remove (fname) - except OSError, e: - print e - -def print_message_part_sizes (part, indent): - print "%*.*sMessage part size - %d/%d: %d/%d, %d/%d" % \ - (indent, indent, '', - part.size, part.lines, - part.header.size, part.header.lines, - part.body.size, part.body.lines) - -def message_display_parts (msg, indent): - # How many parts does the message has? - nparts = msg.get_num_parts () - - # Iterate through all the parts. Treat type "message/rfc822" - # differently, since it is a message of its own that can have other - # subparts (recursive). - for j in range (1, nparts + 1): - part = msg.get_part (j) - hdr = part.get_header () - - type = hdr.get_value (MU_HEADER_CONTENT_TYPE, 'text/plain') - encoding = hdr.get_value (MU_HEADER_CONTENT_TRANSFER_ENCODING, '7bit') - - print "%*.*sType of part %d = %s" % (indent, indent, '', j, type) - print_message_part_sizes (part, indent) - - ismulti = part.is_multipart () - if type == "message/rfc822" or ismulti: - if not ismulti: - part = part.unencapsulate () - - hdr = part.get_header () - frm = hdr.get_value (MU_HEADER_FROM, "[none]") - subject = hdr.get_value (MU_HEADER_SUBJECT, "[none]") - - print "%*.*sEncapsulated message : %s\t%s" % \ - (indent, indent, '', frm, subject) - print "%*.*sBegin" % (indent, indent, '') - - nsubparts = part.get_num_parts () - message_display_parts (part, indent + indent_level) - elif (type.startswith ("text/plain") or - type.startswith ("text/html") or type == ''): - print "%*.*sText Message" % (indent, indent, '') - print "%*.*sBegin" % (indent, indent, '') - - flt = filter.FilterStream (part.body.get_stream (), encoding) - - while True: - buf = flt.readline () - if not flt.read_count: - break - print "%*.*s%s" % (indent, indent, '', buf), - else: - # Save the attachements. - try: - fname, lang = part.get_attachment_name () - except: - fname = util.tempname () - - print "%*.*sAttachment - saving [%s]" % \ - (indent, indent, '', fname) - print "%*.*sBegin" % (indent, indent, '') - - part.save_attachment () - if print_attachments: - print_file (fname, indent) - - print "%*.*sEnd" % (indent, indent, '') - - -if __name__ == '__main__': - optdebug = False - - try: - opts, args = getopt.getopt (sys.argv[1:], 'dpi:') - for o, a in opts: - if o == '-d': - optdebug = True - elif o == '-p': - print_attachments = True - elif o == '-i': - indent_level = int (a) - except getopt.GetoptError: - sys.exit (0) - - # Registration. - registrar.register_format (('imap', 'pop', 'mbox')) - registrar.set_default_format ('mbox') - - if args: - args = args[0] - else: - args = '' - - mbox = mailbox.MailboxDefault (args) - - # Debugging trace. - if optdebug: - mbox.debug.set_level (debug.MU_DEBUG_PROT) - - # Open the mailbox for reading only. - mbox.open () - - # Iterate through the entire message set. - for i, msg in enumerate (mbox): - print "Message: %d" % (i + 1) - print "From: %s" % msg.header.get_value (MU_HEADER_FROM, "[none]") - print "Subject: %s" % msg.header.get_value (MU_HEADER_SUBJECT, "[none]") - print "Number of parts in message - %d" % msg.get_num_parts () - print "Total message size - %d/%d" % (msg.size, msg.lines) - - try: - message_display_parts (msg, 0) - except Error, e: - print e - - mbox.close () diff --git a/examples/python/2/msg-send.py b/examples/python/2/msg-send.py deleted file mode 100644 index aa0388cce..000000000 --- a/examples/python/2/msg-send.py +++ /dev/null @@ -1,74 +0,0 @@ -# GNU Mailutils -- a suite of utilities for electronic mail -# Copyright (C) 2009-2020 Free Software Foundation, Inc. -# -# GNU Mailutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. -# -# GNU Mailutils is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -import sys -import getopt -from mailutils import * - -USAGE = "usage: mailer [-hd] [-m mailer] [-f from] [to]..." -HELP = """ - -h print this helpful message - -m a mailer URL (default is \"sendmail:\") - -f the envelope from address (default is from user environment) - to a list of envelope to addresses (default is from message) - -An RFC2822 formatted message is read from stdin and delivered using -the mailer.""" - -optmailer = "sendmail:" -optfrom = False -optdebug = False - -try: - opts, args = getopt.getopt (sys.argv[1:], 'hdm:f:') - for o, a in opts: - if o == '-h': - print USAGE - print HELP - sys.exit (0) - elif o == '-d': - optdebug = True - elif o == '-m': - optmailer = a - elif o == '-f': - optfrom = a -except getopt.GetoptError: - print USAGE - sys.exit (0) - -registrar.register_format ('sendmail') - -frm = None -to = None - -if optfrom: - frm = address.Address (optfrom) -if args: - to = address.Address (args) - -sti = stream.StdioStream (stream.MU_STDIN_FD, stream.MU_STREAM_SEEKABLE) -sti.open () - -msg = message.Message () -msg.set_stream (sti) - -mlr = mailer.Mailer (optmailer) -if optdebug: - mlr.debug.set_level (debug.MU_DEBUG_PROT) - -mlr.open () -mlr.send_message (msg, frm, to) -mlr.close () diff --git a/examples/python/2/sfrom.py b/examples/python/2/sfrom.py deleted file mode 100644 index 90c4b28b9..000000000 --- a/examples/python/2/sfrom.py +++ /dev/null @@ -1,36 +0,0 @@ -# GNU Mailutils -- a suite of utilities for electronic mail -# Copyright (C) 2009-2020 Free Software Foundation, Inc. -# -# GNU Mailutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. -# -# GNU Mailutils is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -import sys -from mailutils import * -from mailutils.header import * - -args = '' -if len (sys.argv) > 1: - args = sys.argv[1] - -registrar.register_format () - -mbox = mailbox.MailboxDefault (args) -mbox.open () - -print "Total: %d" % len (mbox) - -for msg in mbox: - print "%s %s" % (msg.header[MU_HEADER_FROM], - msg.header.get_value (MU_HEADER_SUBJECT, "(NO SUBJECT)")) - -mbox.close () diff --git a/examples/python/2/url-parse.py b/examples/python/2/url-parse.py deleted file mode 100644 index ee15722bf..000000000 --- a/examples/python/2/url-parse.py +++ /dev/null @@ -1,63 +0,0 @@ -# GNU Mailutils -- a suite of utilities for electronic mail -# Copyright (C) 2009-2020 Free Software Foundation, Inc. -# -# GNU Mailutils is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3, or (at your option) -# any later version. -# -# GNU Mailutils is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -import sys -from mailutils import url -from mailutils.error import * - -def parse (str): - try: - u = url.Url (str) - print "URL: %s" % u - - print "\tscheme <%s>" % u.get_scheme () - print "\tuser <%s>" % u.get_user () - - sec = u.get_secret () - print "\tpasswd <%s>" % sec.password () - sec.password_unref () - - print "\tauth <%s>" % u.get_auth () - print "\thost <%s>" % u.get_host () - print "\tport %d" % u.get_port () - print "\tpath <%s>" % u.get_path () - - for i, param in enumerate (u.get_query ()): - print "\tquery[%d] %s" % (i, param) - - except UrlError, e: - print e - -def parseinput (): - try: - while True: - line = sys.stdin.readline ().strip () - if line == '': - break - parse (line) - except KeyboardInterrupt: - sys.exit () - -if __name__ == '__main__': - if len (sys.argv) == 1: - parseinput () - sys.exit () - - for arg in sys.argv[1:]: - if arg == '-': - parseinput () - else: - parse (arg) diff --git a/examples/python/3/Makefile.am b/examples/python/3/Makefile.am deleted file mode 100644 index 17399bc93..000000000 --- a/examples/python/3/Makefile.am +++ /dev/null @@ -1,27 +0,0 @@ -## This file is part of GNU Mailutils. -## Copyright (C) 2009-2020 Free Software Foundation, Inc. -## -## GNU Mailutils is free software; you can redistribute it and/or -## modify it under the terms of the GNU General Public License as -## published by the Free Software Foundation; either version 3, or (at -## your option) any later version. -## -## GNU Mailutils is distributed in the hope that it will be useful, but -## WITHOUT ANY WARRANTY; without even the implied warranty of -## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -## General Public License for more details. -## -## You should have received a copy of the GNU General Public License -## along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. - -EXTRA_DIST = \ - addr.py\ - auth.py\ - iconv.py\ - lsf.py\ - mailcap.py\ - mimetest.py\ - msg-send.py\ - sfrom.py\ - url-parse.py - diff --git a/examples/python/Makefile.am b/examples/python/Makefile.am index 05acdfa26..17399bc93 100644 --- a/examples/python/Makefile.am +++ b/examples/python/Makefile.am @@ -1 +1,27 @@ -SUBDIRS=2 3 +## This file is part of GNU Mailutils. +## Copyright (C) 2009-2020 Free Software Foundation, Inc. +## +## GNU Mailutils is free software; you can redistribute it and/or +## modify it under the terms of the GNU General Public License as +## published by the Free Software Foundation; either version 3, or (at +## your option) any later version. +## +## GNU Mailutils is distributed in the hope that it will be useful, but +## WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +## General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. + +EXTRA_DIST = \ + addr.py\ + auth.py\ + iconv.py\ + lsf.py\ + mailcap.py\ + mimetest.py\ + msg-send.py\ + sfrom.py\ + url-parse.py + diff --git a/examples/python/3/addr.py b/examples/python/addr.py index 82df06fec..82df06fec 100644 --- a/examples/python/3/addr.py +++ b/examples/python/addr.py diff --git a/examples/python/3/auth.py b/examples/python/auth.py index a68abe861..a68abe861 100644 --- a/examples/python/3/auth.py +++ b/examples/python/auth.py diff --git a/examples/python/3/iconv.py b/examples/python/iconv.py index 134ddee83..134ddee83 100644 --- a/examples/python/3/iconv.py +++ b/examples/python/iconv.py diff --git a/examples/python/3/lsf.py b/examples/python/lsf.py index 5499e91b4..5499e91b4 100644 --- a/examples/python/3/lsf.py +++ b/examples/python/lsf.py diff --git a/examples/python/3/mailcap.py b/examples/python/mailcap.py index 04bfc1d07..04bfc1d07 100644 --- a/examples/python/3/mailcap.py +++ b/examples/python/mailcap.py diff --git a/examples/python/3/mimetest.py b/examples/python/mimetest.py index 143c9f6eb..143c9f6eb 100644 --- a/examples/python/3/mimetest.py +++ b/examples/python/mimetest.py diff --git a/examples/python/3/msg-send.py b/examples/python/msg-send.py index 2e5cb0101..2e5cb0101 100644 --- a/examples/python/3/msg-send.py +++ b/examples/python/msg-send.py diff --git a/examples/python/3/sfrom.py b/examples/python/sfrom.py index 60171f0ea..60171f0ea 100644 --- a/examples/python/3/sfrom.py +++ b/examples/python/sfrom.py diff --git a/examples/python/3/url-parse.py b/examples/python/url-parse.py index b7cd5807e..b7cd5807e 100644 --- a/examples/python/3/url-parse.py +++ b/examples/python/url-parse.py |