User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.4) Gecko/20031027
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.4) Gecko/20031027
I use autoconfig, which I documented on http://www.int-evry.fr/mci/user/procacci/netscape/en/mozilla-autoconfig-en.html
and opened a "bug" ID 222973 about lack of doc, I realized that my ldap based
lockPref gets a white space in front of every
variables fetches from ldap.
here's the symptoms:
Return-Path: <" <email address hidden>>
So mail is rejected :-(
indeed in users prefs.js there's:
user_pref("mail.identity.id1.useremail", " <email address hidden>");
Actual Results:
here's the reulted user preference:
user_pref("mail.identity.id1.useremail", " <email address hidden>");
note the unwanted "white space" in from of the email address
Expected Results:
not inserted the white space:
user_pref("mail.identity.id1.useremail", "<email address hidden>");
I found a workaround, cf bug 206294: , incrementing by 1 start_pos in function
getLDAPValue from autoconfig/preffcalls.js, see below bettwen //start //end:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.4) Gecko/20031027
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.4) Gecko/20031027
I use autoconfig, which I documented on www.int- evry.fr/ mci/user/ procacci/ netscape/ en/mozilla- autoconfig- en.html "mail.identity. id1.useremail" , " <email address hidden>");
http://
and opened a "bug" ID 222973 about lack of doc, I realized that my ldap based
lockPref gets a white space in front of every
variables fetches from ldap.
here's the symptoms:
Return-Path: <" <email address hidden>>
So mail is rejected :-(
indeed in users prefs.js there's:
user_pref(
Reproducible: Always
Steps to Reproduce: www.int- evry.fr/ mci/user/ procacci/ netscape/ en/mozilla- autoconfig- en.html# htoc10
1.use autoconfig with variables fetched from ldap, cf
http://
2.typical javascript code in my autoconfig file: var ldapmail = getLDAPValue (
values ,"mail" );
3.
Actual Results: "mail.identity. id1.useremail" , " <email address hidden>");
here's the reulted user preference:
user_pref(
note the unwanted "white space" in from of the email address
Expected Results: "mail.identity. id1.useremail" , "<email address hidden>");
not inserted the white space:
user_pref(
I found a workaround, cf bug 206294: , incrementing by 1 start_pos in function preffcalls. js, see below bettwen //start //end:
getLDAPValue from autoconfig/
function getLDAPValue(str, key) {
try {
if (str == null || key == null)
return null;
var search_key = "\n" + key + "=";
var start_pos = str.indexOf( search_ key);
if (start_pos == -1)
return null;
start_pos += search_key.length;
//start
start_pos +=1;
//end
var end_pos = str.indexOf("\n", start_pos);
if (end_pos == -1)
end_pos = str.length;
var attrib = str.substring( start_pos, end_pos);
displayError( "Jehan \nattrib: "+attrib+ "\nstart_ pos:"+start_ pos+"\nend_ pos:"+end_ pos);
getLDAPValue:
return str.substring( start_pos, end_pos);
}
displayError( "getLDAPValue" , e);
catch(e) {
}
}