Notmuch-specific Mailbox data. More...
#include "config.h"
#include <stddef.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "mdata.h"
#include "progress/lib.h"
#include "query.h"
Go to the source code of this file.
Functions | |
void | nm_mdata_free (void **ptr) |
Free the private Mailbox data - Implements Mailbox::mdata_free() More... | |
struct NmMboxData * | nm_mdata_new (const char *url) |
Create a new NmMboxData object from a query. More... | |
struct NmMboxData * | nm_mdata_get (struct Mailbox *m) |
Get the Notmuch Mailbox data. More... | |
Notmuch-specific Mailbox data.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file mdata.c.
void nm_mdata_free | ( | void ** | ptr | ) |
Free the private Mailbox data - Implements Mailbox::mdata_free()
The NmMboxData struct stores global Notmuch data, such as the connection to the database. This function will close the database, free the resources and the struct itself.
Definition at line 46 of file mdata.c.
struct NmMboxData * nm_mdata_new | ( | const char * | url | ) |
Create a new NmMboxData object from a query.
url | Notmuch query string |
ptr | New NmMboxData struct |
A new NmMboxData struct is created, then the query is parsed and saved within it. This should be freed using nm_mdata_free().
Definition at line 69 of file mdata.c.