aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmailconf.py
Commit message (Collapse)AuthorAgeFilesLines
* fetchmailconf.py: permit -V and -h while not under X11.Matthias Andree2020-02-191-5/+5
| | | | | This helps packagers to run self-tests in headless build jails/chroots/... for instance when making sure that all requisites are present.
* fetchmailconf.py: hostname qualification fixupMatthias Andree2020-01-311-2/+7
| | | | | | | | | | | | | | | | | | | If socket.gethostname() returns a qualified name, don't look further, to match fetchmail's behaviour - in case of an FQDN /etc/hostname with broken /etc/hosts, this helps us survive. Else, call socket.getfqdn() and not gethostbyaddr() in an attempt to qualify the hostname. Failing that, print an error message that tells the user to fix /etc/hosts, which has this canonical format: 10.9.8.7 host.example.org host on the assumption that that line and DNS might both be broken. Gitlab, fixes #12 reported by Sergey Alirzaev - the prior attempt fixed the wrong place (which also needed fixing). Bump version to 1.63.
* fetchmailconf.py: Show hostname in configuration selector.Matthias Andree2020-01-311-1/+2
|
* fetchmailconf.py: bump version to 1.62.Matthias Andree2020-01-311-1/+1
|
* fetchmailconf: Catch errors from get_greetline()Matthias Andree2020-01-311-15/+29
| | | | | | | | This will handle name service errors with an individual error message, and other OSErrors in a general way. Reported by: Sergey Alirzaev. Fixes Gitlab Issue #12.
* fetchmailconf: Add missing line separator in RunWindow.Matthias Andree2020-01-311-1/+1
|
* fetchmailconf: delete server entries properly.Matthias Andree2020-01-311-3/+3
| | | | While here, fix exception catcher.
* fetchmailconf: Bump version to 1.61.Matthias Andree2020-01-241-1/+1
|
* fetchmailconf: Set window icon for window manager.Matthias Andree2020-01-241-1/+7
|
* fetchmailconf: Add verbose/normal to run buttons of main window.Matthias Andree2020-01-241-2/+2
|
* fetchmailconf: Check fetchmail's exit status from RunWindow()Matthias Andree2020-01-241-0/+6
|
* fetchmailconf: Update RunWindow() line-wise.Matthias Andree2020-01-241-1/+2
|
* fetchmailconf: Make RunWindow resizeable.Matthias Andree2020-01-241-4/+2
|
* fetchmailconf: Omit unused 'parent' argument from RunWindow() constructorMatthias Andree2020-01-241-3/+3
|
* fetchmailconf: Heed Exceptions in make_icon_window().Matthias Andree2020-01-241-12/+8
|
* fetchmailconf: Simplify configdump handling, don't use a tmpfile.Matthias Andree2020-01-161-30/+9
| | | | | | | | | | Use subprocess.check_output(), avoid the tmpfile, saves the umask hassle and greatly simplifies the code. Use sys.exit() with a string argument. Do away with the PY3K constant for decoding the greetline in a version-dependent way, this should and appears happen inside the future module.
* fetchmailconf Python 3, IPv6, SSL overhaulMatthias Andree2020-01-111-306/+397
| | | | | | | | | | Replace string.find() by 'in' or .find() method Bump fetchmailconf version. Fix many pylint warnings. Make fetchmailconf Python 3 compatible - use futurize - decode greetline to str on Python 3 Require Python 2.7.13 (due to ssl changes)
* fetchmailconf: Permit editing the first item from a list, and more updates.Matthias Andree2019-08-211-9/+14
| | | | | | | * Remove a bogus check that would prevent editing the first items from list boxes. * Require Python 2.3. * Convert apply() call to function(*(tuple,)) syntax * string.atoi() -> int() on select[0], to continue where it's not a string
* Flip the switch on sslcertck in fetchmailconf, too.Matthias Andree2019-08-191-1/+1
|
* A few Python 3 compatibility fixes.Matthias Andree2016-06-081-7/+13
| | | | Still needs 2to3 to be run under Python 3.
* fetchmailconf.py: make fetchmailconf.py python{2, 3}-compliantSamuel Martin2016-06-081-46/+48
| | | | | | | | | | | | This change does: - use repr(...) instead of `...` (see [1]); - fix print call; - fix octal numbers. [1] https://docs.python.org/release/3.0.1/whatsnew/3.0.html#removed-syntax Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
* fetchmailconf.py: fix tabs/spaces mixup preventing from compiling the pyc moduleSamuel Martin2016-06-081-1266/+1266
| | | | | | | | | | | This whitespace-only change substitutes all leading tabulations with the right number of spaces to get the standard 4-space indentation. This bug was triggered by the Buildroot farms: http://autobuild.buildroot.org/results/700/7009445dd116a1c02db82a351d38db44db8dad16/build-end.log Signed-off-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
* Fixed set invisible bug in fetchmailconf.pyMichael Banack2010-04-221-0/+2
| | | | Previously it was not saving the preference at all.
* Rename bad-header pass to bad-header accept, ...Matthias Andree2010-02-241-1/+1
| | | | to resolve an ambiguity found by Frédéric Marchal.
* Feature: bad-header {reject|pass}Matthias Andree2010-02-241-2/+8
|
* Fetchmailconf: Fix descriptions for smtpaddress and smtpname optionsMatthias Andree2009-09-231-3/+3
| | | | | | | | Smtpaddress is for RCPT TO, not MAIL FROM. Found by Gerard Seibert. 'Append to MAIL FROM line:' => 'Use domain on RCPT TO line:' 'Set RCPT To address:' => 'Set fixed RCPT TO address:' svn path=/branches/BRANCH_6-3/; revision=5433
* Update Copyright.Matthias Andree2009-05-251-2/+2
| | | | svn path=/branches/BRANCH_6-3/; revision=5330
* Fix capitalization of two global option descriptions.Matthias Andree2009-05-241-2/+2
| | | | svn path=/branches/BRANCH_6-3/; revision=5320
* Treat permanent delivery errors as temporary (configurable).Matthias Andree2009-05-241-1/+22
| | | | | | | | | | | | | | | | Fetchmail no longer drops permanently undelivered messages by default, to match historic documentation. It does this by adding a new "softbounce" option, see below. Fixes Debian Bug#471283, demotes Debian Bug#494418 to wishlist. There is a new "softbounce" global option that prevents the deletion of messages that have not been forwarded. It defaults to "true" for fetchmail 6.3.X in order to match historic documentation. This may change its default in the next major release. NOTE: untested. svn path=/branches/BRANCH_6-3/; revision=5315
* Merge Daniel Richard G.'s --sslcommonname option.Matthias Andree2008-03-071-4/+12
| | | | | | | | Exception from no-features policy on 6.3.X is made to keep people away from doing more dangerous things in order to get rid of CommonName mismatch warnings. svn path=/branches/BRANCH_6-3/; revision=5165
* quote folder name when writing configuration, Berlios Bug #13207, report + ↵Matthias Andree2008-02-251-2/+2
| | | | | | fix by Terry Brown. svn path=/branches/BRANCH_6-3/; revision=5163
* Lower fastuidl default to 4 (was 10). Patch by Sunil Shetye.Matthias Andree2006-03-141-1/+1
| | | | svn path=/branches/BRANCH_6-3/; revision=4740
* fetchmailconf.py: Accept --help and --version.Matthias Andree2006-01-141-9/+16
| | | | svn path=/branches/BRANCH_6-3/; revision=4636
* Fix novice help for Poll interval and fetchall.Matthias Andree2005-12-291-2/+5
| | | | | | Reported by Justin Pryzby, Debian Bug #344978. svn path=/branches/BRANCH_6-3/; revision=4588
* Remove bogus Netscape IMAP4rev1 Service >= 3.6 warning about BODY[TEXT] Matthias Andree2005-12-081-7/+0
| | | | | | that we are not using. Patch by Sunil Shetye. svn path=/branches/BRANCH_6-3/; revision=4519
* Set service properly after autoprobe succeeded. Debian Bug#320645.Matthias Andree2005-10-301-1/+2
| | | | svn path=/trunk/; revision=4383
* fetchmailconf -h documents the fetchmailconf -h option.Matthias Andree2005-10-211-3/+8
| | | | | | fetchmailconf -V now prints the fetchmailconf version. svn path=/trunk/; revision=4365
* Put self.service check back in that got removed, it's still needed.Matthias Andree2005-09-281-1/+1
| | | | svn path=/trunk/; revision=4352
* SECURITY FIX: chmod the file to 0600 *before* writing to it, so passwords Matthias Andree2005-09-281-7/+10
| | | | | | | | | | | | | aren't exposed, and set umask 077 before opening the file to be extra safe. Configuration files larger than the Python default write buffer might otherwise be exposed to other users. Fix: Don't crash on saving the configuration if protocol is "auto". Fix: Split authlist button bar in two rows. Change: The configuration file comment now contains the fetchmailconf version. Change: Bump version to 1.49. svn path=/trunk/; revision=4351
* Offer authorization mode with NTLM/MSN added to expert users.Matthias Andree2005-09-271-5/+11
| | | | svn path=/trunk/; revision=4344
* Merge Sunil Shetye's --limitflush patch.Matthias Andree2005-09-171-0/+7
| | | | svn path=/trunk/; revision=4289
* Bugfix: redirect fetchmail command input from /dev/null so it doesn't hang Matthias Andree2005-08-171-6/+12
| | | | | | | waiting for a password. Reported by Michal Marek (SUSE). Bugfix: Pass -N option to fetchmail commands to run them in the foreground. svn path=/trunk/; revision=4238
* Only run fetchmail --configdump if umask succeeded.Matthias Andree2005-08-021-2/+2
| | | | svn path=/trunk/; revision=4222
* Rename fetchmailconf to fetchmailconf.py.Matthias Andree2005-08-021-0/+2105
Add a shell wrapper script fetchmailconf (with @PYTHON@ substituted). Use automake's PYTHON mode to byte-compile the script at install time. svn path=/trunk/; revision=4220