"RCPT TO" command_error exception

A. Brandt
2010-10-20
2013-04-25
  • A. Brandt
    A. Brandt
    2010-10-20

    It would be nice to return the failed email address in a command_error exception:

    SMPTTransport.cpp line 586:
    - throw exceptions::command_error("RCPT TO", resp->getText());
    + throw exceptions::command_error("RCPT TO", resp->getText(), mbox.getEmail());

    Then ex.what() returns:
    Error while executing command 'RCPT TO': hugo.egon@somewhere.com.

    Best Regards
    Achim

     
  • Hello,

    Nice idea!
    Done, thank you.

    Vincent