X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=rfc2047.c;h=bed0353d52b2fe993b7ab82710eafe5571ae22b5;hp=a181e9dd3488ef2fa8602fb803c0071f888b0d9b;hb=d0dc8fb657cff90709c15d4b106415b868857f6a;hpb=ab12fea9d01b3b9bc53081ae4ccc046243f1cb9f diff --git a/rfc2047.c b/rfc2047.c index a181e9d..bed0353 100644 --- a/rfc2047.c +++ b/rfc2047.c @@ -1,3 +1,22 @@ +/* + * 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., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + * + * Copyright © 2006 Pierre Habouzit + */ + /* * Copyright notice from original mutt: * Copyright (C) 1996-2000 Michael R. Elkins @@ -20,10 +39,8 @@ #include "mutt.h" #include "charset.h" -#include "rfc2047.h" #include "thread.h" - #include #include #include @@ -533,9 +550,9 @@ void _rfc2047_encode_string (char **pd, int encode_specials, int col) *pd = e; } -void rfc2047_encode_adrlist (ADDRESS * addr, const char *tag) +void rfc2047_encode_adrlist (address_t * addr, const char *tag) { - ADDRESS *ptr = addr; + address_t *ptr = addr; int col = tag ? m_strlen(tag) + 2 : 32; while (ptr) { @@ -785,7 +802,7 @@ void rfc2047_decode (char **pd) str_adjust (pd); } -void rfc2047_decode_adrlist (ADDRESS * a) +void rfc2047_decode_adrlist (address_t * a) { while (a) { if (a->personal)