diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-05-22 18:22:00 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-05-22 18:22:00 +0000 |
commit | bade0c996acb216b7b2438266bf55b46b198a4cb (patch) | |
tree | 6072bd51780ca8c254b5c467219f1f1ff08a08eb /uid.c | |
parent | b89a04ba851ad71e269eddd52ff3273a31b107f4 (diff) | |
download | fetchmail-bade0c996acb216b7b2438266bf55b46b198a4cb.tar.gz fetchmail-bade0c996acb216b7b2438266bf55b46b198a4cb.tar.bz2 fetchmail-bade0c996acb216b7b2438266bf55b46b198a4cb.zip |
Attempted fix for spaces in UID labels.
svn path=/trunk/; revision=3327
Diffstat (limited to 'uid.c')
-rw-r--r-- | uid.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; |