got-notify-email: bufferize smtp parsing
commit09486e84b6094ffcb4dca9ecd2dea72a982a1fa9
authorOmar Polo <op@omarpolo.com>
Thu, 21 Mar 2024 08:51:22 +0000 (21 08:51 +0000)
committerOmar Polo <op@omarpolo.com>
Thu, 21 Mar 2024 08:51:22 +0000 (21 08:51 +0000)
tree289fcedce3a5f8a5172242d9f3b0cf72802a1adc
parent39910b637a9a53cc48b0c63766da691dec0af593
got-notify-email: bufferize smtp parsing

instead of read(2)ing one byte at the time, use a temporary buffer.
Special care is needed for the regress where all the replies are
queued up-front instead of a real SMTP server where we'd get a reply
only after a command.

ok and improvements stsp@
gotd/libexec/got-notify-email/got-notify-email.c