70 |
|
static void learn() |
71 |
|
{ |
72 |
|
typedef struct { const char *verb, *learn, *collab, *mailbox; } Job; |
73 |
< |
|
73 |
> |
|
74 |
|
Job jobs[] = { { .verb = "report", .learn = "spam", .collab = "report", .mailbox = NEGATIVE }, { .verb = "revok", .learn = "ham", .collab = "revoke", .mailbox = POSITIVE } }; |
75 |
|
|
76 |
|
for (Job *job = jobs; job != jobs + sizeof (jobs) / sizeof (*jobs); ++job) |
78 |
|
printf("\nLearning and %sing from the %s mailbox:\n", job->verb, job->mailbox); |
79 |
|
|
80 |
|
SEARCHPGM search = { .undeleted = 1 }; |
81 |
< |
|
81 |
> |
|
82 |
|
mail_search_full(streams[job - jobs], NIL, &search, SE_UID); |
83 |
|
|
84 |
|
const unsigned long *messages_ = messages[job - jobs]; |