OpenBSD CVS

CVS log for src/usr.sbin/smtpd/mda_variables.c


[BACK] Up to [local] / src / usr.sbin / smtpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.10 / (download) - annotate - [select for diffs], Tue Apr 23 13:34:51 2024 UTC (6 weeks, 4 days ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +20 -20 lines
Diff to previous 1.9 (colored)

correct indentation; no functional change
ok tb@

Revision 1.9 / (download) - annotate - [select for diffs], Sun Mar 19 16:43:44 2023 UTC (14 months, 3 weeks ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.8: +7 -9 lines
Diff to previous 1.8 (colored)

mda_expand_format: simplify token name extraction for %{name}
It is simpler to compute the length based on the start and end
pointers and pass that value to memcpy(), adding an explicit NUL
terminator after copying.  OK op@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 19 01:43:11 2023 UTC (14 months, 3 weeks ago) by millert
Branch: MAIN
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored)

Fix a potential NULL dereference in the unpriv child expanding %{mda}.
It is not legal to use %{mda} in anything but an mda wrapper.
mda_expand_token() will now return an error when %{mda} is used and
mda_command is NULL.  OK op@

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jun 14 17:58:15 2021 UTC (2 years, 11 months ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.6: +1 -12 lines
Diff to previous 1.6 (colored)

add required headers for smtpd.h and remove unnecessary ones in other files.

ok jung@

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 19 07:35:36 2019 UTC (4 years, 8 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

unescape / and ^ in the general delivery case, they only need to be for
maildir

ok eric@

Revision 1.5 / (download) - annotate - [select for diffs], Thu Dec 6 12:32:11 2018 UTC (5 years, 6 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.4: +27 -27 lines
Diff to previous 1.4 (colored)

in mda variables expansions, do not consider empty strings as errors since
an empty %{sender} is really a mailer-daemon and not an error

reported and initial diff by Lauri Tirkkonen <lotheac@iki.fi>
commit is a revised version of the diff based on a discussion with eric@

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jun 15 08:57:17 2018 UTC (5 years, 11 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.3: +15 -1 lines
Diff to previous 1.3 (colored)

the %{sender} variable should expand to the MAIL FROM address, so in the
case of a mailer daemon, this is an empty string, not '@'

introduce %{mbox.from} which is the From separator line representation
of a sender, usually an email address or MAILER-DAEMON if sender is empty

ok eric@

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 4 15:57:46 2018 UTC (6 years ago) by gilles
Branch: MAIN
Changes since 1.2: +10 -6 lines
Diff to previous 1.2 (colored)

add support for mda wrappers allowing postmaster to define command wrappers
that will be executed (with recipient privileges) before calling the users'
mail delivery agent

ok eric@

Revision 1.2 / (download) - annotate - [select for diffs], Thu May 24 11:38:24 2018 UTC (6 years ago) by gilles
Branch: MAIN
Changes since 1.1: +19 -19 lines
Diff to previous 1.1 (colored)

switch smtpd to new grammar

ok eric@

Revision 1.1 / (download) - annotate - [select for diffs], Fri May 26 21:30:00 2017 UTC (7 years ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2

move variables expansion out of lka_session into their own file, this is a
mechanical diff to simplify a bit the lka code and prepare for moving
variables outside of the lookup process into the chrooted mda process.
no functional change for now.

ok eric@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.