{"action":"created","issue":{"url":"https://api.github.com/repos/hanswolff/simple.mailserver/issues/2","labels_url":"https://api.github.com/repos/hanswolff/simple.mailserver/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hanswolff/simple.mailserver/issues/2/comments","events_url":"https://api.github.com/repos/hanswolff/simple.mailserver/issues/2/events","html_url":"https://github.com/hanswolff/simple.mailserver/issues/2","id":62434310,"number":2,"title":"AUTH support question","user":{"login":"hlesesne","id":117593,"avatar_url":"https://avatars.githubusercontent.com/u/117593?v=3","gravatar_id":"","url":"https://api.github.com/users/hlesesne","html_url":"https://github.com/hlesesne","followers_url":"https://api.github.com/users/hlesesne/followers","following_url":"https://api.github.com/users/hlesesne/following{/other_user}","gists_url":"https://api.github.com/users/hlesesne/gists{/gist_id}","starred_url":"https://api.github.com/users/hlesesne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlesesne/subscriptions","organizations_url":"https://api.github.com/users/hlesesne/orgs","repos_url":"https://api.github.com/users/hlesesne/repos","events_url":"https://api.github.com/users/hlesesne/events{/privacy}","received_events_url":"https://api.github.com/users/hlesesne/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hanswolff/simple.mailserver/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"hanswolff","id":1478348,"avatar_url":"https://avatars.githubusercontent.com/u/1478348?v=3","gravatar_id":"","url":"https://api.github.com/users/hanswolff","html_url":"https://github.com/hanswolff","followers_url":"https://api.github.com/users/hanswolff/followers","following_url":"https://api.github.com/users/hanswolff/following{/other_user}","gists_url":"https://api.github.com/users/hanswolff/gists{/gist_id}","starred_url":"https://api.github.com/users/hanswolff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanswolff/subscriptions","organizations_url":"https://api.github.com/users/hanswolff/orgs","repos_url":"https://api.github.com/users/hanswolff/repos","events_url":"https://api.github.com/users/hanswolff/events{/privacy}","received_events_url":"https://api.github.com/users/hanswolff/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-03-17T15:44:08Z","updated_at":"2015-03-28T14:12:12Z","closed_at":null,"body":"I was going to take a stab at implementing AUTH (probably LOGIN first) and wondered if @hanswolff had any suggestions for implementing the announcement and subsequent acceptance of credentials from the client. \r\n\r\nI can extend SmtpCommandParser with a new ProcessCommandAuth, which handles the AUTH command along with the username, however this request then requires a subsequent send by the client of the password following a 334 (I think) response. This subsequent send does not contain a command parameter, only the password. \r\n\r\nHere is a diff on a feature branch (sorry the commit is such a mess, it is just a spike and I inadvertantly included some superfluous code.\r\n\r\n[Link to ProcessCommandAuth](https://github.com/hlesesne/simple.mailserver/commit/7eb7f6cfde9eabf6852357f9cb4cf2153c8180d0#diff-df0538a9123438560222e23105741193L184)\r\n\r\nAny preference on how you would like this type of a workflow implemented?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hanswolff/simple.mailserver/issues/comments/87233191","html_url":"https://github.com/hanswolff/simple.mailserver/issues/2#issuecomment-87233191","issue_url":"https://api.github.com/repos/hanswolff/simple.mailserver/issues/2","id":87233191,"user":{"login":"hlesesne","id":117593,"avatar_url":"https://avatars.githubusercontent.com/u/117593?v=3","gravatar_id":"","url":"https://api.github.com/users/hlesesne","html_url":"https://github.com/hlesesne","followers_url":"https://api.github.com/users/hlesesne/followers","following_url":"https://api.github.com/users/hlesesne/following{/other_user}","gists_url":"https://api.github.com/users/hlesesne/gists{/gist_id}","starred_url":"https://api.github.com/users/hlesesne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlesesne/subscriptions","organizations_url":"https://api.github.com/users/hlesesne/orgs","repos_url":"https://api.github.com/users/hlesesne/repos","events_url":"https://api.github.com/users/hlesesne/events{/privacy}","received_events_url":"https://api.github.com/users/hlesesne/received_events","type":"User","site_admin":false},"created_at":"2015-03-28T14:12:12Z","updated_at":"2015-03-28T14:12:12Z","body":"Thanks. The toughest part is determining how to best handle the response from the client after the auth request, which doesn't actually contain a command, only the credential, so I can't use the standard ProcessCommandX pattern you have in place, so I wondered the best way to wait for that data. I suppose it would be similar to how you handle receiving the mail following the DATA command."}}