Parse Subject-regex Commands. More...
#include "config.h"#include <stddef.h>#include "mutt/lib.h"#include "email/lib.h"#include "core/lib.h"#include "gui/lib.h"#include "subjectrx.h"#include "parse/lib.h"#include "module_data.h"
Include dependency graph for subjectrx.c:Go to the source code of this file.
Functions | |
| void | subjectrx_init (struct NeoMutt *n, struct IndexModuleData *md) |
| Create new Subject Regex List. | |
| void | subjectrx_cleanup (struct IndexModuleData *md) |
| Free the Subject Regex List. | |
| static enum CommandResult | parse_unreplace_list (const struct Command *cmd, struct Buffer *line, struct ReplaceList *list, struct Buffer *err) |
| Remove a string replacement rule. | |
| static enum CommandResult | parse_replace_list (const struct Command *cmd, struct Buffer *line, struct ReplaceList *list, struct Buffer *err) |
| Parse a string replacement rule. | |
| bool | subjectrx_apply_mods (struct Envelope *env) |
| Apply regex modifications to the subject. | |
| void | subjectrx_clear_mods (struct MailboxView *mv) |
| Clear out all modified email subjects. | |
| enum CommandResult | parse_subjectrx_list (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse the 'subject-regex' command - Implements Command::parse() -. | |
| enum CommandResult | parse_unsubjectrx_list (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe) |
| Parse the 'unsubject-regex' command - Implements Command::parse() -. | |
Parse Subject-regex Commands.
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 subjectrx_init | ( | struct NeoMutt * | n, |
| struct IndexModuleData * | md ) |
Create new Subject Regex List.
Definition at line 42 of file subjectrx.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void subjectrx_cleanup | ( | struct IndexModuleData * | md | ) |
Free the Subject Regex List.
Definition at line 53 of file subjectrx.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Remove a string replacement rule.
| cmd | Command being parsed |
| line | Buffer containing string to be parsed |
| list | ReplaceList to be updated |
| err | Buffer for error messages |
| CommandResult | Result e.g. MUTT_CMD_SUCCESS |
Definition at line 68 of file subjectrx.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Parse a string replacement rule.
| cmd | Command being parsed |
| line | Buffer containing string to be parsed |
| list | ReplaceList to be updated |
| err | Buffer for error messages |
| CommandResult | Result e.g. MUTT_CMD_SUCCESS |
Definition at line 104 of file subjectrx.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool subjectrx_apply_mods | ( | struct Envelope * | env | ) |
Apply regex modifications to the subject.
| true | Subject modified |
Definition at line 148 of file subjectrx.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void subjectrx_clear_mods | ( | struct MailboxView * | mv | ) |
Clear out all modified email subjects.
| mv | Mailbox view |
Definition at line 170 of file subjectrx.c.
Here is the caller graph for this function: