.TP
\fBf <regexp>\fR selects mails whose field From, From:, or Reply-To: matches the regexp. Since the initial "From " line contains the date, this search criterion can be used to restrict to a certain year or month.
.TP
-\fBd <regexp>\fR selects mails whose field To:, Cc:, or Bcc: matches the regexp.
+\fBt <regexp>\fR selects mails whose field To:, Cc:, or Bcc: matches the regexp.
.TP
\fBp <regexp>\fR selects mails whose field From, From:, Reply-To:, To:, Cc:, or Bcc: matches the regexp.
.TP
\fBs <regexp>\fR selects mails whose field Subject: matches the regexp.
+.TP
+\fBd <regexp>\fR selects mails whose field Date: matches the regexp.
.SH "EXAMPLES"
enum {
ID_MAIL = 0,
ID_FROM,
- ID_DEST,
+ ID_TO,
ID_SUBJECT,
+ ID_DATE,
ID_PARTICIPANT,
MAX_ID
};
static char *field_names[] = {
"mail",
"from",
- "dest",
+ "to",
"subject",
+ "date",
"part"
};
},
{
- ID_DEST,
+ ID_TO,
"^\\([Tt][Oo]\\|[Cc][Cc]\\|[Bb][Cc][Cc]\\): ",
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
},
+ {
+ ID_DATE,
+ "^[Dd][Aa][Tt][Ee]: ",
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
+ },
+
};
/********************************************************************/
int mbox_id, char *mbox_value) {
return
(request->field_id == mbox_id ||
- (request->field_id == ID_PARTICIPANT && (mbox_id == ID_FROM || mbox_id == ID_DEST)))
+ (request->field_id == ID_PARTICIPANT && (mbox_id == ID_FROM || mbox_id == ID_TO)))
&&
regexec(&request->regexp, mbox_value, 0, 0, 0) == 0;
}