OpenBSD CVS

CVS log for src/usr.sbin/smtpd/mail.maildir.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Mon May 15 12:03:04 2023 UTC (12 months, 3 weeks ago) by op
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (colored)

cast to '(long long)' instead of '(long long int)'

while here adjust the spacing in some of the touched lines.
requested by deraadt@, ok tb@

Revision 1.16 / (download) - annotate - [select for diffs], Wed May 10 07:19:49 2023 UTC (13 months ago) by op
Branch: MAIN
Changes since 1.15: +1 -0 lines
Diff to previous 1.15 (colored)

add a few missing headers, reduces the diff with -portable

ok millert@

Revision 1.15 / (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_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.14: +0 -3 lines
Diff to previous 1.14 (colored)

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

ok jung@

Revision 1.14 / (download) - annotate - [select for diffs], Sat Jan 23 16:11:11 2021 UTC (3 years, 4 months ago) by rob
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored)

Remove unused variables found by clang. Additional unused var spotted by eric@.

OK mvs@, eric@

Revision 1.13 / (download) - annotate - [select for diffs], Mon Sep 30 08:31:41 2019 UTC (4 years, 8 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.12: +21 -11 lines
Diff to previous 1.12 (colored)

Allow maildir and mbox MDAs to tempfail on situations that might be
resolved over time.

While here remove mkdirs component from utils.c, which isn't used anywhere.

OK gilles@, millert@

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jul 3 03:24:03 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

snprintf/vsnprintf return < 0 on error, rather than -1.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:50 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Dec 20 19:50:39 2018 UTC (5 years, 5 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.9: +1 -2 lines
Diff to previous 1.9 (colored)

use HOST_NAME_MAX+1 instead of MAXHOSTNAMELEN, also avoids including the
sys/param.h header

Revision 1.9 / (download) - annotate - [select for diffs], Thu Dec 20 19:45:17 2018 UTC (5 years, 5 months ago) by gilles
Branch: MAIN
Changes since 1.8: +6 -1 lines
Diff to previous 1.8 (colored)

use the machine hostname, not localhost, in mail.maildir.c

spotted and ok tedu@

Revision 1.8 / (download) - annotate - [select for diffs], Sun Nov 25 14:29:24 2018 UTC (5 years, 6 months ago) by gilles
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

teach mail.maildir how to junk SpamAssassin flagged spam

reported by Thuban <thuban@yeuxdelibad.net>

Revision 1.7 / (download) - annotate - [select for diffs], Wed Oct 24 19:26:23 2018 UTC (5 years, 7 months ago) by gilles
Branch: MAIN
Changes since 1.6: +1 -0 lines
Diff to previous 1.6 (colored)

missing header

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 30 18:08:06 2018 UTC (6 years ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.5: +5 -4 lines
Diff to previous 1.5 (colored)

when path is too long, display it in error message

suggested by millert@

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 30 09:31:57 2018 UTC (6 years ago) by gilles
Branch: MAIN
Changes since 1.4: +79 -33 lines
Diff to previous 1.4 (colored)

teach mail.maildir how to junk mails if -j option is set and X-Spam is
positive, this can be enabled with the 'junk' option in maildir action

ok eric@

Revision 1.4 / (download) - annotate - [select for diffs], Tue May 29 19:32:34 2018 UTC (6 years ago) by gilles
Branch: MAIN
Changes since 1.3: +24 -33 lines
Diff to previous 1.3 (colored)

simplify mail.maildir as well as the parse.y glue

ok eric@

Revision 1.3 / (download) - annotate - [select for diffs], Sat Apr 28 10:33:41 2018 UTC (6 years, 1 month ago) by gilles
Branch: MAIN
Changes since 1.2: +58 -11 lines
Diff to previous 1.2 (colored)

handle subaddresses

ok eric@

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 9 07:17:47 2017 UTC (6 years, 10 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (colored)

at the exception of mail.local, smtpd never executes an MDA as root.

the check is performed daemon-side before even forking the child process,
but let's also check euid in the mda we ship in case someone executes them
by hand and needs to see an explicit error message.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Feb 14 16:48:30 2017 UTC (7 years, 3 months ago) by gilles
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1

add standalone maildir MDA (work in progress) which will soon obsolete the
builtin delivery_maildir backend, + makefiles, not linked to build yet

ok eric@, sunil@

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.