Gnus is a mail reader (via emacs). The next release of gnus will make use of the mairix search engine. However, a key convenient facility is not available in the regular mairix search engine. Hence, they created a patch to add some extra features. Specifically, the patch allows for "marks" applied to emails in search groups created by mairix to propagate to the actual emails. This allows gnus to create "virtual" or "smart" groups (folders in the usual email parlance) based on search queries, where the user can treat those groups as regular groups. The details are at: http://www.gnus.org/manual/gnus_50.html#SEC50. The link to the patch is on that page. The modified ebuild merely checks if the gnus use flag is set, and if it is, applies the patch. Reproducible: Always Here's the author's description of the patch: "I've modified mairix to deal with changing maildir flags without the need to update the database. This was primarily motivated by my work on integrating mairix with the Gnus mail reader and propagating flags from the search results to the original mails, but I guess it should be useful for others, too. The problem with maildir is that the flags are stored by appending characters to the filename, e.g. "S" for seen and "R" for replied. Therefore, you currently have to update the database every time a maildir flag changes or you risk dangling symlinks. Additionally, incoming maildir messages are first put into the 'new' directory and are moved to 'cur' when the mail client has noticed the mail, which can also lead to dangling symlinks if the database is not updated. I've added a new option "-c" to mairix which will first check for the existence of the target file before creating the symlink. If the target does not exist anymore, it will change 'new' to 'cur' (if needed) and do a file name completion without the flags using the glob-function from the glibc. I've also modified the process of updating the database to deal with changing maildir flags: Currently, a maildir file with a changed flag will be seen as a new message by mairix and hence is completely rescanned (and the old one marked as dead). It will also get a new index number in the database which made it very difficult for me to deal with mairix search groups in Gnus since an IMAP server would assign a new UID to this message although it is technically still the same mail file. The patched mairix will see that the same mail still exists and only rescan the flags and update the file name in the database."
Created attachment 195044 [details, diff] Patch for enhancing gnus functionality
Created attachment 195046 [details] Modified ebuild that applies the patch if the gnus USE flag is set.
Thanks for the patch. It's been applied to mairix-0.22 that I just added to the tree. Please test the functionality since I don't use mairix with gnus.