Gnus development mailing list
 help / color / mirror / Atom feed
* Some tips for LISP programming with Gnus
@ 2001-11-08 14:37 Vincent Bernat
  2001-11-08 15:21 ` Stainless Steel Rat
  2001-11-08 16:46 ` Andreas Fuchs
  0 siblings, 2 replies; 11+ messages in thread
From: Vincent Bernat @ 2001-11-08 14:37 UTC (permalink / raw)


Hi !

I would like to get some tips about LISP programming with Gnus. Could
some one point me to the revelant functions ?

- Is there a simple way of doing "echo 'bla bla' | mail
  machin@truc.com" using Gnus internal functions to send a mail ?

- Can I use custom "mark" (like a "read" mark) in the summary buffer ?
-- 
THE PRESIDENT DID IT, IS NOT AN EXCUSE
THE PRESIDENT DID IT, IS NOT AN EXCUSE
THE PRESIDENT DID IT, IS NOT AN EXCUSE
-+- Bart Simpson on chalkboard in episode AABF05



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

* Re: Some tips for LISP programming with Gnus
  2001-11-08 14:37 Some tips for LISP programming with Gnus Vincent Bernat
@ 2001-11-08 15:21 ` Stainless Steel Rat
  2001-11-09  7:52   ` Vincent Bernat
  2001-11-08 16:46 ` Andreas Fuchs
  1 sibling, 1 reply; 11+ messages in thread
From: Stainless Steel Rat @ 2001-11-08 15:21 UTC (permalink / raw)


* Vincent Bernat <bernat@scientist.com>  on Thu, 08 Nov 2001
| - Is there a simple way of doing "echo 'bla bla' | mail
|   machin@truc.com" using Gnus internal functions to send a mail ?

,-----
| `shell-command-on-region' is an interactive compiled Lisp function
|   -- loaded from "/usr/local/src/xemacs-21.1.14/lisp/process.elc"
| (shell-command-on-region START END COMMAND &optional OUTPUT-BUFFER REPLACE)
| 
| Documentation:
| Execute string COMMAND in inferior shell with region as input.
| Normally display output (if any) in temp buffer `*Shell Command Output*';
| Prefix arg means replace the region with it.
| 
| ...
`-----

| - Can I use custom "mark" (like a "read" mark) in the summary buffer ?

That depends on what you mean by "custom".  Without any idea what you are
trying to do... maybe.
-- 
Rat <ratinox@peorth.gweep.net>    \ Ingredients of Happy Fun Ball include an
Minion of Nathan - Nathan says Hi! \ unknown glowing substance which fell to
PGP Key: at a key server near you!  \ Earth, presumably from outer space.




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

* Re: Some tips for LISP programming with Gnus
  2001-11-08 14:37 Some tips for LISP programming with Gnus Vincent Bernat
  2001-11-08 15:21 ` Stainless Steel Rat
@ 2001-11-08 16:46 ` Andreas Fuchs
  2001-11-08 16:55   ` Jody Klymak
  1 sibling, 1 reply; 11+ messages in thread
From: Andreas Fuchs @ 2001-11-08 16:46 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 700 bytes --]

Today, Vincent Bernat <bernat@scientist.com> wrote:
> - Is there a simple way of doing "echo 'bla bla' | mail
>   machin@truc.com" using Gnus internal functions to send a mail ?

I always use this:

          (gnus-setup-message
              'message
            (message-mail <to-address>
                          <subject>))   ;; sets up the message buffer
          (message-goto-body)           ;; places point into the body
                                        ;; region.
          (insert "bla bla")            ;; into the body
          (message-send-and-exit)       ;; sends the mail and cleans up          


-- 
Andreas Fuchs, <asf@acm.org>, asf@jabber.at, antifuchs

[-- Attachment #2: Type: application/pgp-signature, Size: 231 bytes --]

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

* Re: Some tips for LISP programming with Gnus
  2001-11-08 16:46 ` Andreas Fuchs
@ 2001-11-08 16:55   ` Jody Klymak
  2001-11-08 17:58     ` Andreas Fuchs
  0 siblings, 1 reply; 11+ messages in thread
From: Jody Klymak @ 2001-11-08 16:55 UTC (permalink / raw)



> Today, Vincent Bernat <bernat@scientist.com> wrote:
> > - Is there a simple way of doing "echo 'bla bla' | mail
>>   machin@truc.com" using Gnus internal functions to send a mail ?

You may also be interested in gnus-posting-styles - for instance I play a
game that requires a logon and signoff.  Whenever I post from that
group ("mail/baha") the mail is pre-prepared....

Of course, it'd be kind of cool if "body" also accepted a file name.
Well, it probably does.

Cheers,  Jody

(setq gnus-posting-styles
      '((".*"
         (signature-file "~/.signature")
         (name "Jody Klymak")
         (organization "Ocean Mixing Group, Oregon State U."))
;; Diplomacy game...
        ("mail/baha"
         (signature-file nil)
         (body "signon xbaha booooo\n\n\n\nsignoff")
         (name nil)
         (organization nil)
         ("To" "judge@bohoho.com"))))




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

* Re: Some tips for LISP programming with Gnus
  2001-11-08 16:55   ` Jody Klymak
@ 2001-11-08 17:58     ` Andreas Fuchs
  0 siblings, 0 replies; 11+ messages in thread
From: Andreas Fuchs @ 2001-11-08 17:58 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 546 bytes --]

Today, Jody Klymak <jklymak@coas.oregonstate.edu> wrote:
> Of course, it'd be kind of cool if "body" also accepted a file name.
> Well, it probably does.

My current pet peeve with gnus-posting-styles is that it seems you can't
specify the position of the `body' text. It always gets placed under the
quoted text, before the signature. I'd really love to have the
<multipart type=mixed... sign=pgpmime> stuff appear at the very top of
the message without using gnus-.*hook.

-- 
Andreas Fuchs, <asf@acm.org>, asf@jabber.at, antifuchs

[-- Attachment #2: Type: application/pgp-signature, Size: 231 bytes --]

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

* Re: Some tips for LISP programming with Gnus
  2001-11-08 15:21 ` Stainless Steel Rat
@ 2001-11-09  7:52   ` Vincent Bernat
  2001-11-09 15:44     ` Paul Jarc
  0 siblings, 1 reply; 11+ messages in thread
From: Vincent Bernat @ 2001-11-09  7:52 UTC (permalink / raw)


OoO Vers la fin de l'après-midi du jeudi 08 novembre 2001, vers 16:21,
Stainless Steel Rat <ratinox@peorth.gweep.net> disait:

> | - Can I use custom "mark" (like a "read" mark) in the summary buffer ?

> That depends on what you mean by "custom".  Without any idea what you are
> trying to do... maybe.

Placing a special mark which is equivalent to a read mark but which is
none of the existing marks.
-- 
 JCM> Voulez-vous aidez un débutant ?
 P> un petit tour sur la faqfrg (foire aux questions
 P> [puis 20 lignes de signature et le message complet mal quoté]
 -+- P In Guide du Généalogiste Ereinté - Bien aider le débutant -+-



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

* Re: Some tips for LISP programming with Gnus
  2001-11-09  7:52   ` Vincent Bernat
@ 2001-11-09 15:44     ` Paul Jarc
  2001-11-11 13:51       ` Vincent Bernat
  0 siblings, 1 reply; 11+ messages in thread
From: Paul Jarc @ 2001-11-09 15:44 UTC (permalink / raw)


Vincent Bernat <bernat@scientist.com> wrote:
>> | - Can I use custom "mark" (like a "read" mark) in the summary buffer ?
...
> Placing a special mark which is equivalent to a read mark but which is
> none of the existing marks.

Equivalent in what way?  Tell us what end effect you're trying to
accomplish, rather than how you want to go about it; maybe there's an
easier way.


paul



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

* Re: Some tips for LISP programming with Gnus
  2001-11-09 15:44     ` Paul Jarc
@ 2001-11-11 13:51       ` Vincent Bernat
  2001-11-11 16:28         ` Kai Großjohann
  2001-11-11 19:24         ` Paul Jarc
  0 siblings, 2 replies; 11+ messages in thread
From: Vincent Bernat @ 2001-11-11 13:51 UTC (permalink / raw)


OoO Vers la fin de l'après-midi du vendredi 09 novembre 2001, vers
16:44, prj@po.cwru.edu (Paul Jarc) disait:

>> Placing a special mark which is equivalent to a read mark but which is
>> none of the existing marks.

> Equivalent in what way?  Tell us what end effect you're trying to
> accomplish, rather than how you want to go about it; maybe there's an
> easier way.

The "read" mark is an R, I would like to achieve a "read" mark with an
A (for example). But it will be considered like a read mark.



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

* Re: Some tips for LISP programming with Gnus
  2001-11-11 13:51       ` Vincent Bernat
@ 2001-11-11 16:28         ` Kai Großjohann
  2001-11-11 19:24         ` Paul Jarc
  1 sibling, 0 replies; 11+ messages in thread
From: Kai Großjohann @ 2001-11-11 16:28 UTC (permalink / raw)
  Cc: ding

Vincent Bernat <bernat@scientist.com> writes:

> The "read" mark is an R, I would like to achieve a "read" mark with an
> A (for example). But it will be considered like a read mark.

Hm.  Hmmm...  No, I think there is no built-in functionality in Gnus
for doing this.  You can, of course, hack it yourself.

kai
-- 
I like BOTH kinds of music.



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

* Re: Some tips for LISP programming with Gnus
  2001-11-11 13:51       ` Vincent Bernat
  2001-11-11 16:28         ` Kai Großjohann
@ 2001-11-11 19:24         ` Paul Jarc
  2001-11-12 12:36           ` Per Abrahamsen
  1 sibling, 1 reply; 11+ messages in thread
From: Paul Jarc @ 2001-11-11 19:24 UTC (permalink / raw)


Vincent Bernat <bernat@scientist.com> wrote:
> OoO Vers la fin de l'après-midi du vendredi 09 novembre 2001, vers
> 16:44, prj@po.cwru.edu (Paul Jarc) disait:
>>> Placing a special mark which is equivalent to a read mark but which is
>>> none of the existing marks.
>
>> Equivalent in what way?  Tell us what end effect you're trying to
>> accomplish, rather than how you want to go about it; maybe there's an
>> easier way.
>
> The "read" mark is an R, I would like to achieve a "read" mark with an
> A (for example). But it will be considered like a read mark.

But what does "considered" mean?  Considered by which parts of Gnus?
Would it mean that articles with this marks are not displayed by
default?  How would this mark interact with total-expire and
auto-expire?  Pretend the read mark doesn't exist, and then describe
all the properties you want this new mark to have.  And, again, tell
us what ultimate effect you want to achieve - what would you use this
mark for?  There may be an easier way to do it.


paul



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

* Re: Some tips for LISP programming with Gnus
  2001-11-11 19:24         ` Paul Jarc
@ 2001-11-12 12:36           ` Per Abrahamsen
  0 siblings, 0 replies; 11+ messages in thread
From: Per Abrahamsen @ 2001-11-12 12:36 UTC (permalink / raw)


prj@po.cwru.edu (Paul Jarc) writes:

> Vincent Bernat <bernat@scientist.com> wrote:
>> OoO Vers la fin de l'après-midi du vendredi 09 novembre 2001, vers
>> 16:44, prj@po.cwru.edu (Paul Jarc) disait:
>>>> Placing a special mark which is equivalent to a read mark but which is
>>>> none of the existing marks.
>>
>>> Equivalent in what way?  Tell us what end effect you're trying to
>>> accomplish, rather than how you want to go about it; maybe there's an
>>> easier way.
>>
>> The "read" mark is an R, I would like to achieve a "read" mark with an
>> A (for example). But it will be considered like a read mark.
>
> But what does "considered" mean? 

Probably a mark for which 'gnus-read-mark-p' return non-nil.

Vincent Bernat:  I suggest you do an 

        M-x apropos <ret> gnus-.*-mark <ret>

and look at the definitions of the functions and variables that look
promising. 



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

end of thread, other threads:[~2001-11-12 12:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-08 14:37 Some tips for LISP programming with Gnus Vincent Bernat
2001-11-08 15:21 ` Stainless Steel Rat
2001-11-09  7:52   ` Vincent Bernat
2001-11-09 15:44     ` Paul Jarc
2001-11-11 13:51       ` Vincent Bernat
2001-11-11 16:28         ` Kai Großjohann
2001-11-11 19:24         ` Paul Jarc
2001-11-12 12:36           ` Per Abrahamsen
2001-11-08 16:46 ` Andreas Fuchs
2001-11-08 16:55   ` Jody Klymak
2001-11-08 17:58     ` Andreas Fuchs

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).