Added object files that should be ignored.
[cascardo/avaliacao2008.git] / listvl.c
1 /*
2  *  Copyright (C) 2007  Thadeu Lima de Souza Cascardo <cascardo@minaslivre.org>
3  *
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License along
15  *  with this program; if not, write to the Free Software Foundation, Inc.,
16  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18
19 #include <villa.h>
20 #include <cabin.h>
21 #include <glib.h>
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include "avaliacao.h"
25
26 VILLA *db;
27
28 int main (int argc, char **argv)
29 {
30   gchar *message;
31   FILE *sendmail;
32   regex_init ();
33   db = vlopen ("palestras.vl", VL_OREADER, VL_CMPINT);
34   vlcurfirst (db);
35   do
36     {
37       message = regex_create_message ();
38       sendmail = popen ("/usr/sbin/sendmail -t", "w");
39       fputs (message, sendmail);
40       pclose (sendmail);
41       g_free (message);
42     } while (vlcurnext (db));
43   vlclose (db);
44   return 0;
45 }