Subject Regex handling. More...
Go to the source code of this file.
Enumerations | |
enum | NotifySubjRx { NT_SUBJRX_ADD = 1 , NT_SUBJRX_DELETE , NT_SUBJRX_DELETE_ALL } |
Subject Regex notification types. More... | |
Functions | |
void | subjrx_init (void) |
Create new Subject Regex List. | |
void | subjrx_cleanup (void) |
Free the Subject Regex List. | |
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() -. | |
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. | |
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.h.
enum NotifySubjRx |
Subject Regex notification types.
Observers of NT_SUBJRX will not be passed any Event data.
Enumerator | |
---|---|
NT_SUBJRX_ADD | Subject Regex has been added. |
NT_SUBJRX_DELETE | Subject Regex has been deleted. |
NT_SUBJRX_DELETE_ALL | All Subject Regexes have been deleted. |
Definition at line 41 of file subjectrx.h.
void subjrx_init | ( | void | ) |
Create new Subject Regex List.
Definition at line 55 of file subjectrx.c.
void subjrx_cleanup | ( | void | ) |
Free the Subject Regex List.
Definition at line 46 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.