summaryrefslogtreecommitdiffabout
path: root/src/main.c
AgeCommit message (Collapse)AuthorFiles
2010-08-21Restore some cfg statements for backward compatibility.Sergey Poznyakoff1
* src/srvcfg.h: Add copyleft header. (DEFAULT_PIDFILE): Move to lib/filenames.h. (mf_srvcfg): New struct. (mf_server_function): New proto. (parse_milter_url): New proto. * lib/filenames.h: Add copyleft header. (DEFAULT_PIDFILE): New define. * src/gram.y: Use mf_list_compare_string comparator. (initialize_variable): Avoid coredump if locus==NULL. * mailfromd.h (default_callout_url): New extern. (compare_string): Remove proto. * src/main.c (default_callout_url): New function. (compare_string): Remove function. All callers use mf_list_compare_string instead. (mf_cfg_param): Remove ehlo-domain and mail-from-address statements (duplicated in srvcfg.c) Restore the callout-url statement. (mf_server_function): Change signature. Check for "option default" for callout servers. (main): Move call to mf_srvcfg_flush several lines up, before processing the filter script. * src/srvcfg.c (parse_milter_url): Remove static qualifier. (mf_srvcfg_add, server_section_parser): Use the new calling scheme of mf_server_function. (server_config_stmt): Remove struct. (server_config_stmt):Change type struct mf_srvcfg. (server_section_param) <option>: New statement. <default>: Restore statement. * src/calloutd.c (mf_server_function): Change signature. * lib/libmf.h (mf_list_compare_string): New function. * lib/utils.c: Likewise. * mflib/callout.mf4 (ehlo_domain, mailfrom_address): Comment out. See callout.bi. (callout_open): Comment out sending the SET commands. * mflib/spf.mf: Remove dependency on phased-out mydomain.mf. (check_host): Revert to using ehlo_domain. * src/builtin/callout.bi (ehlo_domain, mailfrom_address): Define here (again). (MF_INIT): Initialize callout_server_url, ehlo_domain and mailfrom_address.
2010-08-21Fix namespace (pm -> mf)Sergey Poznyakoff1
2010-08-21Fix debugging in calloutd.Sergey Poznyakoff1
* src/dbgmod.awk: Use optional `offset' variable. * src/main.c (main): Call libcallout_init. * src/calloutd.c: Likewise. * lib/db.c (db_format_install): Register format (not database file) name. * lib/debug.c (debug_next_handle): New function. (debug_init): Register "all" only once. * lib/debug.h (debug_next_handle): New proto. * src/Makefile.am (callout-dbgmod.h): Offset handles by callout_debug_handle. * src/callout.c (libcallout_init): New function. * src/callout.h (callout_debug_handle): New extern. (libcallout_init): New proto. * etc/mailfromd.mf: Minor change.
2010-08-21Rename mfd -> srcSergey Poznyakoff1
2008-02-10Merged HEAD from branches/gmachSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1612 7a8a7f39-df28-0410-adc6-e0d955640f24
2008-02-04* configure.ac: Check for locale.hSergey Poznyakoff1
* src/db.c, src/bi_sprintf.m4, src/prog.c, src/bi_db.m4, src/engine.c: Fix format arguments (ported from branches/gmach@{2008-01-28 and 2008-01-09). * src/main.c, src/mtasim.c: Include locale.h git-svn-id: file:///svnroot/mailfromd/trunk@1603 7a8a7f39-df28-0410-adc6-e0d955640f24
2008-01-21* src/symtab.c: Ported r1584 from branches/gmach.Sergey Poznyakoff1
* NEWS: Update. * doc/mailfromd.texi: Updated. * configure.ac: Version 4.3 (preparing for the release). git-svn-id: file:///svnroot/mailfromd/trunk@1585 7a8a7f39-df28-0410-adc6-e0d955640f24
2008-01-15Ported r1556 from branches/gmach.Sergey Poznyakoff1
* src/gram.y (DELETE string): Initialize hdr.value. * src/drivers.c (code_type_header): Value can be NULL. Fix compatibility with MU CVS: * src/main.c: Use mu_log_facility. * src/mtasim.c [MAILUTILS_VERSION_NUMBER > 1290]: Include gettext.h, define _ and N_. * configure.ac: Check for mu_log_facility. git-svn-id: file:///svnroot/mailfromd/trunk@1569 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-12-13(mf_cfg_param): Add docstrings.Sergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1539 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-12-13Ported r1536 from branches/release_4_2_patches (= r1535 from tags/release_4_2):Sergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1538 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-12-12Reflect recent changes to Mailutils.Sergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1534 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-11-22* src/main.c: Implement MU configuration statements.Sergey Poznyakoff1
* tests/atlocal.in (MFOPTS): Ignore site-wide and per-user configuration files. * doc/mailfromd.texi: Document sieve interface. git-svn-id: file:///svnroot/mailfromd/trunk@1533 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-11-21* src/bi_io.m4 (write): Implement optional third argument.Sergey Poznyakoff1
* src/bi_sieve.m4: New file. * src/mailfromd.h (vlogmsg): New proto. * src/main.c (capa): Request "common" capability. (main): Register all mailbox formats (needed for sieve). * src/Makefile.am (M4_FILES): Add bi_sieve.m4 * src/mtasim.c (process_header): chop trailing newline. * mflib/sieve.mfh: New file. * mflib/Makefile.am (inc_DATA): Add sieve.mfh. * configure.ac: Set patchlevel 90. (AM_GNU_MAILUTILS): Request 'all' and 'sieve' link flags. * doc/mailfromd.texi: Document 3rd argument of write. * NEWS: Update. git-svn-id: file:///svnroot/mailfromd/trunk@1530 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-11-19* src/mu_dbm.c [WITH_GDBM]: do not bail out if the database doesSergey Poznyakoff1
not exist. * src/mailfromd.h: Add argp.h * src/bi_sa.m4: Minor fixes. * src/main.c: Support for Mailutils CVS HEAD. * configure.ac: Likewise. git-svn-id: file:///svnroot/mailfromd/trunk@1527 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-10-23Reimplement syslog-async. Thanks Simon Kelley for relicensing it under GPLv3.Sergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1520 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-09-12(log_setup): Set up gacopyz_syslog_log_printer when logging to syslog.Sergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1510 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-08-09Use URL instead of FSF address in copyright statementsSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1498 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-06-30Relicense under the GPLv3Sergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1495 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-05-24Improve docsSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1471 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-05-21Arguments are passed in the same order for both built-in and MFL-levelSergey Poznyakoff1
functions. If a builtin takes optional arguments, the actual number of arguments is passed in a hidden first argument. This allows to discern between zero arguments (emtpy strings) and absent arguments. git-svn-id: file:///svnroot/mailfromd/trunk@1461 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-05-20Implement built-in and external preprocessorsSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1456 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-05-16Add missing NLS markersSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1441 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-05-15Fix typoSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1434 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-05-14UpdateSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1431 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-05-13Mailfromd goes internationalSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1428 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-05-11Use new version output format. Prepare for 4.0Sergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1419 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-05-05Fixup pidfile and portspec according to state directory settingsSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1411 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-05-05UpdateSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1408 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-05-04FixesSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1406 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-05-04SIGHUP instructs `mailfromd' to restart itself.Sergey Poznyakoff1
Remove UNIX socket after closing it. git-svn-id: file:///svnroot/mailfromd/trunk@1405 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-04-28BugfixesSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1389 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-04-22Introduce the module systemSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1373 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-04-21Reimplement debugging macros and supporting functionsSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1371 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-04-20Implement asyncronous syslogSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1368 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-04-18When possible lock BDB databases directly.Sergey Poznyakoff1
For version 2.x fall back to external lock method. Fix handling of optional variables in built-in functions. git-svn-id: file:///svnroot/mailfromd/trunk@1365 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-04-18Implement stack tracesSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1363 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-04-16Fix Milter packet length calculation & redo Berkeley DB lockingSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1355 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-04-11Provide a special exception type for unresolved sendmail macros.Sergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1348 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-04-03Bug fixesSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1341 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-03-27BugfixSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1315 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-03-27Reimplement pre-compiled regular expressionsSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1314 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-03-15 * src/dnsbase.c (comp_pref): Secondary ordering by MX nameSergey Poznyakoff1
* src/main.c, testsuite/lib/mailfromd.exp, doc/mailfromd.texi: Discontinue support for the old semantics of options -c, -l and -L. * doc/Makefile.am (check-exceptions): Fix the rule * NEWS: Update git-svn-id: file:///svnroot/mailfromd/trunk@1289 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-03-01Start implementing test MTA simulator and Gacopyz server codeSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1269 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-02-21* src/lex.l: New built-in macro __statedir__Sergey Poznyakoff1
* NEWS: Update * src/mailfrom.h: Finally renamed to * src/mailfromd.h: this Affected files: * src/symtab.c, src/mu_dbm.c, src/engine.c, src/snarf.m4, src/dnscache.c, src/gram.y, src/dnsbase.c, src/dns.c, src/db.c, src/spf.c, src/spf.h, src/cache.c, src/optab.opc, src/prog.c, src/mf-status.mfi, src/main.c, src/Makefile.am, src/rate.c git-svn-id: file:///svnroot/mailfromd/trunk@1263 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-02-19Syntax cleanupSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1254 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-02-17Begin implementing SPF supportSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1250 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-01-24Update copyright statementsSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1241 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-01-24Hide deprecated command line optionsSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1236 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-01-24Use DEFAULT_FROM_ADDRESSSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1234 7a8a7f39-df28-0410-adc6-e0d955640f24
2007-01-23(main): Call fixup codeSergey Poznyakoff1
git-svn-id: file:///svnroot/mailfromd/trunk@1222 7a8a7f39-df28-0410-adc6-e0d955640f24

Return to:

Send suggestions and report system problems to the System administrator.