1.1.2
by Martin Pitt
Import upstream version 1.5.11+cvs20060403 |
1 |
/*
|
2 |
* Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.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
|
|
15 |
* along with this program; if not, write to the Free Software
|
|
16 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
17 |
*/
|
|
18 |
||
19 |
#ifndef _RFC1524_H
|
|
20 |
#define _RFC1524_H
|
|
21 |
||
22 |
typedef struct rfc1524_mailcap_entry { |
|
23 |
/* char *contenttype; */ /* we don't need this, as we search for it */ |
|
24 |
char *command; |
|
25 |
char *testcommand; |
|
26 |
char *composecommand; |
|
27 |
char *composetypecommand; |
|
28 |
char *editcommand; |
|
29 |
char *printcommand; |
|
30 |
char *nametemplate; |
|
31 |
char *convert; |
|
32 |
/* char *description; */ /* we don't need this */ |
|
33 |
unsigned int needsterminal : 1; /* endwin() and system */ |
|
34 |
unsigned int copiousoutput : 1; /* needs pager, basically */ |
|
35 |
} rfc1524_entry; |
|
36 |
||
37 |
rfc1524_entry *rfc1524_new_entry (void); |
|
38 |
void rfc1524_free_entry (rfc1524_entry **); |
|
39 |
int rfc1524_expand_command (BODY *, char *, char *, char *, int); |
|
40 |
int rfc1524_expand_filename (char *, char *, char *, size_t); |
|
41 |
int rfc1524_mailcap_lookup (BODY *, char *, rfc1524_entry *, int); |
|
42 |
int mutt_rename_file (char *, char *); |
|
43 |
||
44 |
#endif /* _RFC1524_H */ |