Mercurial > masqmail
comparison src/smtp_in.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) 1999-2001 Oliver Kurth | 2 ** MasqMail |
3 Copyright (C) 2010 markus schnalke <meillo@marmaro.de> | 3 ** Copyright (C) 1999-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 "readsock.h" | 22 #include "readsock.h" |
22 | 23 |
23 /* | 24 /* |
24 I always forget these rfc numbers: | 25 ** I always forget these rfc numbers: |
25 RFC 821 (SMTP) | 26 ** RFC 821 (SMTP) |
26 RFC 1869 (ESMTP) | 27 ** RFC 1869 (ESMTP) |
27 RFC 1870 (ESMTP SIZE) | 28 ** RFC 1870 (ESMTP SIZE) |
28 RFC 2197 (ESMTP PIPELINE) | 29 ** RFC 2197 (ESMTP PIPELINE) |
29 RFC 2554 (ESMTP AUTH) | 30 ** RFC 2554 (ESMTP AUTH) |
30 */ | 31 */ |
31 | 32 |
32 | 33 |
33 smtp_cmd smtp_cmds[] = { | 34 smtp_cmd smtp_cmds[] = { |
34 {SMTP_HELO, "HELO",}, | 35 {SMTP_HELO, "HELO",}, |
72 | 73 |
73 return TRUE; | 74 return TRUE; |
74 } | 75 } |
75 | 76 |
76 | 77 |
77 /* this is a quick hack: we expect the address to be syntactically correct | 78 /* |
78 and containing the mailbox only, though we first check for size in | 79 ** this is a quick hack: we expect the address to be syntactically correct |
79 smtp_in(). | 80 ** and containing the mailbox only, though we first check for size in |
80 Return false if address is too long. | 81 ** smtp_in(). |
82 ** Return false if address is too long. | |
81 */ | 83 */ |
82 static gboolean | 84 static gboolean |
83 get_address(gchar *line, gchar *addr) | 85 get_address(gchar *line, gchar *addr) |
84 { | 86 { |
85 gchar *p = line; | 87 gchar *p = line; |