I'm trying to add some extra mail header using the following line in the
user.js preferences file:
user_pref("mail.compose.other.header", "X-FAX-Dialstring");
The intended purpose is to use HylaFAX as a mail2fax relay.
The "X-FAX-Dialstring" does show up in my compose window, but when I try
to send the message, I get an alert window:
"An error occured while sending mail. The mail server responded: See
http://pobox.com/~djb/docs/smtplf.html.
. Please check the message and try again."
This is a typical qmail complaint about a bare LF in the message.
I use Mozilla 1.2.1 on RedHat Linux 7.3:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130
and my SMTP server is qmail 1.03 on RedHat Linux 6.1.
An idea anyone ?
TIA, Maurice
----------------------------------------------------------------------
Maurice Galland maurice...@kariboo.com
Kariboo Technologies SA Tel: +41 21 641 05 50
Chemin de la Forêt 4 Fax: +41 21 641 05 52
1018 Lausanne - Switzerland
Does this error occur with other custom headers like "X-Test-Something"?
What /value/ did you enter for the custom header?
Karsten
--
Freiheit stirbt | Fsayannes SF&F-Bibliothek:
Mit Sicherheit | http://fsayanne.tprac.de/
Karsten Düsterloh wrote:
> Maurice Galland aber hob zu reden an und schrieb:
>
>>user_pref("mail.compose.other.header", "X-FAX-Dialstring");
>
> [...]
>
>>The "X-FAX-Dialstring" does show up in my compose window, but when I try
>>to send the message, I get an alert window:
>>"An error occured while sending mail. The mail server responded: See
>>http://pobox.com/~djb/docs/smtplf.html.
>>.. Please check the message and try again."
>>This is a typical qmail complaint about a bare LF in the message.
>
>
> Does this error occur with other custom headers like "X-Test-Something"?
> What /value/ did you enter for the custom header?
I tried with the example described here:
http://www.mozilla.org/mailnews/arch/compose/hiddenprefs.html
A custom header like "Approved" with a value of a real mail address like
"firstname...@domain.com" exhibits the same behaviour.
BTW, Mozilla 1.2.1 on Win2k SP2 does not work either.
Maurice
>>> user_pref("mail.compose.other.header", "X-FAX-Dialstring");
>>> The "X-FAX-Dialstring" does show up in my compose window, but when I try
>>> to send the message, I get an alert window:
>>> "An error occured while sending mail. The mail server responded: See
>>> http://pobox.com/~djb/docs/smtplf.html.
>>> .. Please check the message and try again."
>>> This is a typical qmail complaint about a bare LF in the message.
>>
>>
>>
>> Does this error occur with other custom headers like "X-Test-Something"?
>> What /value/ did you enter for the custom header?
>
>
> I tried with the example described here:
> http://www.mozilla.org/mailnews/arch/compose/hiddenprefs.html
>
> A custom header like "Approved" with a value of a real mail address like
> "firstname...@domain.com" exhibits the same behaviour.
>
> BTW, Mozilla 1.2.1 on Win2k SP2 does not work either.
My bad. bug introduced with fix for bug 16925
There is a patch awaiting review to fix this, whether it will get
approval for 1.3 is another matter.
Problem is a simple one liner in
http://lxr.mozilla.org/seamonkey/source/mailnews/compose/resources/content/addressingWidgetOverlay.js#171
-- cut here --
Index: mailnews/compose/resources/content/addressingWidgetOverlay.js
===================================================================
RCS file:
/cvsroot/mozilla/mailnews/compose/resources/content/addressingWidgetOverlay.js,v
retrieving revision 1.76
diff -u -r1.76 addressingWidgetOverlay.js
--- mailnews/compose/resources/content/addressingWidgetOverlay.js 27 Feb
2003 09:41:40 -0000 1.76
+++ mailnews/compose/resources/content/addressingWidgetOverlay.js 3 Mar
2003 21:02:19 -0000
@@ -168,7 +168,7 @@
case "addr_reply" : addrReply += reply_Sep +
recipient; reply_Sep = ","; break;
case "addr_newsgroups" : addrNg += ng_Sep + fieldValue;
ng_Sep = ","; break;
case "addr_followup" : addrFollow += follow_Sep +
fieldValue; follow_Sep = ","; break;
- case "addr_other" : addrOther +=
awGetPopupElement(i).selectedItem.getAttribute("label") + " " +
fieldValue + "\n";break;
+ case "addr_other" : addrOther +=
awGetPopupElement(i).selectedItem.getAttribute("label") + " " +
fieldValue + "\r\n";break;
}
}
i ++;
-- end cut here --