summaryrefslogtreecommitdiffabout
AgeCommit message (Collapse)AuthorFiles
8 daysNew function: mfd_temp_stream_shiftHEADmasterSergey Poznyakoff13
Shifts the contents of temporary stream between two offsets. * lib/Makefile.am: Add new sources. * lib/libmf.h (mfd_temp_stream_shift): New proto. * lib/mudefs.h (MUREF): Remove. Define _MFD_USE_STREAM_SHIFT depending on mailutils version. * lib/mustrmshift.c: New file. * lib/streamshift.c: New file. * src/Makefile.am (AM_CPPFLAGS) [NETTLE_COND]: Define WITH_DKIM. * src/main.c (mailfromd_show_defaults): Reveal whether DKIM is supported. * tests/Makefile.am: Add new tests. * tests/testsuite.at: Likewise. * tests/resolv.c: Fix formatting. * tests/streamshift.at: New file. * tests/streamshift.c: New file. * tests/.gitignore: Update.
11 daysImplementation of DKIM signingSergey Poznyakoff16
* configure.ac: Detect presence of nettle libraries. * src/Makefile.am: Add new sources. * src/dkim-canonicalize.c: New file. * src/dkim.c: New file. * src/dkim.h: New file. * src/builtin/Makefile.am: Add new sources. * src/builtin/body.bi (current_message): Rewrite as a simple wrapper over bi_get_current_message. * src/builtin/dkim.bi: New file. * src/builtin/msg.bi (bi_get_current_message): Optionally return the message itself. * src/builtin/msg.h (bi_get_current_message(: Change signature. * src/builtin/snarf.m4 (env_get_stream): Fix quoting. * NEWS: Document changes. * doc/functions.texi: Document the dkim_sign function * doc/mailfromd.texi: Minor changes.
2019-09-07Minor fixesSergey Poznyakoff2
* src/main.c (mf_cfg_param): Remove the surplus "database" section: it is already included in srvcfg.c * src/prog.c (env_register_auto): Use mu_diag_cont_printf to continue diagnostic message without inserting unnecessary <> directives (perhaps should be fixed in mailutils).
2019-06-17Don't accept database types not supported by mailutilsSergey Poznyakoff1
For details, see the last paragraph in: http://mail.gnu.org.ua/mailman/listarchive/bug-mailfromd/2019-06/msg00001.html * configure.ac (db_type_to_feature): Make sure empty string is never returned.
2019-01-29Fixes in runtime memory managementSergey Poznyakoff2
* src/builtin/sprintf.bi: Don't use pointer to format: the latter might be reallocated during stack expansions, and the pointer would end up pointing to freed memory area. Another way to fix it would be to make env_register_auto and env_pop_auto global and to mark the address of pointer with env_register_auto so it would be reallocated together with format. However, I wouldn't like to expose too much of the internals of prog.c. * src/prog.c (env_get_locus) (heap_obstack_grow,pushs): Fix argument to env_register_auto. (env_register_auto): Check if the argument points to a memory location within data segment + stack. This is necessary, because heap_obstack_grow registers its argument, which at least in one case is a pointer to an automatic variable (see MF_OBSTACK_1GROW in builtin/snarf.m4). (env_pop_auto,env_unregister_autos) (env_fixup_autos): Make static.
2019-01-29Fix in calloutSergey Poznyakoff1
* src/callout.c (reset): Send \r\n after RSET.
2019-01-24Minor fixes.Sergey Poznyakoff2
* doc/mtasim.texi: Fix description of the milter timeout letters. * mtasim/Makefile.am (mtasim_DEPENDENCIES): Depend on libmf and libgacopyz
2019-01-03Version 8.7release_8_7Sergey Poznyakoff7
* NEWS: Update. * configure.ac: Raise minor version. * doc/functions.texi: Document new functions Include the implementation of the NS resolving MFL functions, as proposed by Jan Rafaj * lib/dns.c (ns_lookup): New function. * lib/dns.h (ns_lookup): New proto. * mflib/dns.mf4 (hasns): New function. * src/builtin/dns.bi (primitive_hasns, getns): New functions.
2019-01-03Update copyright yearsSergey Poznyakoff316
2018-11-09Document debug categories. Fix improper use of decimal constants instead of ↵Sergey Poznyakoff5
MU_DEBUG_TRACE identifiers
2018-11-09Fix docstring for the "debug" statement in the config-help output.Sergey Poznyakoff2
2018-11-08mtasim: don't clobber existing callout socket when used with -XautoSergey Poznyakoff3
* doc/mailfromd.texi: Document the --callout-socket option. * mtasim/mtasim.c (start_mailfromd): Supply the --callout-socket option. * src/main.c: New option --callout-socket
2018-11-08Silently ignore non-existing keys in dbdelSergey Poznyakoff2
* src/builtin/db.bi (dbdel): Treat MU_ERR_NOENT as success.
2018-11-07Fix the functionality of the mailfromd --mtasim optionSergey Poznyakoff1
This option must discard the effect of the server.listen statement This also fixes mtasim -Xauto * src/main.c (mailfromd_options): Process the --mtasim option immediately.
2018-11-05Change generation of debug names for built-in modulesSergey Poznyakoff2
* src/builtin/Makefile.am (.bi.c): Don't define SOURCE * src/builtin/snarf.m4 (MF_SOURCE_DEBUG_NAME): Remove. (MF_MODULE_DEBUG_NAME): New macro. (_init_builtin): Use MF_MODULE_DEBUG_NAME
2018-11-05Partially revert "Fix indentation of the generated sources"Sergey Poznyakoff6
GNU indent reformats the sources. As a result, preprocessor #line directives become misleading.
2018-11-04Fix indentation of the generated sourcesSergey Poznyakoff6
* NEWS: Version 8.6.90 * configure.ac: Version 8.6.90 Check for GNU indent * am/indent.m4: New file. * src/builtin/Makefile.am (EXTRA_DIST): Add indent.pro (.bi.c, .def.h): Use GNU indent if available. * src/builtin/indent.pro: New file. * src/builtin/snarf.m4: Minor change.
2018-11-03Revise preprocessor macros for builtin functions.Sergey Poznyakoff43
* doc/mailfromd.texi: Minor change. * src/builtin/Makefile.am (builtin.h): Depend pn init.m4 (.bi.c): Don't eliminate first #line * src/builtin/snarf.m4 (MF_BUILTIN_MODULE): New macro. (MF_INIT): Rewrite. Revise comments. * src/builtin/init.m4 (MF_BUILTIN_MODULE): New macro. (MF_INIT): Remove. * src/builtin/body.bi: Use MF_BUILTIN_MODULE statement. * src/builtin/burst.bi: Likewise. * src/builtin/callout.bi: Likewise. * src/builtin/ctype.bi: Likewise. * src/builtin/curhdr.bi: Likewise. * src/builtin/db.bi: Likewise. * src/builtin/debug.bi: Likewise. * src/builtin/dns.bi: Likewise. * src/builtin/dspam.bi: Likewise. * src/builtin/email.bi: Likewise. * src/builtin/from.bi: Likewise. * src/builtin/geoip.bi: Likewise. * src/builtin/gethostname.bi: Likewise. * src/builtin/getopt.bi: Likewise. * src/builtin/getpw.bi: Likewise. * src/builtin/gettext.bi: Likewise. * src/builtin/header.bi: Likewise. * src/builtin/io.bi: Likewise. * src/builtin/ipaddr.bi: Likewise. * src/builtin/macro.bi: Likewise. * src/builtin/mail.bi: Likewise. * src/builtin/mbox.bi: Likewise. * src/builtin/mmq.bi: Likewise. * src/builtin/msg.bi: Likewise. * src/builtin/other.bi: Likewise. * src/builtin/prereq.bi: Likewise. * src/builtin/progress.bi: Likewise. * src/builtin/qrnt.bi: Likewise. * src/builtin/rate.bi: Likewise. * src/builtin/rcpt.bi: Likewise. * src/builtin/sa.bi: Likewise. * src/builtin/sieve.bi: Likewise. * src/builtin/spf.bi: Likewise. * src/builtin/sprintf.bi: Likewise. * src/builtin/string.bi: Likewise. * src/builtin/syslog.bi: Likewise. * src/builtin/system.bi: Likewise. * src/builtin/vars.bi: Likewise.
2018-11-03Minor changeSergey Poznyakoff1
* mflib/callout.mf4 (callout_do): Return true for null return address.
2018-11-01Quote arguments in the callout transactions in pollSergey Poznyakoff1
2018-11-01Minor fixes in the docsSergey Poznyakoff2
2018-11-01Avoid spurious warnings from libadnsSergey Poznyakoff1
* tests/resolv_a.at: Always pass -f option to resolv to prevent eventual "unknown option" messages from libadns.
2018-10-26BugfixSergey Poznyakoff1
* lib/dns.c (dns_str_is_ipv4): Don't tolerate whitespace and extra dots.
2018-07-24configure: accept any DBM type supported by mailutils as the default ↵release_8_6Sergey Poznyakoff4
implementation * NEWS: Version 8.6 * configure.ac: New configure option --with-dbm * doc/mailfromd.texi: Update. * doc/upgrade.texi: Update.
2018-07-24Reword copyright statement in accordance with the GFDL addendumSergey Poznyakoff1
This pacifies lintian.
2018-07-24BugfixesSergey Poznyakoff3
* elisp/mfl-mode.el: Fix byte-compilation. * git2chg.awk: Ignore git-svn-id: * src/pp.c (pp_extrn_shutdown): Report errors.
2018-07-24Version 8.5release_8_5Sergey Poznyakoff2
2018-07-24Update copyright yearsSergey Poznyakoff316
2018-07-24Ensure proper integer promotion in vm.Sergey Poznyakoff2
* src/prog.c (pushn): New function. Use pushn wherever a numeric or boolean return type is required. * src/prog.h (mf_c_cast): Minor change.
2018-03-23Fix dns_resolve_ipstrSergey Poznyakoff1
* lib/dns.c (dns_resolve_ipstr): Select rrtype depending on the domain in question. This should produce the same results as it was in the previous res_query implementation, which queried for T_ANY and selected the first RR type returned.
2017-11-21Ensure case-insensitive comparison of SPF record marker.Sergey Poznyakoff1
* lib/dns.c (spf_lookup): ignore case when looking for v=spf1
2017-11-21Normalize inclusion of mailutils headersSergey Poznyakoff11
2017-11-20Concatenate segments of a TXT record.Sergey Poznyakoff1
* lib/dns.c (txt_lookup): Concatenate multiple ans->rrs.manyistr.
2017-11-20Fix resolving of queries containing invalid charactersSergey Poznyakoff1
* lib/dns.c (DEFAULT_QFLAGS): Add adns_qf_quoteok_query
2017-11-03Version 8.4release_8_4Sergey Poznyakoff3
* NEWS: Update. * configure.ac: Update. * doc/upgrade.texi: Update.
2017-11-02BugfixSergey Poznyakoff2
* lib/srvman.c: Use mu_sys_sockaddr_to_astr * configure.ac: Require mailutils 3.4
2017-11-02Version 8.3release_8_3Sergey Poznyakoff2
2017-11-02Update documentationSergey Poznyakoff6
2017-11-02calloutd: implement the --resolv-conf-file optionSergey Poznyakoff1
2017-11-02Remove cover requirement from doc license textSergey Poznyakoff5
2017-11-02Documentation and configuration changesSergey Poznyakoff2
* configure.ac: Remove leftover checks for libresolv. * doc/upgrade.texi: Document recent changes.
2017-11-01Improve ADNS return status handling.Sergey Poznyakoff1
* lib/dns.c (adns_to_dns_status): Rewrite.
2017-10-25Update docs. Version 8.2.91Sergey Poznyakoff6
2017-10-25Change the rc suffix to mf in test scripts.Sergey Poznyakoff51
That was a leftover from pre-6.0 times.
2017-10-23Minor fixSergey Poznyakoff1
2017-10-23Improve DNS API; rewrite DNS testsuite.Sergey Poznyakoff20
* lib/dns.c (dnsbase_real_init): Take configuration text as argument (can be NULL). Enable adns debugging on trace9 (dnsbase_file_init): New function. (dns_reply_init): New function. (dns_reply_push): New function. (soa_check): New function. Rewrite all functions using dns_reply_init+dns_reply_push, as appropriate. * lib/dns.h (dns_reply) <maxcount, data.ptr>: New members. (dnsbase_real_init, dnsbase_file_init) (dns_reply_init, soa_check): New protos. * src/builtin/dns.bi (resolve_host): Rewrite to return all A records. (dns_replies_intersect): New static function. (primitive_ismx): Rewrite taking into account all A records. * src/main.c: New option --resolv-conf-file (mostly for checking. * tests/resolv.c: Change option handling, implement new options. * tests/atlocal.in (MF_TOPDOMAIN,MF_NAMESERVER): New variables. (at_resolv_conf): New function. * tests/Makefile.am: Add new tests. * tests/testsuite.at: Include new tests. * tests/hasmx.at: Use dedicated MF test domains, * tests/hostname.at: Likewise. * tests/ismx.at: Likewise. * tests/rescname.at: Likewise. * tests/resolve.at: Likewise. * tests/resolv_a.at: New test. * tests/resolv_mx.at: Likewise. * tests/resolv_ptr.at: Likewise. * tests/resolv_ptr_val.at: Likewise. * tests/resolv_spf.at: Likewise. * tests/resolv_txt.at: Likewise.
2017-10-21BugfixSergey Poznyakoff2
* lib/dns.c (dns_reply_resolve): Remove unneeded ntohl. * src/builtin/dns.bi): Remove unneeded htonl.
2017-10-20Improve DNS API consistencySergey Poznyakoff8
* lib/dns.c (dns_get_mx_records, getmx, getmxip): Replace with a single function mx_lookup. All uses updated.
2017-10-20Bugfixes; implement test program for DNS API.Sergey Poznyakoff7
* lib/dns.c (ptr_lookup): Reverse IP octets prior to look up. Use adns_r_ptr_raw to disable consistency checks. (ptr_validate): Return values in struct dns_reply. All uses changed. * lib/dns.h (ptr_validate): Change signature. * tests/resolv.c: New test program. * tests/Makefile.am: Add resolv.c * tests/.gitignore: Update.
2017-10-20Drop configure checks for res_ functionsSergey Poznyakoff1

Return to:

Send suggestions and report system problems to the System administrator.