newbie question: trouble with mail splitting

2019-05-27 Thread Karl
Hello gnus-list,

i'm happy to use gnus for reading and writing mails.
Now i want to split mails, but i do not understand how it works.

here is my config, but it doesnt work. All mail goes to mail.misc.
Does anyone knows what to do?

;; split
;; client-side imap splitting ermöglichen
(gnus-group-split-setup t)
(setq nnimap-split-download-body t)
(setq nnmail-crosspost nil)
(setq nnmail-split-methods 'nnmail-split-fancy)
(setq nnmail-split-fancy
  '(|
;;(: spam-split 'spam-use-regex-headers)
(to "emacs-orgm...@gnu.org" "nnmaildir+Lokal:OrgDigest")
(from ".*n3.nabble.com" "nnmaildir+Lokal:notmuch")
(from ".*pinterest.com" "nnmaildir+Lokal:Pinterest")
(subject "^FRITZ!.*" "nnmaildir+Lokal:fritz")
(from "fo...@papyrus.de" "nnmaildir+Lokal:Papyrus")
;;(: spam-split)
("mail.misc")
))

;; initialisiere split
(setq gnus-group-split-setup t)
(setq nnmail-pre-get-new-mail-hook '(gnus-group-split-update))

(setq gnus-secondary-select-methods '(
(nnimap "GMail"
  (nnimap-address "imap.gmail.com")
  (nnimap-server-port "imaps")
  (nnimap-user 
"x...@googlemail.com")
  (nnimap-stream ssl)
  (nnimap-split-methods 
'nnmail-split-fancy)
  (get-new-mail t)
  (nnir-search-engine imap)
  )
  ))

My system is Linux Mint 19.1
Emacs 26.2

Regards
Poul


___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Disabling threading on a per-group basis

2011-01-29 Thread Karl Kleinpaste
Yuri D'Elia  writes:
> Is is possible to disable threading on a per-group basis?

(setq gnus-select-group-hook
  (function
(lambda ()
   ;; Enable threading in certain groups.
   (gnus-summary-toggle-threads
 (if (string-match "gnu.emacs.gnus\\|news.software" 
gnus-newsgroup-name))
  1 nil))
   ))
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Reply to self behavior

2010-12-22 Thread Karl Kleinpaste
Yuri D'Elia  writes:
> You know, I went away from Gnus around 4-5 years ago because my .gnus
> reached >10k

$ wc Mail/.private/.gnus.el
  801  2563 37404 Mail/.private/.gnus.el

Piker. :-)
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: How to sort messages by date by reverse order, and unset expiry for all messages?

2009-08-31 Thread Karl Kleinpaste
dekudekup...@yahoo.com (Benjamin L. Russell) writes:
> Apparently, the argument "REVERSE" doesn't work; instead, one needs to
> specify "not" followed by the sorting option

Curious.  A prefix arg works when using it interactively,
/viz./ `C-u C-c C-s C-d' for reversed date sort.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: How to sort messages by date by reverse order, and unset expiry for all messages?

2009-08-28 Thread Karl Kleinpaste
Also, info://Gnus/Sorting+the+Summary+Buffer
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: How to sort messages by date by reverse order, and unset expiry for all messages?

2009-08-28 Thread Karl Kleinpaste
dekudekup...@yahoo.com (Benjamin L. Russell) writes:
> Does anybody know a keyboard command and a configuration setting for
> sorting messages by date in reverse order within a group?  There does
> not seem to be documentation specific for this configuration option.

C-c C-s C-d runs `gnus-summary-sort-by-date'

`gnus-summary-sort-by-date' is an interactive compiled Lisp function
  -- loaded from "gnus-sum"
(gnus-summary-sort-by-date &optional REVERSE)

Documentation:
Sort the summary buffer by date.
Argument REVERSE means reverse order.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: ``Quips'' in signatures

2009-08-17 Thread Karl Kleinpaste
Merciadri Luca  writes:
> I have seen that many of the users of this Usenet group always use
> citations at the end of their mail (esp. in their signature).
> How can I manage to do this *simply*?

info://Gnus/Posting+Styles

Simple, eh, don't know about that.  Here's an abbreviated instance of
mine.  Basically, posting styles let you define a bunch of header and
trailer properties based on a conditional opening expression.  Notice
the literal quote that begins the list.  Also observe that any header
name can be specified by double-quoted reference, but certain tokens are
special: address, signature.

(setq gnus-posting-styles
  '(;; 
;; general public (not mailing list) posting: special "Reply-To".
((or (string-match "personal\\.usenet" gnus-newsgroup-name)
 (and (message-news-p)
  (string-match "^nntp\\+news:"; gnus-newsgroup-name)))
 ("Reply-To" (concat "MyGivenName+usenet@"
 mail-host-address
 " (figure it out: k...@k.o)"))
 (address (concat "invalid@" mail-host-address))
 )
;; 
;; private reply to public posting: gcc as "general".
((and (not (boundp 'post))
  (string-match "^\\(list\\|nntp\\+\\)" gnus-newsgroup-name))
 ("Gcc" "personal.general"))
;; 
;; anything w/mailer needs no help (mostly majordomo).
("mailer-daemon"
 ("X-Face" nil)
 ("Gcc" nil))
;; 
;; have a little politically-incorrect fun.
("survival"
 (signature "Hit man for hire."))
;; 
;; carnegie-mellon: act like i'm still there.
("cmu"
 (address "ka...@cs.cmu.edu"
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: [OT] Gnus logo

2009-07-12 Thread Karl Kleinpaste
There are also picon images for Gnus in the standard picon tarball, in
news/gnu/emacs/gnus.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: news server name change

2009-07-02 Thread Karl Kleinpaste
Sivaram Neelakantan  writes:
> Where else should I be correcting the entries and preserve my
> subscriptions and stuff?

Look in .newsrc.eld and .gnus for references to the old name.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: What's the best way to attach an article?

2008-07-15 Thread Karl Kleinpaste
Ulf Stegemann <[EMAIL PROTECTED]> writes:
> Yes, of course I can attach the article /file/ (at least with nnml) but
> the mime part is named rather strange then and what's more important, the
> article is not processed like it is when doing a forward (e.g. cleaning
> of headers etc.)

What MIME type did you give it?  You should identify it as
message/rfc822.  Then it will get the right MIME content descriptors so
that it is processed properly when displayed.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: What's the best way to attach an article?

2008-07-15 Thread Karl Kleinpaste
Ulf Stegemann <[EMAIL PROTECTED]> writes:
> I'd like to attach one or more messages (articles from nnml and/or
> nnimap backends) to a message as rfc822 MIME section but I'm not quite
> sure about the best way to do this in Gnus.

`mml-attach-file' is an interactive compiled Lisp function
  -- loaded from "mml"
(mml-attach-file FILE &optional TYPE DESCRIPTION DISPOSITION)

Documentation:
Attach a file to the outgoing MIME message.
The file is not inserted or encoded until you send the message with
`C-c C-c' or `C-c C-s'.

FILE is the name of the file to attach.  TYPE is its
content-type, a string of the form "type/subtype".  DESCRIPTION
is a one-line description of the attachment.  The DISPOSITION
specifies how the attachment is intended to be displayed.  It can
be either "inline" (displayed automatically within the message
body) or "attachment" (separate from the body).

mml-attach-file is on C-c C-a, C-c return f, C-c C-m f
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: nnml article number gaps

2007-12-02 Thread Karl Kleinpaste
nobrowser <[EMAIL PROTECTED]> writes:
> Is there any non-manual way of squeezing the gaps in article numbers
> after mass deletion?

Move all the articles to the same group, thereby causing deletion and
re-insertion within the group.

M P A B m group.name RET

M P Amark all articles, then
B m  move all those articles
group.name   to the group you're in
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: What's NOV? Should gnus-nov-is-evil be set to t?

2007-09-13 Thread Karl Kleinpaste
Katsumi Yamaoka wrote:
>> [1] It was GNUS in those days.  How simple the one I used first was:
>> http://www.jpl.org/ftp/pub/elisp/attic/gnus-3.12.tar.Z

Leo <[EMAIL PROTECTED]> writes:
> That is impressive and it looks like it still runs in modern GNU Emacs.

The first version I used was 2.10, and was where I first did mail+news
integration (nnspool only, using external shell script assistance).

It's amazing, or perhaps alarming, how far Gnus has gone over the years.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: automatic article washing ?

2007-08-23 Thread Karl Kleinpaste
Karl Kleinpaste <[EMAIL PROTECTED]> writes:
> (add-to-list 'gnus-article-display-hook 'gnus-article-treat-dumbquotes)

Er, make that add-hook.  *sigh*
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: automatic article washing ?

2007-08-23 Thread Karl Kleinpaste
Nicolas KOWALSKI <[EMAIL PROTECTED]> writes:
> I would like the gnus-article-treat-dumbquotes function (called by the
> keys `W d' when viewing an article) to be called everytime.

(add-to-list 'gnus-article-display-hook 'gnus-article-treat-dumbquotes)

or possibly 'gnus-article-prepare-hook instead.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: how to kill all the news match a regexp automatically?

2007-08-12 Thread Karl Kleinpaste
sunway <[EMAIL PROTECTED]> writes:
> I always get news whose body matches "foo", how to prevent it from
> showing to me when i enter the group?

There is code in INN to auto-generate Keywords headers, enabled via
Keywords:full
in overview.fmt and
keywords:   true
keyartlimit:10
keylimit:   512
keymaxwords:250
in inn.conf.

If your server is INN, and has this running, then you can score on
"extra" overview headers with
(setq gnus-extra-headers '(Keywords))
by using an appropriate score command (e.g. `-1000 L e s p Keywords RET').

If your server is INN but doesn't have keyword auto-generation turned
on, agitate with your Usenet provider to do so.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Newbies questions

2007-07-26 Thread Karl Kleinpaste
Tassilo Horn <[EMAIL PROTECTED]> writes:
> Maybe it doesn't work for him because
>   gnus-demon-scan-news-and-update
>   gnus-demon-scan-mail-and-update
> are no predefined gnus functions?

No, those are the functions I gave him.

But what I did wrong was to neglect to provide the base function
needed for the two utility functions:

;; level-specified group scanner.
(defun gnus-demon-scan-mail-or-news-and-update (level)
"Scan for new mail, updating the *Group* buffer."
  (let ((win (current-window-configuration)))
(unwind-protect
(save-window-excursion
  (save-excursion
(when (gnus-alive-p)
  (save-excursion
(set-buffer gnus-group-buffer)
(gnus-group-get-new-news level)
  (set-window-configuration win

Without this, the two demon functions I offered should have blown up
completely on an undef error.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Newbies questions

2007-07-25 Thread Karl Kleinpaste
someusernamehere <[EMAIL PROTECTED]> writes:
>  simply this doesn't work for me, I have setup the mail with
> level 2 and news with level 3 and pasted these lines in my .gnus.el
> but my gnus dont scan for new mail never

Well, objectively, it does work.  I've been using those capabilities
for a decade or more.

Did you restart Gnus, in order that .gnus.el would be re-evaluated?
If you did restart Gnus, what happened after 5min?  There won't be any
big announcement by Gnus -- it will just abruptly go off to check for
mail without any advance confirmation or preparation.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Newbies questions

2007-07-25 Thread Karl Kleinpaste
someusernamehere <[EMAIL PROTECTED]> writes:
> Thanks, but, where I define theses levels (2 and 3) for mail and news?

The last time you asked questions, I told you about level assignments
for groups.  Use `S l' in *Group* to define the level number of your
groups.  Put mail groups on level 1 or 2.  (I use 1 for personal
[therefore important] mail groups, and 2 for mailing lists and so
forth.)  Default level for newly-subscribed groups is 3, I believe.

Every time I respond to questions such as yours, I pepper my response
heavily with references to the manual.  Use those references.  It's
fine to ask questions; it's not fine to ask questions whose answers
you've already got, if only you'll look around yourself for them.
When you find a concept referenced that you don't immediately
recognize, at least look through the manual's index for it.

info://Gnus/Group+Levels
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Newbies questions

2007-07-25 Thread Karl Kleinpaste
someusernamehere <[EMAIL PROTECTED]> writes:
> Here are some newbies questions about Gnus:

You really need to get used to reading the manual.  Nearly all of what
you want can be found there.

> * How I can receive messages each X time?

info://Gnus/Daemons

My use of this:
a. Scan for mail every 5min, regardless of current activity.
b. Scan for new news every 20min, if I've left Gnus idle for 20min.

;;
;; level 2: only mail groups are scanned.
(defun gnus-demon-scan-mail-and-update ()
"Scan for new mail, updating the *Group* buffer."
  (gnus-demon-scan-mail-or-news-and-update 2))
(gnus-demon-add-handler 'gnus-demon-scan-mail-and-update 5 nil)
;;
;; level 3: mail and local news groups are scanned.
(defun gnus-demon-scan-news-and-update ()
"Scan for new mail, updating the *Group* buffer."
  (gnus-demon-scan-mail-or-news-and-update 3))
(gnus-demon-add-handler 'gnus-demon-scan-news-and-update 20 20)

> * It's possible that Gnus play a sound with a mail arrive?

Unless you're kicking Gnus to life every time mail arrives, that's
probably not something you want to do.  On the other hand, most mail
notifier systems, including GNOME's (which I use), provide a facility
to execute arbitrary commands when mail arrival is seen.  Among the
things you could do is to invoke the "play" command with a suitable
sound file.

> * How I can send a new message in some newsgroup?

`C-h m' will show you a buffer's per-mode settings.  Look for what's
found for the binding on `a' in either *Group* or *Summary*.
info://Gnus/Summary+Post+Commands
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Read mail and newsgroups

2007-07-13 Thread Karl Kleinpaste
someusernamehere <[EMAIL PROTECTED]> writes:
> how I can tell to gnus that I want to read my
> mail and no the newsgroups?

Groups have levels.  See the manual:
info://Gnus/Group+Levels

| All groups have a level of "subscribedness".  For instance, if a group
| is on level 2, it is more subscribed than a group on level 5.
| ...
|Remember:  The higher the level of the group, the less important it
| is.
| ...
|It is recommended that you keep all your mail groups (if any) on
| quite low levels (e.g. 1 or 2).

The built-in help system will tell you a bit about most functions:
`C-h f gnus RET'

| `gnus' is an interactive compiled Lisp function
| ...
| If ARG is non-nil and a positive number, Gnus will use that as the
| startup level.

So use...
   `C-u 2 M-x gnus RET'
...to start Gnus reading only groups at level 1 & 2, which is where
your mail groups should generally be.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Can access everything but Inbox on my IMAP server

2007-06-21 Thread Karl Kleinpaste
levander <[EMAIL PROTECTED]> writes:
> Further, I'm playing with deleting articles now.  I'd better not get
> into what I think gnus is doing, and I remember reading something
> about Gnus not working like other mail readers.  But, in Thunderbird
> when I delete a mail message, it gets moved to the Trash folder on the
> IMAP server.  However, when I delete a message in gnus via "B
> " and then quitting gnus, the message just disappears.

info://Gnus/Mail+Group+Commands

`B DEL'
 Delete the mail article.  This is "delete" as in "delete it from
 your disk forever and ever, never to return again." Use with
 caution.  (`gnus-summary-delete-article').

You may want some form of expiry, which is how Gnus normally gets rid
of old messages, archiving them elsewhere, instead of deletion.  See
info://Gnus/Expiring+Mail

(`B ' is equivalent to `B DEL' here.)

> Also, other email clients I've used will sit there and re-check the
> mail server for more messages.  It seems gnus only does this check
> when you start gnus.

info://Gnus/Scanning+New+Messages

`g'
 Check the server(s) for new articles.  If the numerical prefix is
 used, this command will check only groups of level ARG and lower
 (`gnus-group-get-new-news').  If given a non-numerical prefix, this
 command will force a total re-reading of the active file(s) from
 the back end(s).

There are timer-based ways of inducing Gnus to look for new messages,
too, including conditionals on whether you've been busy lately and
whatnot.  See info://Gnus/Daemons
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Switching backends

2007-05-02 Thread Karl Kleinpaste
Sebastian Tennant <[EMAIL PROTECTED]> writes:
> Switching backends isn't a problem, but how to perform the migration
> of already 'processed' mail?

Create new nnml equivalents of old nnfolder groups.
Enter an nnfolder group.
If you care about the order in which the articles will be moved, then
re-sort it e.g. by date with `C-c C-s C-d'.
`M P a' to process-mark all articles.
`B m' to move the articles, selecting the equivalent nnml group.
Once you're sure that everything has moved as expected, arrange to
delete old nnfolder groups in *Group* with `G DEL'.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: newbie question

2006-09-06 Thread Karl Kleinpaste
Jens Theisen <[EMAIL PROTECTED]> writes:
> is it possible to increase score (or otherwise hightlight messages)
> that are replies to own postings?

Notice the Message-Id of your own postings.  They have a pattern which
makes them fairly unique to yourself: The first few characters after
`<' are always the same.  (They are a hash of your username.)

Anyone who follows up to you will produce messages containing a
References header containing that pattern string.  Using that pattern,
score up on References headers with that pattern:
  I r s p [pattern]
(meaning I-ncrease on r-eferences matching s-ubstring p-ermanently).

If you do so right now, this article of mine should highlight as
scored up.

> Is it possible to hightlight groups in the group buffer that contain such?

No.  The reason is due to how much Gnus knows at what times.

By the time *Group* is displayed, all that Gnus has learned is that
there are certain groups with known (but approximate) counts of new
messages available to be read.  Gnus has not yet entered any of those
groups, so as to determine what is in them.

Short of a major rewrite of how Gnus initializes itself and prepares
*Group*, there is no way to pre-mark groups which contain followups to
yourself.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: One window configuration for Gnus?

2006-09-01 Thread Karl Kleinpaste
Jochem Huhmann <[EMAIL PROTECTED]> writes:
> This works fine, thanks. I still get thrown back to the Group buffer
> (instead of the summary buffer) when I press "q" in the article buffer,

(require 'gnus-art)
(define-key gnus-article-mode-map 'q 
(lambda ()
 (interactive)
 (switch-to-buffer gnus-summary-buffer)))
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: One window configuration for Gnus?

2006-08-31 Thread Karl Kleinpaste
In general, what you want is gnus-add-configuration.  Something like
this should get you what you want:

  (gnus-add-configuration
   '(summary
 (horizontal 1.0
 (vertical 1.0 (summary 1.0 point)
  (gnus-add-configuration
   '(article
 (horizontal 1.0
 (vertical 1.0 (article 1.0 point)

An amazing amount can be accomplished in window/buffer/frame
configuration with gnus-add-configuration.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Handling "identity jumpers"

2006-07-07 Thread Karl Kleinpaste
Andrzej Adam Filip <[EMAIL PROTECTED]> writes:
> ...a person which frequently changes identities used
> How to autodetect the person in gnus news reader?

Give a mild (e.g. 10-point) score down on the appropriate pattern of
their Message-Id, which probably does not change.

1 0 L i s p AppropriateStringHere RET
Read as: "numeric `10', lower id substring permanent".

If you have a sufficiently kind newsadmin, such that NNTP-Posting-Host
is in overviews, then you can arrange to score down on that, since he
probably connects from approximately the same place all the time:

(setq gnus-extra-headers
  '(Keywords To Newsgroups X-Moodwatch NNTP-Posting-Host))

Then you can...

1 0 L e s p NNTP-Posting-Host RET AppropriateStringHere RET
Read as: "numeric `10', lower extra substring permanent, on the extra
header NNTP-Posting-Host" (tab completion works for elements of g-e-h).
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Killing replies to killed originators

2006-06-18 Thread Karl Kleinpaste
Match the pattern of the killed originators' message-ids in References.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: a couple of newbie questions with gnus

2006-05-26 Thread Karl Kleinpaste
Martin Jørgensen <[EMAIL PROTECTED]> writes:
>> (setq gnus-select-method '((nntp "192.168.1.100")))

Tassilo Horn <[EMAIL PROTECTED]> writes:
> I think this should be
> (setq gnus-select-method '(nntp "192.168.1.100"))

Yes.  What Martin needs to bear in mind is that the distinguished
select method exists alone in one (singularly-named) variable, hence
it is exactly one list.  Other select methods are contained
collectively in another (plurally-named) variable, gnus-secondary-
select-methods, and it is therefore a list of lists -- so if it
contains a single such method, the list-enclosing parentheses must in
turn be encased in another pair of parentheses, within which other
such method lists might appear.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: batch email reading?

2006-05-16 Thread Karl Kleinpaste
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> Anyone has a batch email reading function for gnus?

Assuming your Gnus is left running overnight, then the gnus-daemon
functions will do what you want.

;; automatic group re-scan without manual effort.
;; assumes: mail groups, level <= 2; nntp groups, level >= 3.
;; look up arg interpretation for gnus-demon-add-handler.
;; overall meaning: check mail every 5 regardless, and
;; check nntp every 20 iff idle for 20.
;;
;; level-specified group scanner.
(defun gnus-demon-scan-mail-or-news-and-update (level)
"Scan for new mail, updating the *Group* buffer."
  (let ((win (current-window-configuration)))
(unwind-protect
(save-window-excursion
  (save-excursion
(when (gnus-alive-p)
  (save-excursion
(set-buffer gnus-group-buffer)
(gnus-group-get-new-news level)
  (set-window-configuration win
;;
;; level 2: only mail groups are scanned.
(defun gnus-demon-scan-mail-and-update ()
"Scan for new mail, updating the *Group* buffer."
  (gnus-demon-scan-mail-or-news-and-update 2))
(gnus-demon-add-handler 'gnus-demon-scan-mail-and-update 5 nil)
;;
;; level 3: mail and local news groups are scanned.
(defun gnus-demon-scan-news-and-update ()
"Scan for new mail, updating the *Group* buffer."
  (gnus-demon-scan-mail-or-news-and-update 3))
(gnus-demon-add-handler 'gnus-demon-scan-news-and-update 20 20)
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gnus with firefox

2006-05-13 Thread Karl Kleinpaste
Gary Wessle <[EMAIL PROTECTED]> writes:
> how can I use gnus as a mail client to send mail when I click on a
> link while browser in firefox?

In GNOME Preferences -> More Prefs -> Preferred Applications, I set
Mail Reader as "custom", using "gnus %s".  Then the following script
gives me the handling of mailto: links.

#!/bin/sh
export PATH=/usr/local/bin:"$PATH"
if [ "$1" = "" ] ; then
exec xemacs -geometry 90x40 -f gnus-init
else
if gnuclient -batch -eval t >/dev/null 2>&1 ; then
exec gnuclient -batch -eval "(progn (gnus-url-mailto \"$1\") 
(set-buffer-modified-p nil))"
else
exec xemacs -geometry 90x40 \
-eval "(progn (require 'gnus-art) (gnus-url-mailto \"$1\") 
(font-lock-mode 1) (set-buffer-modified-p nil))"
fi
fi
exec xmessage -center No XEmacs or gnuclient
echo no xemacs, no gnuclient, no xmessage
exit 1

As someone else observed, the "mozex" extension to FF should be able
to handle this with "gnus %s" for mailto: handling.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: how to check for new news every a few minutes?

2006-04-26 Thread Karl Kleinpaste
"Qing Xiu" <[EMAIL PROTECTED]> writes:
> How can I set up Emacs to make itself check for new news every, say,
> 5 minutes?

;; automatic group re-scan without manual effort.
;; assumes: mail groups, level <= 2; nntp groups, level >= 3.
;; look up arg interpretation for gnus-demon-add-handler.
;; overall meaning: check mail every 5 regardless, and
;; check nntp every 20 iff idle for 20.
;;
;; level-specified group scanner.
(defun gnus-demon-scan-mail-or-news-and-update (level)
"Scan for new mail, updating the *Group* buffer."
  (let ((win (current-window-configuration)))
(unwind-protect
(save-window-excursion
  (save-excursion
(when (gnus-alive-p)
  (save-excursion
(set-buffer gnus-group-buffer)
(gnus-group-get-new-news level)
  (set-window-configuration win
;;
;; level 2: only mail groups are scanned.
(defun gnus-demon-scan-mail-and-update ()
"Scan for new mail, updating the *Group* buffer."
  (gnus-demon-scan-mail-or-news-and-update 2))
(gnus-demon-add-handler 'gnus-demon-scan-mail-and-update 5 nil)
;;
;; level 3: mail and local news groups are scanned.
(defun gnus-demon-scan-news-and-update ()
"Scan for new mail, updating the *Group* buffer."
  (gnus-demon-scan-mail-or-news-and-update 3))
(gnus-demon-add-handler 'gnus-demon-scan-news-and-update 20 20)
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Group subscribe tab-completion

2006-04-20 Thread Karl Kleinpaste
xyblor <[EMAIL PROTECTED]> writes:
> Shouldn't the newsrc.eld file save a list of all the available
> newsgroups, so I don't have to read the whole active file every time?

Saving the entire list of groups is a very expensive (in bandwidth and
storage space) thing to do because there are tens of thousands of
groups known to large installations; far too heavy a cost to outweigh
the small benefit of the very occasional time that one really wants
that list.  (Even on my small server, the active file is half a
megabyte.)

However, rather than using `U', you might try going into server mode,
via `^' in *Group*, and then selecting the server you want to examine
with SPC.  That will induce retrieval, and you can search and
subscribe (and preview, for that matter) to your heart's content.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: scoring crossposts

2006-04-15 Thread Karl Kleinpaste
Dale Henderson <[EMAIL PROTECTED]> writes:
> So I was wondering could I score on the newsgroups header. According
> to the documentation Newsgroups isn't a valid header to score on.

If your server runs INN, you can ask your newsadmin to add
"Newsgroups:full" to the control file "overview.fmt".  If that
happens, then all future arriving articles will get Newsgroups data
into overview, and you can score on Newsgroups as an "extra" header.

This will make overviews somewhat larger on the server, and so your
newsadmin might not be willing, but at least you can ask.  That said,
the increase in size from Newsgroups' presence in overviews is not at
all large in the usual case, and is really totally eclipsed by e.g.
References chains that always already appear in overviews.

"Extra" scoring is referenced at the end of info://Gnus/To+From+Newsgroups
as regards gnus-extra-headers, whose default value is '(To Newsgroups).

(I also recommend "Keywords:full" and "NNTP-Posting-Host:full" in
overview.fmt.)
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: reply to group not to author

2006-04-15 Thread Karl Kleinpaste
"Gary Weselle" <[EMAIL PROTECTED]> writes:
> I was hoping to find out on my own by doing C-h k f but I get f runs
> command undifined.

Not from the summary buffer, it doesn't.

Y'know, you actually did a followup with `f' to get this response of
yours posted.  You even did it with my preceding message included.
What are you trying to pull?
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: reply to group not to author

2006-04-14 Thread Karl Kleinpaste
Gary Wessle <[EMAIL PROTECTED]> writes:
> ...and w is to reply to group. but w is now working, hitting it

Um, no...

`C-h k w' correctly informs us:
| w runs `gnus-summary-stop-page-breaking'
| `gnus-summary-stop-page-breaking' is an interactive compiled Lisp function
|   -- loaded from "gnus-sum"
| (gnus-summary-stop-page-breaking)
| Documentation:
| Stop page breaking in the current article.

> does not do anything. I need to reply to group, how can I do this?

`f' does followup, with appropriate semantics for either newsgroup
followup posting or "wide reply" in mail groups.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Noticing Replies (GNUS)

2006-04-12 Thread Karl Kleinpaste
Esben Stien <[EMAIL PROTECTED]> writes:
> Any way to highlight a group that contains replies to my mails?

The short answer: No.

The long answer:

You have to think about how much Gnus knows at what times.

At the point where Gnus displays the *Group* buffer, it has analyzed
no more deeply than to learn what groups you've got and how many
articles there are available in each.  Gnus has not yet gotten to the
point of learning anything about what's _in_ the articles advertised
as available.  Gnus doesn't learn that until you enter a group, at
which point Gnus inhales headers for that group and can learn e.g.
that there are followups to you based on score rules which notice
References containing strings unique to the articles you post.

Short of re-working a lot of Gnus, so as to induce it to pre-enter all
your groups, score them all, and then modify *Group* based on what it
found, there is no working solution for what you want.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Gnus to handle news: and mailto: URLs from external sources?

2006-04-12 Thread Karl Kleinpaste
Kurt Swanson <[EMAIL PROTECTED]> writes:
> something to send to gnus via gnuserv.  Obviously I would like to
> handle all the extensions (for example "?subject=xxx" for mailto:) Has
> anyone attempted this before?  Any pointers?

This script serves me for basic command startup (in my gnome init) and
handling mailto: links in FF.  I have it as /usr/local/bin/gnus.

In gnome's Preferences->More Prefs->Preferred Applications, I set the
mail reader to "custom" with "gnus %s".  Embellish to taste.  Also see
the FF extension "mozex" for utterly generalized access to oodles of
stuff, including (famously) using gnuclient as an editor for HTML form
text boxes.

Gnus' handling of mailto: extensions is automatic.

#!/bin/sh
export PATH=/usr/local/bin:"$PATH"
if [ "$1" = "" ] ; then
exec xemacs -geometry 90x40 -f gnus-init
else
if gnuclient -batch -eval t >/dev/null 2>&1 ; then
exec gnuclient -batch -eval "(progn (gnus-url-mailto \"$1\") 
(not-modified))"
else
exec xemacs -geometry 90x40 \
-eval "(progn (require 'gnus-art) (gnus-url-mailto \"$1\") 
(font-lock-mode 1) (not-modified))"
fi
fi
exec xmessage -center No XEmacs or gnuclient
echo no xemacs, no gnuclient, no xmessage
exit 1
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Buffer exceeds maximum size

2006-03-30 Thread Karl Kleinpaste
Myriam Abramson <[EMAIL PROTECTED]> writes:
> I am getting often a "Buffer exceeds maximum size" message and can't
> read my email anymore. ... Any ideas?

M-x set-var RET debug-on-error RET t RET
then repeat the error and show us the trace output.

After you save the output when the error is tripped, then set-var
again with nil instead of t, to turn off further debug tracing.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: W3 obsolete

2006-03-24 Thread Karl Kleinpaste
"Mr. Big" <[EMAIL PROTECTED]> writes:
> requires the w3 package which I don't have installed. Searching for it
> gives me the information that it is dead (and long live w3?).

I don't know what told you that it's dead, but the situation from my
vantage point (as an XEmacs user) seems to be:

[a] w3 is in the standard package set of recent XEmacs, and
[b] I also have w3m, which may have in fact supplanted w3.

However, I don't use nnweb, so I can't speak to how much it requires
w3 specifically -vs- whether w3m substitutes.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Gnus stuck in select/gettimeofday loop

2006-02-28 Thread Karl Kleinpaste
Neil Woods <[EMAIL PROTECTED]> writes:
> Occasionally¹ Emacs will lock up completely whilst in Gnus, at this
> point it is unresponsive to C-g.
...
> Any help on this, and advice on how best I can debug this would be
> greatly appreciated.

Just to be clear, the fact that Emacs becomes unresponsive to C-g is a
sure indicator that you have a bug in Emacs itself, not in Gnus.

It might be more helpful if you'd let folks know the exact version of
GNU Emacs that you've got (M-x emacs-version RET); perhaps there is a
known problem from that version, and possibly you should merely find
an update more recent than Debian's snapshot.
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: How do I display all headers in gnus?

2006-02-02 Thread Karl Kleinpaste
[EMAIL PROTECTED] (Søren Dideriksen) writes:
> Hi, I can't seem to get gnus, to display all headers.

t runs `gnus-summary-toggle-header'

`gnus-summary-toggle-header' is an interactive compiled Lisp function
  -- loaded from "gnus-sum"
(gnus-summary-toggle-header &optional ARG)

Documentation:
Show the headers if they are hidden, or hide them if they are shown.
If ARG is a positive number, show the entire header.
If ARG is a negative number, hide the unwanted header lines.
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: X-From-Line

2005-10-12 Thread Karl Kleinpaste
Flatman <[EMAIL PROTECTED]> writes:
> when sending mail via gnus , there is a 'X-From-Line' that is added
> to the mail.

X-From-Line is an artifact of mail being _received_, not sent.  It is
Gnus' way of changing the UNIX (sendmail, procmail) "From [EMAIL PROTECTED] 
"
header (which lacks a colon, notably) into an RFC-looking format.

There is no X-From-Line in _sent_ mail.
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: expanding a digest

2005-09-17 Thread Karl Kleinpaste
Allan Gottlieb <[EMAIL PROTECTED]> writes:
> I prefer to receive some mailing lists in digest form.
> What command should I execute so that the selected digest (or all
> ticked digests) are expanded and appear in the summary buffer as if
> they were the individual messages?

C-d runs `gnus-summary-enter-digest-group'

`gnus-summary-enter-digest-group' is an interactive compiled Lisp function
  -- loaded from "gnus-sum"
(gnus-summary-enter-digest-group &optional FORCE)

Documentation:
Enter an nndoc group based on the current article.
If FORCE, force a digest interpretation.  If not, try
to guess what the document format is.
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Forcing gnus to treat the body of an email as html

2005-08-23 Thread Karl Kleinpaste
[EMAIL PROTECTED] (Victor S. Miller) writes:
> I sometimes get email, the body of which is html, but which lacks the
> appropriate mime headers.  Is there a simple way to force gnus to
> invoke w3m (or w3) to format the email.

W h runs `gnus-article-wash-html'

`gnus-article-wash-html' is an interactive Lisp function
  -- loaded from "gnus-art"
(gnus-article-wash-html &optional INTERACTIVE &rest ARGS)

Documentation:
Format an HTML article.
If READ-CHARSET, ask for a coding system.
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Any chance of getting gnus to handle mime attachments?

2005-06-08 Thread Karl Kleinpaste
Ed Hartnett <[EMAIL PROTECTED]> writes:
> Is there a way for me to edit the message to put the correct separator
> in a get GNUS to understanding?

`e' in Summary will let you edit a mail message.  It'll give you an
editable version of the message.  `C-c C-c' when you're done.  Put the
right stuff back into the message, which means [a] correct boundaries
and [b] if necessary, MIME-Version and Content-Type in the forwarded
message itself.  Make sure the boundary specified in Content-Type is
the actual boundary used in the body.  (There's some funkiness
regarding an extra leading `-', I think; I'm forgetting the details
now.  Try one thing, if it doesn't work, tweak it a little bit more.)
Make the boundaries used in the encapsulated mail different from the
encapsulating forwarder, or the MIME parser will be confused.

Unfortunately, there are no tools to help you to make sure this is
done right; the originating mailer should have done it right for you
in the first place.  So just be careful as you mess with it.

Sanity: Copy the message and work on the copy, just in case you really
need to get back to the original version sent to you.  Use `B c' in
Summary to copy it to, say, some other mail group to work on.

> Reforming the mailers of all people who send me support emails is a
> *little* bit beyond my job description.

Me, too, but I proselytize anyway.  And it's why I provide help here
from time to time.
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Any chance of getting gnus to handle mime attachments?

2005-06-08 Thread Karl Kleinpaste
Ed Hartnett <[EMAIL PROTECTED]> writes:
> Could you please elaborate?
> What is the boundary supposed to look like?

In the header, Content-Type provides the boundary between message
parts.  That string must appear exactly in the next part.  Your sample
message claims a Content-Type boundary string which is unrelated to
the boundary strings actually in the body.

This is a prime example of Gnus' overachieving in MIME; Gnus actually
obeys the spec.  If a message has been generated by a buggy origin
agent, tough: Gnus will deal with it on its merits.  Gnus will not
guess at what might appear, to fuzzy human thinking, to be a proper
MIME indicator.  (For example, older Netscape mail would intuit
MIMEness in the absence of MIME-Version -- grotesquely wrong behavior.)

At a guess, the sender's mailer botched the recursive MIMEness of a
forwarded message which in turn had its own MIME content.  "Oops."
Many mailers have a broken concept of "forwarding" in which they
neglect to include _all_ the headers necessary to preserve the
message's MIME content descriptors and indicate their own content.

Tell the sender to get a real mailer.  One that doesn't generate garbage.
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Any chance of getting gnus to handle mime attachments?

2005-06-08 Thread Karl Kleinpaste
Ed Hartnett <[EMAIL PROTECTED]> writes:
> Here's the headers. Seems like there is a Mime-Version and a
> Content-Type.
> Any help would be appreciated.

The boundary is mismatched; no wonder Gnus can't parse it.

> Mime-Version: 1.0
> Content-Type: multipart/mixed; boundary="- Forwarded Message"

> --=_NextPart_RTV6YGPT0A6RG9PMMD0TK2F2

No "Forwarded Message" appears.
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Any chance of getting gnus to handle mime attachments?

2005-06-08 Thread Karl Kleinpaste
If there are proper header indications, namely MIME-Version and
Content-Type, Gnus will handle it fine.  Lacking those, Gnus correctly
assumes text/plain.

Are there such proper headers?  If so, then there is a deeper problem.
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Any chance of getting gnus to handle mime attachments?

2005-06-08 Thread Karl Kleinpaste
Ed Hartnett <[EMAIL PROTECTED]> writes:
> How do I get gnus to handle mime attachments?
> For example, I get email like the following. What do I do with it?

For starters, you'll have to put some context around the concept
"can't handle."  This is akin to one of my computer-illiterate friends
saying, "My computer isn't working," to which my first sarcastic
response is, "Plug it in and turn it on."  That is, if you won't tell
us which of the 31,264,388 things that might possibly go wrong with a
computer is currently troubling you, we can't possibly help you, so
we'll start you at the bottom level and work up.

When Gnus gained native MIME comprehension some years ago, Lars was so
careful about it that he, and the Gnus development mailing list folks,
managed to find a half dozen or more bugs in other mail clients
because those clients didn't follow the spec properly.

Gnus does MIME.  In fact, Gnus does MIME just about as well as any
other mail/news program out there.  Tell us _specifically_ what Gnus
is doing wrong, and we'll see if it's a bona fide bug, or a
configuration problem on your part, or confusion over what's
happening, or something else entirely.

Bugs are found all the time.  Maybe you've tripped over a new one.
That said, Gnus' MIME handling is pretty much second to none.

--karl
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: sending a draft message

2005-05-12 Thread Karl Kleinpaste
Philip Clark <[EMAIL PROTECTED]> writes:
> I try to send it with Ctrl c c. However, this just seems to save a
> new version of the draft and doesn't actually send it.

Once you have used  `D e', you should have the message in an ordinary
"*message*" buffer.  `C-c C-c' should certainly send it.

What does `C-h c C-c C-c' report?  It should identify that key
sequence as message-send-and-exit.

As a stopgap, if it is truly merely saving new drafts without sending,
try `D s' in the drafts group to send it.
___
Info-gnus-english mailing list
Info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english