]> Pileus Git - ~andy/fetchmail/commitdiff
Attempted fix for spaces in UID labels.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 22 May 2001 18:22:00 +0000 (18:22 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 22 May 2001 18:22:00 +0000 (18:22 -0000)
svn path=/trunk/; revision=3327

uid.c

diff --git a/uid.c b/uid.c
index b6f0a8af18fb3370149ea6cc0fde001dd51d67c8..57837babd6a66b02cbdb736ffa823feee405bcd9 100644 (file)
--- a/uid.c
+++ b/uid.c
@@ -134,6 +134,16 @@ void initialize_saved_lists(struct query *hostlist, const char *idfile)
             */
            if ((id = strchr(user, ' ')) != NULL )
            {
+
+             /*
+              * this is one other trick. The userhost part 
+              * may contain ' ' in the user part, at least in
+              * the lotus notes case.
+              * So we start looking for the '@' after which the
+              * host will follow with the ' ' seperator finaly id.
+              */
+               delimp1 = strchr(user, '@');
+               id = strchr(delimp1,' ');
                for (delimp1 = id; delimp1 >= user; delimp1--)
                    if ((*delimp1 != ' ') && (*delimp1 != '\t'))
                        break;