Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

posting "some" mail through a different server?

0 views
Skip to first unread message

Wes Hardaker

unread,
Apr 7, 2004, 12:53:14 PM4/7/04
to

How come this doesn't work as group parameters:

(smtpmail-smtp-server "localhost")
(smtpmail-smtp-service 1125)
(message-send-mail-function 'smtpmail-send-it)

Specifically, I'm trying to send some of my mail through a ssh port
forwarded tunnel (through port 1125). This doesn't seem to work
though and it still tries to go through my local sendmail. I know the
-default versions of the variables shouldn't be used but I'd think the
above settings should be ok. Apparently not?


--
"In the bathtub of history the truth is harder to hold than the soap,
and much more difficult to find." -- Terry Pratchett


Jesper Harder

unread,
Apr 9, 2004, 12:21:55 PM4/9/04
to
Wes Hardaker <w...@hardakers.net> writes:

> How come this doesn't work as group parameters:
>
> (smtpmail-smtp-server "localhost")
> (smtpmail-smtp-service 1125)
> (message-send-mail-function 'smtpmail-send-it)

Just guessing: Because the Message buffer (or whatever buffer is
current at the appropriate time) doesn't inherit buffer-local values
from the Summary buffer?

--
Jesper Harder <http://purl.org/harder/>


Wes Hardaker

unread,
Apr 9, 2004, 1:13:52 PM4/9/04
to
>>>>> On Fri, 09 Apr 2004 18:21:55 +0200, Jesper Harder <har...@ifa.au.dk> said:

Jesper> Wes Hardaker <w...@hardakers.net> writes:
>> How come this doesn't work as group parameters:
>>
>> (smtpmail-smtp-server "localhost")
>> (smtpmail-smtp-service 1125)
>> (message-send-mail-function 'smtpmail-send-it)

Jesper> Just guessing: Because the Message buffer (or whatever buffer
Jesper> is current at the appropriate time) doesn't inherit
Jesper> buffer-local values from the Summary buffer?

Probably.

sigh.

Anyone have thoughts on how to make it work?

Jesper Harder

unread,
Apr 9, 2004, 1:59:37 PM4/9/04
to
Wes Hardaker <w...@hardakers.net> writes:

>>>>>> On Fri, 09 Apr 2004 18:21:55 +0200, Jesper Harder <har...@ifa.au.dk> said:
>
> Jesper> Wes Hardaker <w...@hardakers.net> writes:
>>> How come this doesn't work as group parameters:
>>>
>>> (smtpmail-smtp-server "localhost")
>>> (smtpmail-smtp-service 1125)
>>> (message-send-mail-function 'smtpmail-send-it)
>
> Jesper> Just guessing: Because the Message buffer (or whatever buffer
> Jesper> is current at the appropriate time) doesn't inherit
> Jesper> buffer-local values from the Summary buffer?
>

> Anyone have thoughts on how to make it work?

In your `gnus-posting-styles'. Maybe.

Arne Jørgensen

unread,
Apr 9, 2004, 1:20:39 PM4/9/04
to
Wes Hardaker <w...@hardakers.net> writes:

>>>>>> On Fri, 09 Apr 2004 18:21:55 +0200, Jesper Harder <har...@ifa.au.dk> said:
>
> Jesper> Wes Hardaker <w...@hardakers.net> writes:
>>> How come this doesn't work as group parameters:
>>>
>>> (smtpmail-smtp-server "localhost")
>>> (smtpmail-smtp-service 1125)
>>> (message-send-mail-function 'smtpmail-send-it)
>
> Jesper> Just guessing: Because the Message buffer (or whatever buffer
> Jesper> is current at the appropriate time) doesn't inherit
> Jesper> buffer-local values from the Summary buffer?
>
> Probably.
>
> sigh.
>
> Anyone have thoughts on how to make it work?

gnus-newsgroup-variables?

Kind regards,
--
Arne Jørgensen
Valby Langgade 272, 1. tv., DK-2500 Valby, Denmark
phone: +45 36 44 18 03, mobile: +45 21 65 01 13
email: ar...@arnested.dk, <http://arnested.dk/>

James Felix Black

unread,
Apr 9, 2004, 4:27:21 PM4/9/04
to di...@gnus.org
I'm no gnus expert, but I got this to work in my peculiar situation by
using gnus-group-parameters:

http://my.gnus.org/node/view/278

I have a vanity domain (as well as several other email sources) that's
collected and split into a local courier-imap setup. This way, I can
make sure that replies go out through the correct SMTP server.

'jfb

--
Many Shubs and Zuuls knew what it was like to be roasted in the depths
of a Sloar that day, I can tell you!


Wes Hardaker

unread,
Apr 10, 2004, 9:49:50 AM4/10/04
to di...@gnus.org
>>>>> On Fri, 09 Apr 2004 13:27:21 -0700, James Felix Black <j...@visi.com> said:

James> I'm no gnus expert, but I got this to work in my peculiar situation by
James> using gnus-group-parameters:

James> http://my.gnus.org/node/view/278

James> I have a vanity domain (as well as several other email sources)
James> that's collected and split into a local courier-imap setup.
James> This way, I can make sure that replies go out through the
James> correct SMTP server.

Thanks for the example. I'll definitely consider that.

Wes Hardaker

unread,
Apr 10, 2004, 9:52:11 AM4/10/04
to
>>>>> On Fri, 09 Apr 2004 19:59:37 +0200, Jesper Harder <har...@ifa.au.dk> said:

Jesper> In your `gnus-posting-styles'. Maybe.

That's probably the right way to do it, but unfortunately it doesn't
support setting of random variables, which would mean doing it inside
a setq inside a function defining a value for something else.

Maybe we should add support for (variable . value) in
gnus-posting-styles that would auto-create a local variable and
set it. That of course is backwards from group parameters, where
variables are supposed to be (name value) and attributes are (name
. value) which is disappointing from a consistency point of view...

Wes Hardaker

unread,
Apr 10, 2004, 9:59:19 AM4/10/04
to di...@gnus.org
>>>>> On Fri, 09 Apr 2004 19:20:39 +0200, Arne Jørgensen <ar...@arnested.dk> said:

Jesper> Wes Hardaker <w...@hardakers.net> writes:
>>>> How come this doesn't work as group parameters:
>>>>
>>>> (smtpmail-smtp-server "localhost")
>>>> (smtpmail-smtp-service 1125)
>>>> (message-send-mail-function 'smtpmail-send-it)
>>
Jesper> Just guessing: Because the Message buffer (or whatever buffer
Jesper> is current at the appropriate time) doesn't inherit
Jesper> buffer-local values from the Summary buffer?
>>
>> Probably.
>>
>> sigh.
>>
>> Anyone have thoughts on how to make it work?

Arne> gnus-newsgroup-variables?

Also would work, but would cause problems when entering multiple
groups (which I do sometimes) as it forces the variable to be global.

Jesper Harder

unread,
Apr 10, 2004, 10:01:13 AM4/10/04
to
Wes Hardaker <w...@hardakers.net> writes:

>>>>>> Jesper Harder <har...@ifa.au.dk> said:
>
> Jesper> In your `gnus-posting-styles'. Maybe.
>
> That's probably the right way to do it, but unfortunately it doesn't
> support setting of random variables, which would mean doing it
> inside a setq inside a function defining a value for something else.

It does have `eval'. E.g.

(setq gnus-posting-styles
'((".*"
(eval (set (make-local-variable 'foo) 'bar)))))

Wes Hardaker

unread,
Apr 13, 2004, 4:25:40 PM4/13/04
to
>>>>> On Sat, 10 Apr 2004 16:01:13 +0200, Jesper Harder <har...@ifa.au.dk> said:

Jesper> In your `gnus-posting-styles'. Maybe.
>>
>> That's probably the right way to do it, but unfortunately it doesn't
>> support setting of random variables, which would mean doing it
>> inside a setq inside a function defining a value for something else.

Jesper> It does have `eval'. E.g.

Missed that in the docs. Thanks.

Of course, that doesn't work either. sigh.

I suspect that when the message-send-mail-function is called its not
in the buffer in question and is a different processing buffer (I'm
guessing. I haven't looked at the internals). I've verified that in
the article I'm writing the variables are set up and local, but they
don't affect the sending of the mail....

0 new messages