Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* How to pass a space character as an argument to a function already quoted as an argument to another function?
@ 2009-09-04 13:25 Benjamin L. Russell
  2009-09-09 21:16 ` Ted Zlatanov
  0 siblings, 1 reply; 6+ messages in thread
From: Benjamin L. Russell @ 2009-09-04 13:25 UTC (permalink / raw)
  To: info-gnus-english

After much trial and error, I eventually narrowed down the errors
related to sending mail via SMTP in Gnus to the following error:

> Sending via mail...
> message-send-mail-with-sendmail: Sending...failed to ssmtp: recipients with -t option not supported; 

After performing a search using Google using the search phrase
"+"mailer-app-args"", I discovered the related page "[#FSCORE-158]
mailer-app-args assumes "-t" if set to a blank string "" - FreeSWITCH
Jira" (see
http://jira.freeswitch.org/browse/FSCORE-158;jsessionid=5E61B29048C44E4C670D5297069CE0CE?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aworklog-tabpanel),
with the following apparently relevant information:

> Description   	≪ Hide
> FreeSwitch Version 1.0.trunk (9029)

> if mailer-app-args=""
> then the following errors appear:
> sendmail: recipients with -t option not supported ~ /bin/cat: write error: Broken pipe

> if mailer-app-args=" " then it works fine

Accordingly, modified I my .gnus.el file as follows:

> (setq mailer-app-args " ")

> (require 'smtpmail)

However, this change had no effect.

Does anybody know how to pass " " (a space string) as an argument to
"mailer-app-args" for "message-send-with-sendmail"?

-- Benjamin L. Russell
-- 
Benjamin L. Russell  /   DekuDekuplex at Yahoo dot com
http://dekudekuplex.wordpress.com/
Translator/Interpreter / Mobile:  +011 81 80-3603-6725
"Furuike ya, kawazu tobikomu mizu no oto." -- Matsuo Basho^ 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to pass a space character as an argument to a function already quoted as an argument to another function?
  2009-09-04 13:25 How to pass a space character as an argument to a function already quoted as an argument to another function? Benjamin L. Russell
@ 2009-09-09 21:16 ` Ted Zlatanov
  2009-09-10 10:11   ` Benjamin L. Russell
  0 siblings, 1 reply; 6+ messages in thread
From: Ted Zlatanov @ 2009-09-09 21:16 UTC (permalink / raw)
  To: info-gnus-english

On Fri, 04 Sep 2009 22:25:14 +0900 DekuDekuplex@Yahoo.com (Benjamin L. Russell) wrote: 

BLR> Does anybody know how to pass " " (a space string) as an argument to
BLR> "mailer-app-args" for "message-send-with-sendmail"?

Just a stab in the dark: have you tried "' '"?

Ted

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to pass a space character as an argument to a function already quoted as an argument to another function?
  2009-09-09 21:16 ` Ted Zlatanov
@ 2009-09-10 10:11   ` Benjamin L. Russell
  2009-09-14 19:46     ` Ted Zlatanov
  0 siblings, 1 reply; 6+ messages in thread
From: Benjamin L. Russell @ 2009-09-10 10:11 UTC (permalink / raw)
  To: info-gnus-english

Ted Zlatanov <tzz@lifelogs.com> writes:

> On Fri, 04 Sep 2009 22:25:14 +0900 DekuDekuplex@Yahoo.com (Benjamin L. Russell) wrote: 
>
> BLR> Does anybody know how to pass " " (a space string) as an argument to
> BLR> "mailer-app-args" for "message-send-with-sendmail"?
>
> Just a stab in the dark: have you tried "' '"?

Where should it be specified, though?

In response, first I tried the following in my ~/.gnus.el file:

--8<---------------cut here---------------start------------->8---
(setq send-mail-function 'smtpmail-send-it)

(setq message-send-mail-function 'smtpmail-send-it)

(setq mailer-app message-send-mail-function)

(setq mailer-app-args "' '")

(if (equal system-type 'windows-nt)
    (setq sendmail-program "c:/cygwin/usr/sbin/ssmtp.exe"))

(setq smtp-default-smtp-server "smtpserver")

(require 'smtpmail)

(setq starttls-use-gnutls t)

; (setq starttls-gnutls-program "c:/Program Files/GnuTLS-2.9.3/bin/gnutls-cli.exe")

(setq starttls-gnutls-program "c:/usr/bin/gnutls-cli.exe")

;; Configure outbound mail (SMTP)
; (setq smtpmail-starttls-credentials '(("plus.smtp.mail.yahoo.com" 587 nil nil))
(setq smtpmail-starttls-credentials '(("plus.smtp.mail.yahoo.com" 465 nil nil))
      smtpmail-smtp-server "plus.smtp.mail.yahoo.com"
      smtpmail-default-smtp-server "plus.smtp.mail.yahoo.com"
      send-mail-function 'smtpmail-send-it
;       send-mail-function 'message-send-mail-with-sendmail
      message-send-mail-function 'smtpmail-send-it
;       message-send-mail-function 'message-send-mail-with-sendmail      
;       smtpmail-smtp-service 587
      smtpmail-smtp-service 465
      smtpmail-auth-credentials '(("plus.smtp.mail.yahoo.com"
; 				   587
				   465
				   "dekudekuplex@yahoo.com"
				   nil)))
--8<---------------cut here---------------end--------------->8---

However, /usr/sbin/ssmtp.exe then failed with the following error
message:

--8<---------------cut here---------------start------------->8---
Sending via mail...
No STARTTLS program was available (tried 'c:/usr/bin/gnutls-cli.exe')
smtpmail-send-command: Process SMTP not running
--8<---------------cut here---------------end--------------->8---

Accordingly, I then switched gnutls-cli.exe programs in my ~/.gnus.el file
settings from the Cygwin version to the native Windows version, as
follows:

--8<---------------cut here---------------start------------->8---
(setq starttls-gnutls-program "c:/Program Files/GnuTLS-2.9.3/bin/gnutls-cli.exe")

; (setq starttls-gnutls-program "c:/usr/bin/gnutls-cli.exe")
--8<---------------cut here---------------end--------------->8---

However, that test failed as well, with the following error message:

--8<---------------cut here---------------start------------->8---
Sending via mail...
Opening STARTTLS connection to `plus.smtp.mail.yahoo.com:465'...done
smtpmail-send-command: writing to process: invalid argument, SMTP
--8<---------------cut here---------------end--------------->8---

Accordingly, to test the arguments to smtpmail-send-command, I then
commented out the settings for mailer-app-args in my ~/.gnus.el file, as
follows:

--8<---------------cut here---------------start------------->8---
; (setq mailer-app-args "' '")
--8<---------------cut here---------------end--------------->8---

However, that test failed as well, with an identical error message,
apparently indicating that the arguments were not even being read
correctly.

Any ideas on where to specify the arguments?

-- Benjamin L. Russell
-- 
Benjamin L. Russell  /   DekuDekuplex at Yahoo dot com
http://dekudekuplex.wordpress.com/
Translator/Interpreter / Mobile:  +011 81 80-3603-6725
"Furuike ya, kawazu tobikomu mizu no oto." -- Matsuo Basho^ 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to pass a space character as an argument to a function already quoted as an argument to another function?
  2009-09-10 10:11   ` Benjamin L. Russell
@ 2009-09-14 19:46     ` Ted Zlatanov
  2009-09-15 10:28       ` Benjamin L. Russell
  0 siblings, 1 reply; 6+ messages in thread
From: Ted Zlatanov @ 2009-09-14 19:46 UTC (permalink / raw)
  To: info-gnus-english

On Thu, 10 Sep 2009 19:11:55 +0900 DekuDekuplex@Yahoo.com (Benjamin L. Russell) wrote: 

BLR> Ted Zlatanov <tzz@lifelogs.com> writes:
>> On Fri, 04 Sep 2009 22:25:14 +0900 DekuDekuplex@Yahoo.com (Benjamin L. Russell) wrote: 
>> 
BLR> Does anybody know how to pass " " (a space string) as an argument to
BLR> "mailer-app-args" for "message-send-with-sendmail"?
>> 
>> Just a stab in the dark: have you tried "' '"?

BLR> Where should it be specified, though?

Looking at your question, I am not sure where to start.  What are
mailer-app and mailer-app-args?  I don't see anything like that in the
Gnus source code.  message.el uses different function and variable names
for what you describe.  Sorry to be dense.  Are you using a specific,
maybe older, version of Gnus?

Ted

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to pass a space character as an argument to a function already quoted as an argument to another function?
  2009-09-14 19:46     ` Ted Zlatanov
@ 2009-09-15 10:28       ` Benjamin L. Russell
  2009-10-08 19:54         ` Ted Zlatanov
  0 siblings, 1 reply; 6+ messages in thread
From: Benjamin L. Russell @ 2009-09-15 10:28 UTC (permalink / raw)
  To: info-gnus-english

Ted Zlatanov <tzz@lifelogs.com> writes:

> On Thu, 10 Sep 2009 19:11:55 +0900 DekuDekuplex@Yahoo.com (Benjamin L. Russell) wrote: 
>
> BLR> Ted Zlatanov <tzz@lifelogs.com> writes:
>>> On Fri, 04 Sep 2009 22:25:14 +0900 DekuDekuplex@Yahoo.com (Benjamin L. Russell) wrote: 
>>> 
> BLR> Does anybody know how to pass " " (a space string) as an argument to
> BLR> "mailer-app-args" for "message-send-with-sendmail"?
>>> 
>>> Just a stab in the dark: have you tried "' '"?
>
> BLR> Where should it be specified, though?
>
> Looking at your question, I am not sure where to start.  What are
> mailer-app and mailer-app-args?  I don't see anything like that in the
> Gnus source code.  message.el uses different function and variable names
> for what you describe.  Sorry to be dense.  Are you using a specific,
> maybe older, version of Gnus?

No; before I switched back to "Gnus/5.11 (Gnus v5.11) Emacs/22.3
(windows-nt)," I was using the updated "Gnus/5.13 (Gnus v5.13) Emacs/23.1
(windows-nt)" (which I could not get to work correctly in sending e-mail
messages via SMTP with GnuTLS enabled).

As for "mailer-app" and "mailer-app-args," I'm not sure what they are,
either; all that I know is that one of the error messages that
/usr/sbin/ssmtp.exe in "Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt)"
returned when trying to send an e-mail message via SMTP was the
following:

> Sending via mail...
> message-send-mail-with-sendmail: Sending...failed to ssmtp: recipients with -t option not supported; 

Accordingly, when I searched with Google using the search phrase
"+"mailer-app-args"", I discovered the related page "[#FSCORE-158]
mailer-app-args assumes "-t" if set to a blank string "" - FreeSWITCH
Jira" (see
http://jira.freeswitch.org/browse/FSCORE-158;jsessionid=5E61B29048C44E4C670D5297069CE0CE?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aworklog-tabpanel),
with the following apparently relevant information:

> Description   	≪ Hide
> FreeSwitch Version 1.0.trunk (9029)

> if mailer-app-args=""
> then the following errors appear:
> sendmail: recipients with -t option not supported ~ /bin/cat: write error: Broken pipe

> if mailer-app-args=" " then it works fine

Other than passing a space character as "mailer-app-args" to ssmtp.exe,
I am not aware of how to resolve the above-mentioned error message
without changing either my Gnus version or my mailer application.

-- Benjamin L. Russell
-- 
Benjamin L. Russell  /   DekuDekuplex at Yahoo dot com
http://dekudekuplex.wordpress.com/
Translator/Interpreter / Mobile:  +011 81 80-3603-6725
"Furuike ya, kawazu tobikomu mizu no oto." -- Matsuo Basho^ 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to pass a space character as an argument to a function already quoted as an argument to another function?
  2009-09-15 10:28       ` Benjamin L. Russell
@ 2009-10-08 19:54         ` Ted Zlatanov
  0 siblings, 0 replies; 6+ messages in thread
From: Ted Zlatanov @ 2009-10-08 19:54 UTC (permalink / raw)
  To: info-gnus-english

On Tue, 15 Sep 2009 19:28:51 +0900 DekuDekuplex@Yahoo.com (Benjamin L. Russell) wrote: 

BLR> Ted Zlatanov <tzz@lifelogs.com> writes:
>> On Thu, 10 Sep 2009 19:11:55 +0900 DekuDekuplex@Yahoo.com (Benjamin L. Russell) wrote: 
>> 
BLR> Ted Zlatanov <tzz@lifelogs.com> writes:
>>>> On Fri, 04 Sep 2009 22:25:14 +0900 DekuDekuplex@Yahoo.com (Benjamin L. Russell) wrote: 
>>>> 
BLR> Does anybody know how to pass " " (a space string) as an argument to
BLR> "mailer-app-args" for "message-send-with-sendmail"?
>>>> 
>>>> Just a stab in the dark: have you tried "' '"?
>> 
BLR> Where should it be specified, though?
>> 
>> Looking at your question, I am not sure where to start.  What are
>> mailer-app and mailer-app-args?  I don't see anything like that in the
>> Gnus source code.  message.el uses different function and variable names
>> for what you describe.  Sorry to be dense.  Are you using a specific,
>> maybe older, version of Gnus?

BLR> No; before I switched back to "Gnus/5.11 (Gnus v5.11) Emacs/22.3
BLR> (windows-nt)," I was using the updated "Gnus/5.13 (Gnus v5.13) Emacs/23.1
BLR> (windows-nt)" (which I could not get to work correctly in sending e-mail
BLR> messages via SMTP with GnuTLS enabled).

BLR> As for "mailer-app" and "mailer-app-args," I'm not sure what they are,
BLR> either; all that I know is that one of the error messages that
BLR> /usr/sbin/ssmtp.exe in "Gnus/5.13 (Gnus v5.13) Emacs/23.1 (windows-nt)"
BLR> returned when trying to send an e-mail message via SMTP was the
BLR> following:

>> Sending via mail...
>> message-send-mail-with-sendmail: Sending...failed to ssmtp: recipients with -t option not supported; 

BLR> Accordingly, when I searched with Google using the search phrase
BLR> "+"mailer-app-args"", I discovered the related page "[#FSCORE-158]
BLR> mailer-app-args assumes "-t" if set to a blank string "" - FreeSWITCH
BLR> Jira" (see
BLR> http://jira.freeswitch.org/browse/FSCORE-158;jsessionid=5E61B29048C44E4C670D5297069CE0CE?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aworklog-tabpanel),
BLR> with the following apparently relevant information:

>> Description   	≪ Hide
>> FreeSwitch Version 1.0.trunk (9029)

>> if mailer-app-args=""
>> then the following errors appear:
>> sendmail: recipients with -t option not supported ~ /bin/cat: write error: Broken pipe

>> if mailer-app-args=" " then it works fine

BLR> Other than passing a space character as "mailer-app-args" to ssmtp.exe,
BLR> I am not aware of how to resolve the above-mentioned error message
BLR> without changing either my Gnus version or my mailer application.

Sorry for the delay answering.  What a pain this is...  I would write a
wrapper around ssmtp that generates the right arguments for it.  Perl,
for instance, could do it:

system('ssmtp.exe' => other-arguments-here => ' ')

Then find what's calling ssmtp and change it to call the wrapper.  Tell
us where that is.

Once you have that working, we can figure out the right way to do it
without a wrapper.  I don't know where mailer-app-args is being used so
I can't do much more, and I don't even have a Windows machine to use for
testing your scenario.

Ted

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-10-08 19:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-04 13:25 How to pass a space character as an argument to a function already quoted as an argument to another function? Benjamin L. Russell
2009-09-09 21:16 ` Ted Zlatanov
2009-09-10 10:11   ` Benjamin L. Russell
2009-09-14 19:46     ` Ted Zlatanov
2009-09-15 10:28       ` Benjamin L. Russell
2009-10-08 19:54         ` Ted Zlatanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).