all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [Gnus] Fetch extra categories?
@ 2013-11-21 19:52 ernobe
  2013-11-21 20:06 ` Jambunathan K
  2013-11-21 21:41 ` Emanuel Berg
  0 siblings, 2 replies; 4+ messages in thread
From: ernobe @ 2013-11-21 19:52 UTC (permalink / raw)
  To: help-gnu-emacs


Once again, I posted to gnu.emacs.gnus and my post failed to show up
there.

Anyways, Emacs 23 can be setup so that Gnus reads and sends news to/from
a spool directory with an external program ( in my case slrnpull ).  But
it can also handle mail and rss as if they were newsgroups.  I found
that putting this in my init file prevented it from doing the receiving
of those automatically at start-up:

(setq gnus-secondary-select-methods 
   '((nnml "")
     (nnrss "")))

But, it still asks me every time on startup if I want to fetch extra
categories.  Is there a way for it not to ask me this?  (I don't even
know what categories this is referring to).



-- 
"The world of existence is an emanation of the merciful attribute of God."
Abdu'l-Baha
http://www.costarricense.cr/pagina/ernobe


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

* Re: [Gnus] Fetch extra categories?
  2013-11-21 19:52 [Gnus] Fetch extra categories? ernobe
@ 2013-11-21 20:06 ` Jambunathan K
  2013-11-21 21:41 ` Emanuel Berg
  1 sibling, 0 replies; 4+ messages in thread
From: Jambunathan K @ 2013-11-21 20:06 UTC (permalink / raw)
  To: ernobe; +Cc: help-gnu-emacs


Doesn't answer your question.  But this is what I do to read mailing
lists.

You can do

    M-x gnus
    ^  (This will you put you in a server buffer)
    a (You can add nntp and news.gmane.org)
    
    Click on that server.  You will see various <whatever you call that>
    listed.  (You will see a mix of gmane and gwene things)

    You can press on u one of those to get the respective mail boxes.

The configuration does get saved but not in .emacs.
    
    
ernobe <ernobe@yahoo.com> writes:

> Once again, I posted to gnu.emacs.gnus and my post failed to show up
> there.
>
> Anyways, Emacs 23 can be setup so that Gnus reads and sends news to/from
> a spool directory with an external program ( in my case slrnpull ).  But
> it can also handle mail and rss as if they were newsgroups.  I found
> that putting this in my init file prevented it from doing the receiving
> of those automatically at start-up:
>
> (setq gnus-secondary-select-methods 
>    '((nnml "")
>      (nnrss "")))
>
> But, it still asks me every time on startup if I want to fetch extra
> categories.  Is there a way for it not to ask me this?  (I don't even
> know what categories this is referring to).



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

* Re: [Gnus] Fetch extra categories?
  2013-11-21 19:52 [Gnus] Fetch extra categories? ernobe
  2013-11-21 20:06 ` Jambunathan K
@ 2013-11-21 21:41 ` Emanuel Berg
  2013-11-27 21:06   ` Usenet/mail compose (was: Re: [Gnus] Fetch extra categories?) Emanuel Berg
  1 sibling, 1 reply; 4+ messages in thread
From: Emanuel Berg @ 2013-11-21 21:41 UTC (permalink / raw)
  To: help-gnu-emacs

ernobe <ernobe@yahoo.com> writes:

> Once again, I posted to gnu.emacs.gnus and my post
> failed to show up there.

That's strange!

> Anyways, Emacs 23 can be setup so that Gnus reads and
> sends news to/from a spool directory with an external
> program ( in my case slrnpull ).  But it can also
> handle mail and rss as if they were newsgroups.  I
> found that putting this in my init file prevented it
> from doing the receiving of those automatically at
> start-up:
>
> (setq gnus-secondary-select-methods 
>    '((nnml "")
>      (nnrss "")))
>
> But, it still asks me every time on startup if I want
> to fetch extra categories.  Is there a way for it not
> to ask me this?  (I don't even know what categories
> this is referring to).

Well, it seems a bit backward because I use

gnus-secondary-select-methods

to *add* stuff, not to remove it. I have no clue as how
to solve it, anymore than how I do it. This is how I
manage mails, mailing lists, and Usenet:

;; I'm on the w3m mailing list. Based on the subject,
;; the below code will filter ordinary mails from those
;; from the w3m list.

(setq nnmail-split-methods
      '(("mail.w3m" "^Subject:.*emacs-w3m.*")
        ("mail.misc" "") ))

;; The below is about *sending* - it sets the signature
;; (same for everything), but when answering a *mail*,
;; it adds the Newsgroup: header if I were to change my
;; mind and make it a Usenet post instead (or "as
;; well"), *or* as is a much more common case, if I
;; send a Usenet post and when I write it I think,
;; "Man, this would be right up X's alley", but he is
;; not on Usenet, so then I need inserted a To: header
;; to make it a mail as well.
;;
;; While we are on this subject - perhaps that is a bad
;; idea in terms of spamming? Should I program it to,
;; when I send to Usenet, *first* send is as a mail,
;; remove the To: header, and then send it to Usenet
;; (i.e., without the header)?  But I did this a lot
;; and no one ever complained.

(setq gnus-posting-styles
      (let ((sig "Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu\nunderground experts united:  http://user.it.uu.se/~embe8573"))
        `(("nnml:.*"
           (Newsgroups "")
           (signature ,sig)
           )
          (message-this-is-news
           (To "")
           (Mail-Copies-To "never")
           (signature ,sig) ))))

;;; more send mail

(require 'smtpmail)
(setq smtpmail-smtp-server "smtp.uu.se")
(setq smtpmail-local-domain "student.uu.se")
(setq send-mail-function 'smtpmail-send-it)
(setq message-send-mail-function 'smtpmail-send-it)
(setq user-full-name "Emanuel Berg")

;;; no we get to *read* mails...

(let ((username "embe8573"))
  (setq user-mail-address
        (format "%s@%s" username smtpmail-local-domain) )
  (setq mail-sources `((pop :pop      "pop.uu.se"
                            :user     ,username
                            :password ,*mail-password*) )))
(require 'nnmbox)
(setq gnus-secondary-select-methods
      '((nnml ""))
      mail-user-agent 'gnus-user-agent
      read-mail-command 'gnus)

;; this is to *save* sent mail/posts (as a Gnus group)

(setq gnus-message-archive-group '("archived-news-and-mail") )

;; OK, done with mails: Usenet

(setq gnus-select-method '(nntp "Aioe.org"))

;; check out all my configuration for Gnus and the
;; Emacs message mode here:
;; http://user.it.uu.se/~embe8573/emacs.html

-- 
Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu
underground experts united:  http://user.it.uu.se/~embe8573


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

* Usenet/mail compose (was: Re: [Gnus] Fetch extra categories?)
  2013-11-21 21:41 ` Emanuel Berg
@ 2013-11-27 21:06   ` Emanuel Berg
  0 siblings, 0 replies; 4+ messages in thread
From: Emanuel Berg @ 2013-11-27 21:06 UTC (permalink / raw)
  To: help-gnu-emacs

Emanuel Berg <embe8573@student.uu.se> writes [on gnu.emacs.help]:

> ;; The below is about *sending* - it sets the signature
> ;; (same for everything), but when answering a *mail*,
> ;; it adds the Newsgroup: header if I were to change my
> ;; mind and make it a Usenet post instead (or "as
> ;; well"), *or* as is a much more common case, if I
> ;; send a Usenet post and when I write it I think,
> ;; "Man, this would be right up X's alley", but he is
> ;; not on Usenet, so then I need inserted a To: header
> ;; to make it a mail as well.
>
> (setq gnus-posting-styles
>       (let ((sig "Emanuel Berg ... "))
>         `(("nnml:.*"
>            (Newsgroups "")
>            (signature ,sig)
>            )
>           (message-this-is-news
>            (To "")
>            (Mail-Copies-To "never")
>            (signature ,sig) ))))
>
> ;; While we are on this subject - perhaps that is a bad
> ;; idea in terms of spamming? Should I program it to,
> ;; when I send to Usenet, *first* send is as a mail,
> ;; remove the To: header, and then send it to Usenet
> ;; (i.e., without the header)?  But I did this a lot
> ;; and no one ever complained.

Well, now someone did, but spamming wasn't the issue. I
got a mail from a guy using the Evolution mail client,
and he said that the "Newsgroups" empty header made my
mail address not appearing in the "To" header, although
in the "From" header of the original mail, when he
invoked <reply>.

This turned out to be a bug in Evolution:

> A quick search reveals that the behavior of Evolution
> is a known bug
> (https://bugzilla.gnome.org/show_bug.cgi?id=260995).

However, be that as it may, it still doesn't make sense
to provide empty "Newsgroups" and "To" headers (in
Usenet posts and mails, respectively), so when the
"joint Usenet/mail compose interface" is not employed,
I decided it'd be best to remove the surplus (empty)
header.

I managed to to this like this:

(defun get-separator-pos ()
  "Get the position of `mail-header-separator'."
  (save-excursion
    (rfc822-goto-eoh)
    (point) ))

(defun remove-empty-headers ()
  (interactive)
  (let ((start (point-min))
        (stop  (get-separator-pos)) )
    (save-excursion
      (replace-regexp "Newsgroups: \n" "" nil start stop)
      (replace-regexp "To: \n" "" nil start stop) )))
(add-hook 'message-send-hook 'remove-empty-headers)

I was tempted to write a defun that would remove *all*
empty headers, but I don't know - perhaps there are
some headers that can be empty and still useful (?).

-- 
Emanuel Berg, programmer-for-rent. CV, projects, etc at uXu
underground experts united:  http://user.it.uu.se/~embe8573


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

end of thread, other threads:[~2013-11-27 21:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-21 19:52 [Gnus] Fetch extra categories? ernobe
2013-11-21 20:06 ` Jambunathan K
2013-11-21 21:41 ` Emanuel Berg
2013-11-27 21:06   ` Usenet/mail compose (was: Re: [Gnus] Fetch extra categories?) Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.