<table id="table-notmuch-variables">
<title>Notmuch Variables</title>
- <tgroup cols="3">
+ <tgroup cols="4">
<thead>
<row>
<entry>Name</entry>
<entry>Type</entry>
<entry>Default</entry>
+ <entry>Note</entry>
</row>
</thead>
<tbody>
<entry><literal>nm_db_limit</literal></entry>
<entry>number</entry>
<entry><literal>0</literal></entry>
+ <entry></entry>
</row>
<row>
<entry><literal>nm_default_uri</literal></entry>
<entry>string</entry>
<entry>(empty)</entry>
+ <entry></entry>
</row>
<row>
<entry><literal>nm_exclude_tags</literal></entry>
<entry>string</entry>
<entry>(empty)</entry>
+ <entry></entry>
</row>
<row>
<entry><literal>nm_open_timeout</literal></entry>
<entry>number</entry>
<entry><literal>5</literal></entry>
+ <entry></entry>
</row>
<row>
<entry><literal>nm_query_type</literal></entry>
<entry>string</entry>
<entry><literal>messages</literal></entry>
+ <entry></entry>
</row>
<row>
<entry><literal>nm_record</literal></entry>
<entry>boolean</entry>
<entry><literal>no</literal></entry>
+ <entry></entry>
</row>
<row>
<entry><literal>nm_record_tags</literal></entry>
<entry>string</entry>
<entry>(empty)</entry>
+ <entry></entry>
</row>
<row>
<entry><literal>nm_unread_tag</literal></entry>
<entry>string</entry>
<entry><literal>unread</literal></entry>
+ <entry></entry>
</row>
<row>
<entry><literal>vfolder_format</literal></entry>
<entry>string</entry>
<entry><literal>%6n(%6N) %f</literal></entry>
+ <entry></entry>
</row>
<row>
<entry><literal>virtual_spoolfile</literal></entry>
<entry>boolean</entry>
<entry><literal>no</literal></entry>
+ <entry>
+ Unnecessary since <link linkend="spoolfile">$spoolfile</link>
+ supports mailbox descriptions.
+ </entry>
</row>
</tbody>
</tgroup>
/*
** .pp
** If your spool mailbox is in a non-default place where NeoMutt can't find
- ** it, you can specify its location with this variable.
+ ** it, you can specify its location with this variable. The description from
+ ** "named-mailboxes" or "virtual-mailboxes" may be used for the spoolfile.
** .pp
** If not specified, then the environment variables \fC$$$MAIL\fP and
** \fC$$$MAILDIR\fP will be checked.
** .pp
** When \fIset\fP, NeoMutt will use the first defined virtual mailbox (see
** virtual-mailboxes) as a spool file.
+ **
+ ** This command is now unnecessary. $$spoolfile has been extended to support
+ ** mailbox descriptions as a value.
*/
#endif
{ "visual", DT_COMMAND, R_NONE, &C_Visual, IP "vi" },
if (mutt_buffer_len(folder) == 0)
{
if (C_Spoolfile)
- mutt_buffer_strcpy(folder, C_Spoolfile);
+ {
+ // Check if C_Spoolfile corresponds a mailboxes' description.
+ struct Mailbox *desc_m = mutt_find_mailbox_desc(C_Spoolfile);
+ if (desc_m)
+ mutt_buffer_strcpy(folder, desc_m->realpath);
+ else
+ mutt_buffer_strcpy(folder, C_Spoolfile);
+ }
else if (C_Folder)
mutt_buffer_strcpy(folder, C_Folder);
/* else no folder */