masqmail

diff src/header.c @ 367:b27f66555ba8

Reformated multiline comments to have leading asterisks on each line Now we use: /* ** comment */ This makes the indent style simpler, too.
author markus schnalke <meillo@marmaro.de>
date Thu, 20 Oct 2011 10:20:59 +0200
parents 41958685480d
children 028bc124d744
line diff
     1.1 --- a/src/header.c	Thu Sep 22 15:07:40 2011 +0200
     1.2 +++ b/src/header.c	Thu Oct 20 10:20:59 2011 +0200
     1.3 @@ -1,19 +1,20 @@
     1.4 -/*  MasqMail
     1.5 -    Copyright (C) 2000 Oliver Kurth
     1.6 -
     1.7 -    This program is free software; you can redistribute it and/or modify
     1.8 -    it under the terms of the GNU General Public License as published by
     1.9 -    the Free Software Foundation; either version 2 of the License, or
    1.10 -    (at your option) any later version.
    1.11 -
    1.12 -    This program is distributed in the hope that it will be useful,
    1.13 -    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.14 -    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.15 -    GNU General Public License for more details.
    1.16 -
    1.17 -    You should have received a copy of the GNU General Public License
    1.18 -    along with this program; if not, write to the Free Software
    1.19 -    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    1.20 +/*
    1.21 +**  MasqMail
    1.22 +**  Copyright (C) 2000 Oliver Kurth
    1.23 +**
    1.24 +**  This program is free software; you can redistribute it and/or modify
    1.25 +**  it under the terms of the GNU General Public License as published by
    1.26 +**  the Free Software Foundation; either version 2 of the License, or
    1.27 +**  (at your option) any later version.
    1.28 +**
    1.29 +**  This program is distributed in the hope that it will be useful,
    1.30 +**  but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.31 +**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.32 +**  GNU General Public License for more details.
    1.33 +**
    1.34 +**  You should have received a copy of the GNU General Public License
    1.35 +**  along with this program; if not, write to the Free Software
    1.36 +**  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    1.37  */
    1.38  #include "masqmail.h"
    1.39  
    1.40 @@ -66,9 +67,10 @@
    1.41  	return buf;
    1.42  }
    1.43  
    1.44 -/* finds list of headers matching id
    1.45 -   if id == HEAD_UNKNOWN and header == NULL finds all unknown headers
    1.46 -   else finds all headers matching header
    1.47 +/*
    1.48 +**  finds list of headers matching id
    1.49 +**  if id == HEAD_UNKNOWN and header == NULL finds all unknown headers
    1.50 +**  else finds all headers matching header
    1.51  */
    1.52  GList*
    1.53  find_header(GList *hdr_list, header_id id, gchar *hdr_str)
    1.54 @@ -129,8 +131,8 @@
    1.55  }
    1.56  
    1.57  /*
    1.58 -   fold the header at maxlen chars (newline excluded)
    1.59 -   (We exclude the newline because the RFCs deal with it this way)
    1.60 +**  fold the header at maxlen chars (newline excluded)
    1.61 +**  (We exclude the newline because the RFCs deal with it this way)
    1.62  */
    1.63  void
    1.64  header_fold(header *hdr, unsigned int maxlen)
    1.65 @@ -155,9 +157,11 @@
    1.66  	}
    1.67  	printf("stripped len: %d\n", len);
    1.68  
    1.69 -	/* FIXME: would be nice to have a better size calculation */
    1.70 -	/* (the current size + what we insert as break, twice as often as
    1.71 -	    we have breaks in the optimal case) */
    1.72 +	/*
    1.73 +	**  FIXME: would be nice to have a better size calculation
    1.74 +	**  (the current size + what we insert as break, twice as often as
    1.75 +	**  we have breaks in the optimal case)
    1.76 +	*/
    1.77  	tmp = malloc(len + 2 * (len/maxlen) * strlen("\n\t"));
    1.78  	dest = tmp;
    1.79  
    1.80 @@ -223,8 +227,10 @@
    1.81  	hdr->header = g_strdup_vprintf(fmt, args);
    1.82  	hdr->value = NULL;
    1.83  
    1.84 -	/* value shall point to the first non-whitespace char in the
    1.85 -	   value part of the header line (i.e. after the first colon) */
    1.86 +	/*
    1.87 +	**  value shall point to the first non-whitespace char in the
    1.88 +	**  value part of the header line (i.e. after the first colon)
    1.89 +	*/
    1.90  	p = strchr(hdr->header, ':');
    1.91  	if (p) {
    1.92  		p++;
    1.93 @@ -292,8 +298,10 @@
    1.94  		p++;
    1.95  	}
    1.96  	hdr->value = p;
    1.97 -	/* Note: an empty value can also mean that it's only the first part
    1.98 -	         of a folded header line */
    1.99 +	/*
   1.100 +	**  Note: an empty value can also mean that it's only the first part
   1.101 +	**  of a folded header line
   1.102 +	*/
   1.103  
   1.104  	for (i = 0; i < HEAD_NUM_IDS; i++) {
   1.105  		if (strcasecmp(header_names[i].header, buf) == 0) {