Subject Regex handling. More...
#include "config.h"
#include <stddef.h>
#include <stdint.h>
#include "mutt/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "subjectrx.h"
#include "parse/lib.h"
#include "mview.h"
Go to the source code of this file.
Functions | |
void | subjrx_cleanup (void) |
Free the Subject Regex List. | |
void | subjrx_init (void) |
Create new Subject Regex List. | |
static enum CommandResult | parse_unreplace_list (struct Buffer *buf, struct Buffer *s, struct ReplaceList *list, struct Buffer *err) |
Remove a string replacement rule - Implements Command::parse() -. | |
static enum CommandResult | parse_replace_list (struct Buffer *buf, struct Buffer *s, struct ReplaceList *list, struct Buffer *err) |
Parse a string replacement rule - Implements Command::parse() -. | |
bool | subjrx_apply_mods (struct Envelope *env) |
Apply regex modifications to the subject. | |
void | subjrx_clear_mods (struct MailboxView *mv) |
Clear out all modified email subjects. | |
enum CommandResult | parse_subjectrx_list (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse the 'subjectrx' command - Implements Command::parse() -. | |
enum CommandResult | parse_unsubjectrx_list (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse the 'unsubjectrx' command - Implements Command::parse() -. | |
Variables | |
static struct ReplaceList | SubjectRegexList = STAILQ_HEAD_INITIALIZER(SubjectRegexList) |
List of subjectrx rules for modifying the Subject: | |
static struct Notify * | SubjRxNotify = NULL |
Notifications: NotifySubjRx. | |
Subject Regex handling.
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 subjectrx.c.
void subjrx_cleanup | ( | void | ) |
Free the Subject Regex List.
Definition at line 46 of file subjectrx.c.
void subjrx_init | ( | void | ) |
Create new Subject Regex List.
Definition at line 55 of file subjectrx.c.
bool subjrx_apply_mods | ( | struct Envelope * | env | ) |
Apply regex modifications to the subject.
true | Subject modified |
Definition at line 133 of file subjectrx.c.
void subjrx_clear_mods | ( | struct MailboxView * | mv | ) |
Clear out all modified email subjects.
mv | Mailbox view |
Definition at line 152 of file subjectrx.c.
|
static |
List of subjectrx rules for modifying the Subject:
Definition at line 40 of file subjectrx.c.
|
static |
Notifications: NotifySubjRx.
Definition at line 41 of file subjectrx.c.