Added copyleft header. Set user email domain to localhost on startup.
Showing
1 changed file
with
19 additions
and
2 deletions
1 | /* GNU mailutils - a suite of utilities for electronic mail | ||
2 | Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. | ||
3 | |||
4 | This program is free software; you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation; either version 2, or (at your option) | ||
7 | any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program; if not, write to the Free Software | ||
16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
17 | |||
1 | #include <stdio.h> | 18 | #include <stdio.h> |
2 | #include <errno.h> | 19 | #include <errno.h> |
3 | 20 | ||
... | @@ -12,11 +29,11 @@ parse (const char *str) | ... | @@ -12,11 +29,11 @@ parse (const char *str) |
12 | size_t no = 0; | 29 | size_t no = 0; |
13 | size_t pcount = 0; | 30 | size_t pcount = 0; |
14 | int status; | 31 | int status; |
15 | |||
16 | char buf[BUFSIZ]; | 32 | char buf[BUFSIZ]; |
17 | |||
18 | address_t address = NULL; | 33 | address_t address = NULL; |
19 | 34 | ||
35 | mu_set_user_email_domain ("localhost"); | ||
36 | |||
20 | status = address_create (&address, str); | 37 | status = address_create (&address, str); |
21 | 38 | ||
22 | address_get_count (address, &pcount); | 39 | address_get_count (address, &pcount); | ... | ... |
-
Please register or sign in to post a comment