projects
/
mymail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b976833
)
Comment cosmetics.
author
Francois Fleuret
<francois@fleuret.org>
Thu, 13 Jun 2013 16:49:02 +0000
(18:49 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Thu, 13 Jun 2013 16:49:02 +0000
(18:49 +0200)
mymail.c
patch
|
blob
|
history
diff --git
a/mymail.c
b/mymail.c
index
b0744be
..
6fa1814
100644
(file)
--- a/
mymail.c
+++ b/
mymail.c
@@
-21,11
+21,13
@@
/*
/*
- This command is a dumb mail indexer. It can either (1) scan
- directories containing mbox files, and create a db file containing
- for each mail a list of fields computed from the header, or (2)
- read such a db file and get all the mails matching regexp-defined
- conditions on the fields, to create a resulting mbox file.
+ mymail is a simple mail indexer. It can:
+
+ (1) scan mbox files, and create a db file containing for each mail a
+ list of fields computed from its header.
+
+ (2) read such a db file, gets all the mails matching regexp-defined
+ conditions on the fields, and generates a resulting mbox file.
It is low-tech, simple, light and fast.
It is low-tech, simple, light and fast.
@@
-84,10
+86,8
@@
enum {
ID_PARTICIPANT,
ID_BODY,
ID_TIME_INTERVAL,
ID_PARTICIPANT,
ID_BODY,
ID_TIME_INTERVAL,
- /*
ID_MAIL_ID,
ID_MAIL_ID,
- ID_REFERENCES,
- */
+ ID_REFERENCE_ID,
MAX_ID
};
MAX_ID
};
@@
-101,10
+101,8
@@
static char *field_keys[] = {
"part",
"body",
"interval",
"part",
"body",
"interval",
- /*
"mailid",
"references"
"mailid",
"references"
- */
};
/********************************************************************/
};
/********************************************************************/
@@
-161,7
+159,6
@@
static struct parsable_field fields_to_parse[] = {
{ 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_MAIL_ID,
REG_ICASE,
{
ID_MAIL_ID,
REG_ICASE,
@@
-170,12
+167,11
@@
static struct parsable_field fields_to_parse[] = {
},
{
},
{
- ID_REFERENCE
S
,
+ ID_REFERENCE
_ID
,
REG_ICASE,
"^\\(in-reply-to\\|references\\): ",
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
},
REG_ICASE,
"^\\(in-reply-to\\|references\\): ",
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
},
- */
};
};