ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/Mail/SpamUpdate.c
(Generate patch)

Comparing FreeBSDAdmin/Mail/SpamUpdate.c (file contents):
Revision 886 by douglas, 2006-07-10T00:55:02-07:00 vs.
Revision 887 by douglas, 2007-02-21T11:37:00-08:00

# Line 70 | Line 70 | static char *fcheck(char *value, FILE *s
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)
# Line 78 | Line 78 | static void learn()
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];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines