Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699976 - net-mail/pflogsumm dosn't know new BDAT reject type
Summary: net-mail/pflogsumm dosn't know new BDAT reject type
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-11-13 05:01 UTC by Maxim Britov
Modified: 2019-12-08 10:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Britov 2019-11-13 05:01:41 UTC
--- a/pflogsumm.pl	2012-02-06 01:25:25.000000000 +0300
+++ b/pflogsumm.pl	2019-11-13 07:23:18.607689997 +0300
@@ -1650,7 +1650,7 @@
     # Next: get the reject "reason"
     $rejReas = $rejRmdr;
     unless(defined($opts{'verbMsgDetail'})) {
-	if($rejTyp eq "RCPT" || $rejTyp eq "DATA" || $rejTyp eq "CONNECT") {	# special treatment :-(
+	if($rejTyp eq "RCPT" || $rejTyp eq "DATA" || $rejTyp eq "BDAT" || $rejTyp eq "CONNECT") {	# special treatment :-(
 	    # If there are "<>"s immediately following the reject code, that's
 	    # an email address or HELO string.  There can be *anything* in
 	    # those--incl. stuff that'll screw up subsequent parsing.  So just


Reproducible: Always

Actual Results:  
  BDAT
    from=<admin@genoson.ga> to=<xxx@xxx> proto=ESMTP helo=<genoson.ga> (total: 4)
           4   94.177.242.249  (admin@genoson.ga)
  DATA
    blocked using truncate.gbudb.net (total: 3093)
           2   94.177.242.249  (admin@genoson.ga)
    blocked using zen.spamhaus.org (total: 69)
           2   94.177.242.249  (admin@genoson.ga)

Expected Results:  
  BDAT
    blocked using truncate.gbudb.net (total: 3093)
           2   94.177.242.249  (admin@genoson.ga)
    blocked using zen.spamhaus.org (total: 69)
           2   94.177.242.249  (admin@genoson.ga)

  DATA
    blocked using truncate.gbudb.net (total: 3093)
           2   94.177.242.249  (admin@genoson.ga)
    blocked using zen.spamhaus.org (total: 69)
           2   94.177.242.249  (admin@genoson.ga)
Comment 1 Larry the Git Cow gentoo-dev 2019-12-08 10:08:30 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=458a5d589ecdce9ee81555700c88f2779d5140ce

commit 458a5d589ecdce9ee81555700c88f2779d5140ce
Author:     Tomas Mozes <hydrapolic@gmail.com>
AuthorDate: 2019-11-30 00:22:35 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2019-12-08 10:08:15 +0000

    net-mail/pflogsumm: add support for BDAT
    
    Closes: https://bugs.gentoo.org/699976
    Patch-by: Maxim Britov <ungift-ed@ya.ru>
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/13804
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 net-mail/pflogsumm/files/pflogsumm-bdat.patch | 13 +++++++++++++
 net-mail/pflogsumm/pflogsumm-1.1.5-r2.ebuild  | 24 ++++++++++++++++++++++++
 2 files changed, 37 insertions(+)