<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div class="mail" style="font-family: 'Calibri', 'DejaVu Sans';"><p>
Hi,<br />
</p>
<p>
new messages are given a default (configurable) tag, typically <i>new</i> …<br />
This is handy for automatic tagging.<br />
</p>
<p>
What about another automatic tag to re-add to an existing mail when <code>notmuch new</code> detect a moved, renamed or reflagged message …<br />
This would allow something like tag synchro through an <code>IMAP</code> mailbox, or at least keep folder and tag organization coherent while a message is moved …<br />
</p>
<p>
my usecase is :<br />
</p>
<ul class="org-ul">
<li>On PC A<br />
<ul class="org-ul">
<li>message <i>1</i> is received from <code>IMAP</code> in default mail folder, given tag <i>new</i><br />
</li>
<li>message <i>1</i> is automatically tagged <i>inbox</i> (see <i>afew</i>)<br />
</li>
</ul>
</li>
<li>On PC B<br />
<ul class="org-ul">
<li>message <i>1</i> is received from <code>IMAP</code> in default mail folder, given tag <i>new</i><br />
</li>
<li>message <i>1</i> is automatically tagged <i>inbox</i> (see <i>afew</i>)<br />
</li>
<li>manual tagging into mail client as <i>archive</i><br />
</li>
<li>mail is moved (see <i>afew</i>) to <i>Archives</i> folder due to <i>archive</i> tag<br />
</li>
<li>message <i>1</i> no more in default but <i>Archives</i> folder is synchronized back to <code>IMAP</code> server<br />
</li>
</ul>
</li>
<li>On PC A (not possible today)<br />
<ul class="org-ul">
<li>message <i>1</i> is re-received from <code>IMAP</code> in <i>Archives</i> folder, and removed from default mail folder, added tag <i>renew</i><br />
<ul class="org-ul">
<li>(today, <code>notmuch new</code> just detect the moved file, and thanksfully keep existing tags)<br />
</li>
</ul>
</li>
<li>message <i>1</i> is automatically tagged <i>archive</i> due to presence in <i>Archives</i> folder (and <i>renew</i> tag)<br />
</li>
</ul>
</li>
</ul>
<p>
Thank you,<br />
</p>
<p>
–<br />
<code>~^v^~</code> Baptiste<br />
</p>
</div>