X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=rfc1524.h;h=a0156d767d601eae694e5bb37f605117e3573e92;hp=bc24e969087867719382ecd2d1c25ec7e1bd502d;hb=ac813896ca32d850febc2d95065ac4fa040f11f9;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1 diff --git a/rfc1524.h b/rfc1524.h index bc24e96..a0156d7 100644 --- a/rfc1524.h +++ b/rfc1524.h @@ -1,26 +1,17 @@ /* + * Copyright notice from original mutt: * Copyright (C) 1996-2000 Michael R. Elkins - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * 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 - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. - */ + * + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. + */ #ifndef _RFC1524_H #define _RFC1524_H typedef struct rfc1524_mailcap_entry { -/* char *contenttype; */ /* we don't need this, as we search for it */ + /* char *contenttype; *//* we don't need this, as we search for it */ char *command; char *testcommand; char *composecommand; @@ -29,15 +20,15 @@ typedef struct rfc1524_mailcap_entry { char *printcommand; char *nametemplate; char *convert; -/* char *description; */ /* we don't need this */ - unsigned int needsterminal : 1; /* endwin() and system */ - unsigned int copiousoutput : 1; /* needs pager, basically */ + /* char *description; *//* we don't need this */ + unsigned int needsterminal:1; /* endwin() and system */ + unsigned int copiousoutput:1; /* needs pager, basically */ } rfc1524_entry; rfc1524_entry *rfc1524_new_entry (void); void rfc1524_free_entry (rfc1524_entry **); int rfc1524_expand_command (BODY *, char *, char *, char *, int); -int rfc1524_expand_filename (char *, char *, char *, size_t); +int rfc1524_expand_filename (char *, char *, char *, ssize_t); int rfc1524_mailcap_lookup (BODY *, char *, rfc1524_entry *, int); int mutt_rename_file (char *, char *); int _mutt_rename_file (char *, char *, int);