Github user trixpan commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/827#discussion_r74418332
  
    --- Diff: 
nifi-nar-bundles/nifi-email-bundle/nifi-email-processors/src/main/java/org/apache/nifi/processors/email/ListenSMTP.java
 ---
    @@ -106,26 +69,17 @@
                 .addValidator(StandardValidators.PORT_VALIDATOR)
                 .build();
     
    -    protected static final PropertyDescriptor SMTP_HOSTNAME = new 
PropertyDescriptor.Builder()
    -            .name("SMTP_HOSTNAME")
    -            .displayName("SMTP hostname")
    -            .description("The hostname to be embedded into the banner 
displayed when an " +
    -                    "SMTP client connects to the processor TCP port .")
    -            .required(true)
    -            .expressionLanguageSupported(false)
    -            .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
    -            .build();
    -
    -    protected static final PropertyDescriptor SMTP_MAXIMUM_CONNECTIONS = 
new PropertyDescriptor.Builder()
    +    static final PropertyDescriptor SMTP_MAXIMUM_CONNECTIONS = new 
PropertyDescriptor.Builder()
                 .name("SMTP_MAXIMUM_CONNECTIONS")
                 .displayName("Maximum number of SMTP connection")
                 .description("The maximum number of simultaneous SMTP 
connections.")
                 .required(true)
    +            .defaultValue("1")
                 .expressionLanguageSupported(false)
                 .addValidator(StandardValidators.INTEGER_VALIDATOR)
                 .build();
     
    -    protected static final PropertyDescriptor SMTP_TIMEOUT = new 
PropertyDescriptor.Builder()
    +    static final PropertyDescriptor SMTP_TIMEOUT = new 
PropertyDescriptor.Builder()
    --- End diff --
    
    Is SMTP_TIMEOUT being enforced at the DATA stage?
    
    The server seems to hang around the data stage with the connection open no 
matter how long the client idles for.
    
    Typing . and quit do not work
    
    ```
    $ time telnet 0 2525
    Trying 0.0.0.0...
    Connected to 0.
    Escape character is '^]'.
    220 localhost ESMTP Apache NiFi
    helo .
    250 localhost
    mail from: x
    250 Ok
    rcpt to: a
    250 Ok
    data
    354 End data with <CR><LF>.<CR><LF>
    Hmmmm....
    
    .
    ^]
    telnet> quit
    Connection closed.
    
    real    1m24.348s
    user    0m0.000s
    sys     0m0.002s
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to