Mercurial > masqmail
comparison src/alias.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 |
comparison
equal
deleted
inserted
replaced
366:41958685480d | 367:b27f66555ba8 |
---|---|
1 /* MasqMail | 1 /* |
2 Copyright (C) 2000-2001 Oliver Kurth | 2 ** MasqMail |
3 Copyright (C) 2010 markus schnalke <meillo@marmaro.de> | 3 ** Copyright (C) 2000-2001 Oliver Kurth |
4 | 4 ** Copyright (C) 2010 markus schnalke <meillo@marmaro.de> |
5 This program is free software; you can redistribute it and/or modify | 5 ** |
6 it under the terms of the GNU General Public License as published by | 6 ** This program is free software; you can redistribute it and/or modify |
7 the Free Software Foundation; either version 2 of the License, or | 7 ** it under the terms of the GNU General Public License as published by |
8 (at your option) any later version. | 8 ** the Free Software Foundation; either version 2 of the License, or |
9 | 9 ** (at your option) any later version. |
10 This program is distributed in the hope that it will be useful, | 10 ** |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 ** This program is distributed in the hope that it will be useful, |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 ** but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 GNU General Public License for more details. | 13 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | 14 ** GNU General Public License for more details. |
15 You should have received a copy of the GNU General Public License | 15 ** |
16 along with this program; if not, write to the Free Software | 16 ** You should have received a copy of the GNU General Public License |
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 ** along with this program; if not, write to the Free Software |
18 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
18 */ | 19 */ |
19 | 20 |
20 #include "masqmail.h" | 21 #include "masqmail.h" |
21 #include <fnmatch.h> | 22 #include <fnmatch.h> |
22 | 23 |
102 } | 103 } |
103 return list; | 104 return list; |
104 } | 105 } |
105 | 106 |
106 /* | 107 /* |
107 addr is assumed to be local and no pipe address nor not-to-expand | 108 ** addr is assumed to be local and no pipe address nor not-to-expand |
108 */ | 109 */ |
109 static GList* | 110 static GList* |
110 expand_one(GList *alias_table, address *addr) | 111 expand_one(GList *alias_table, address *addr) |
111 { | 112 { |
112 GList *val_list; | 113 GList *val_list; |
118 | 119 |
119 /* expand the local alias */ | 120 /* expand the local alias */ |
120 DEBUG(6) debugf("alias: '%s' is local and will get expanded\n", addr->local_part); | 121 DEBUG(6) debugf("alias: '%s' is local and will get expanded\n", addr->local_part); |
121 | 122 |
122 if (strcasecmp(addr->local_part, "postmaster") == 0) { | 123 if (strcasecmp(addr->local_part, "postmaster") == 0) { |
123 /* postmaster must always be matched caseless | 124 /* |
124 see RFC 822 and RFC 5321 */ | 125 ** postmaster must always be matched caseless |
126 ** see RFC 822 and RFC 5321 | |
127 */ | |
125 val = (gchar *) table_find_func(alias_table, addr->local_part, strcasecmp); | 128 val = (gchar *) table_find_func(alias_table, addr->local_part, strcasecmp); |
126 } else { | 129 } else { |
127 val = (gchar *) table_find_func(alias_table, addr->local_part, conf.localpartcmp); | 130 val = (gchar *) table_find_func(alias_table, addr->local_part, conf.localpartcmp); |
128 } | 131 } |
129 if (!val) { | 132 if (!val) { |
239 foreach(non_rcpt_list, non_node) { | 242 foreach(non_rcpt_list, non_node) { |
240 address *non_addr = (address *) (non_node->data); | 243 address *non_addr = (address *) (non_node->data); |
241 if (addr_isequal(addr, non_addr, conf.localpartcmp)) { | 244 if (addr_isequal(addr, non_addr, conf.localpartcmp)) { |
242 done_list = g_list_remove_link(done_list, rcpt_node); | 245 done_list = g_list_remove_link(done_list, rcpt_node); |
243 g_list_free_1(rcpt_node); | 246 g_list_free_1(rcpt_node); |
244 /* this address is still in the children lists | 247 /* |
245 of the original address, simply mark them delivered */ | 248 ** this address is still in the children |
249 ** lists of the original address, simply | |
250 ** mark them delivered | |
251 */ | |
246 addr_mark_delivered(addr); | 252 addr_mark_delivered(addr); |
247 break; | 253 break; |
248 } | 254 } |
249 } | 255 } |
250 } | 256 } |