[![Release](https://img.shields.io/github/release/neomutt/neomutt.svg)](https://github.com/neomutt/neomutt/releases/latest "Latest Release Notes")
[![License: GPL v2](https://img.shields.io/badge/License-GPL%20v2-blue.svg)](https://github.com/neomutt/neomutt/blob/master/COPYRIGHT.md "Copyright Statement")
[![Code build](https://img.shields.io/travis/neomutt/neomutt.svg?label=code)](https://travis-ci.org/neomutt/neomutt "Latest Automatic Code Build")
-[![Coverity Scan](https://img.shields.io/coverity/scan/8495.svg)](https://scan.coverity.com/projects/neomutt-neomutt "Latest Code Static Analysis)
+[![Coverity Scan](https://img.shields.io/coverity/scan/8495.svg)](https://scan.coverity.com/projects/neomutt-neomutt "Latest Code Static Analysis")
[![Website build](https://img.shields.io/travis/neomutt/neomutt.github.io.svg?label=website)](https://travis-ci.org/neomutt/neomutt.github.io "Latest Website Test")
## What is NeoMutt?
- Releases: https://github.com/neomutt/neomutt/releases/latest
- Questions/Bugs: https://github.com/neomutt/neomutt/issues
- Website: https://neomutt.org
-- IRC: irc://irc.freenode.net/neomutt - please be patient.
+- IRC: [irc://irc.freenode.net/neomutt](https://webchat.freenode.net/ "IRC Web Client") - please be patient.
We're a small group, so our answer might take some time.
- Mailinglists: [neomutt-users](mailto:neomutt-users-request@neomutt.org?subject=subscribe)
and [neomutt-devel](mailto:neomutt-devel-request@neomutt.org?subject=subscribe)
#include "mutt/mutt.h"
/**
- * mutt_sasl_plain_msg - Create an SASL command
- * @param buf Buffer to store the command
- * @param buflen Length of the buffer
- * @param cmd SASL command
- * @param authz Authorisation
- * @param user Username
+ * mutt_sasl_plain_msg - Construct a base64 encoded SASL PLAIN message
+ * @param buf Destination buffer
+ * @param buflen Available space in the destination buffer
+ * @param cmd Protocol-specific string the prepend to the PLAIN message
+ * @param authz Authorization identity
+ * @param user Authentication identity (username)
* @param pass Password
* @retval >0 Success, number of chars in the command string
* @retval 0 Error
*
+ * This function can be used to build a protocol-specific SASL Response message
+ * using the PLAIN mechanism. The protocol specific command is given in the cmd
+ * parameter. The function appends a space, encodes the string derived from
+ * authz\0user\0pass using base64 encoding, and stores the result in buf.
+ *
* authz, user, and pass can each be up to 255 bytes, making up for a 765 bytes
* string. Add the two NULL bytes in between plus one at the end and we get
* 768.
#include <stdlib.h>
-/**
- * mutt_sasl_plain_msg - construct a base64 encoded SASL PLAIN message
- * @param buf Destination buffer
- * @param buflen Available space in the destination buffer
- * @param cmd Protocol-specific string the prepend to the PLAIN message
- * @param authz Authorization identity
- * @param user Authentication identity (username)
- * @param pass Password
- * @retval num Bytes written to buf
- *
- * This function can be used to build a protocol-specific SASL Response message
- * using the PLAIN mechanism. The protocol specific command is given in the cmd
- * parameter. The function appends a space, encodes the string derived from
- * authz\0user\0pass using base64 encoding, and stores the result in buf.
- *
- * Example usages for IMAP and SMTP, respectively:
- */
size_t mutt_sasl_plain_msg(char *buf, size_t buflen, const char *cmd,
const char *authz, const char *user, const char *pass);
<row>
<entry>~h <emphasis>EXPR</emphasis></entry>
<entry>
- messages which contain <emphasis>EXPR</emphasis>in the
- message header ***)
+ messages which contain <emphasis>EXPR</emphasis>in the
+ message header ***)
</entry>
</row>
<row>
<entry>=h <emphasis>STRING</emphasis></entry>
<entry>
- If IMAP is enabled, like ~h but searches for
- <emphasis>STRING</emphasis>on the server, rather than
- downloading each message and searching it locally;
- <emphasis>STRING</emphasis>must be of the form
- <quote>header: substring</quote>(see below).
+ If IMAP is enabled, like ~h but searches for
+ <emphasis>STRING</emphasis>on the server, rather than
+ downloading each message and searching it locally;
+ <emphasis>STRING</emphasis>must be of the form
+ <quote>header: substring</quote>(see below).
</entry>
</row>
<row>
<row>
<entry>~X [ <emphasis>MIN</emphasis>]-[ <emphasis>MAX</emphasis>]</entry>
<entry>
- messages with <emphasis>MIN</emphasis>to
- <emphasis>MAX</emphasis>attachments *) ****)
+ messages with <emphasis>MIN</emphasis>to
+ <emphasis>MAX</emphasis>attachments *) ****)
</entry>
</row>
<row>
}
/**
- * append_message - Associcate a message
+ * append_message - Associate a message
* @param ctx Mailbox
* @param q Notmuch query
* @param msg Notmuch message
}
/**
- * mx_comp_ops - Mailbox callback functions
+ * mx_pop_ops - Mailbox callback functions
*/
struct MxOps mx_pop_ops = {
.open = pop_open_mailbox,