Gnus development mailing list
 help / color / mirror / Atom feed
From: Steve Evans <stevee@gorbag.com>
Subject: Re: sending mail while unplugged
Date: Thu, 10 Jul 2003 17:36:14 +0100	[thread overview]
Message-ID: <m365ma8hkx.fsf@kosh.local> (raw)
In-Reply-To: <87ptkimt4t.fsf@pale.loc>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10 Jul 2003, sacha@myxomop.com wrote:

> Hello.
>
> Is there a way to make outgoing mail not keeped in queue, but passed
> to MTA on send when gnus is unplugged?

This is how I did it:

(defadvice message-send-mail (around unplug activate)
  (let ((old-plugged-state gnus-plugged))
    (gnus-agent-toggle-plugged t)
    ad-do-it
    (gnus-agent-toggle-plugged old-plugged-state)))

Steve
- -- 
____________________________________________________________________
Steve Evans            E-mail: mailto:stevee@gorbag.com
                       WEB:    http://www.gorbag.com
Registered Linux user #217906: http://counter.li.org
Public Encyption Key:          http://www.gorbag.com/public-key.html
____________________________________________________________________

Just because everything is different doesn't mean anything has
changed.
		-- Irene Peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>

iD8DBQE/DZX9e55D0k1e/z4RAkY3AJ0ajlUKbIz/W1ao1wlQGEt+ruqAywCZAZg8
TekB4A7a57mu34stJVwOfIM=
=/PMQ
-----END PGP SIGNATURE-----



      parent reply	other threads:[~2003-07-10 16:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-10 13:02 Alexander Kotelnikov
2003-07-10 15:03 ` Gaute B Strokkenes
2003-07-11  6:29   ` Xavier Maillard
2003-07-13 11:59     ` Kai Großjohann
2003-07-15  5:42       ` Xavier Maillard
2003-07-10 16:36 ` Steve Evans [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m365ma8hkx.fsf@kosh.local \
    --to=stevee@gorbag.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).