<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/smtp-dummy.c, branch 0.8</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.8</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.8'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2011-06-22T13:38:33Z</updated>
<entry>
<title>smtp-dummy: Prefer return rather than exit() in main.</title>
<updated>2011-06-22T13:38:33Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2011-06-21T21:54:10Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b0ba84f9e71b0f117dc0bdf0b790c6e2341d3949'/>
<id>urn:sha1:b0ba84f9e71b0f117dc0bdf0b790c6e2341d3949</id>
<content type='text'>
The main() function should be written as just another function with a
return value. This allows for more reliable code reuse. Imagine that
main() grows too large and needs to be factored into multiple
functions. At that point, exit() is probably the wrong thing, yet can
also be hard to notice as it's in less-frequently-tested exceptional
cases.
</content>
</entry>
<entry>
<title>Fix compilation warnings in test/smtp-dummy.c.</title>
<updated>2011-06-22T13:38:33Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-06-16T10:32:08Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=41a094624a079f4a145aba37e8059f8774dfaec6'/>
<id>urn:sha1:41a094624a079f4a145aba37e8059f8774dfaec6</id>
<content type='text'>
* Remove unused variables in main(): buf, bytes and greeting.
* Replace return with no value in main() with exit(3).
</content>
</entry>
<entry>
<title>test: Add test that emacs interface actually sends mail.</title>
<updated>2010-10-27T17:42:46Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-10-27T17:42:46Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=102c57c825d22c8f4741332f1e02e08f66f6cd2f'/>
<id>urn:sha1:102c57c825d22c8f4741332f1e02e08f66f6cd2f</id>
<content type='text'>
Rather than *reall* sending mail here, we instead have a new test
program, smtp-dummy which implements (a small piece of) the
server-side SMTP protocol and saves a mail message to the filename
provided. This gives us reasonable test coverage of a large chunk of
the notmuch+emacs code base (down to talking to an SMTP server with
the final mail contents).
</content>
</entry>
</feed>
