Blame view

guimb/guimb.h 2.06 KB
1
/* GNU Mailutils -- a suite of utilities for electronic mail
2 3
   Copyright (C) 1999, 2000, 2001, 2002, 2005, 2007, 2009, 2010 Free
   Software Foundation, Inc.
Sergey Poznyakoff authored
4

5
   GNU Mailutils is free software; you can redistribute it and/or modify
Sergey Poznyakoff authored
6
   it under the terms of the GNU General Public License as published by
7
   the Free Software Foundation; either version 3, or (at your option)
Sergey Poznyakoff authored
8 9
   any later version.

10
   GNU Mailutils is distributed in the hope that it will be useful,
Sergey Poznyakoff authored
11 12 13 14 15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
16
   along with GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>. */
Sergey Poznyakoff authored
17 18 19 20

#if defined(HAVE_CONFIG_H)
# include <config.h>
#endif
21 22
#include <sys/types.h>
#include <sys/stat.h>
Sergey Poznyakoff authored
23 24 25 26
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
27
#include <string.h>  /* strerror(3), strdup(3) */
Sergey Poznyakoff authored
28

29
#include <mailutils/errno.h>
Sergey Poznyakoff authored
30 31 32 33 34 35 36 37
#include <mailutils/mailbox.h>
#include <mailutils/message.h>
#include <mailutils/header.h>
#include <mailutils/body.h>
#include <mailutils/registrar.h>
#include <mailutils/error.h>
#include <mailutils/address.h>
#include <mailutils/registrar.h>
38 39
#include <mailutils/stream.h>
#include <mailutils/guile.h>
40
#include <mailutils/nls.h>
41
#include <mailutils/list.h>
42
#include <mailutils/util.h>
43 44
#include <mailutils/attribute.h>
#include <mailutils/envelope.h>
45
#include <mailutils/io.h>
Sergey Poznyakoff authored
46 47 48

extern char *program_file;
extern char *program_expr;
49
extern char *user_name;
50
extern char *default_mailbox;
51
extern mu_mailbox_t mbox;
Sergey Poznyakoff authored
52 53
extern size_t nmesg;
extern size_t current_mesg_no;
54
extern mu_message_t current_message;
Sergey Poznyakoff authored
55
extern int debug_guile;
56
extern char *maildir;
Sergey Poznyakoff authored
57

58 59 60 61 62
void collect_open_default (void);
void collect_open_mailbox_file (void);
int collect_append_file (char *name);
void collect_create_mailbox (void);
void collect_drop_mailbox (void);
63 64
int collect_output (void);

Sergey Poznyakoff authored
65
void util_error (const char *fmt, ...) MU_PRINTFLIKE(1, 2);
66
int util_tempfile (char **namep);
67