Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Positioning of items
@ 2014-03-24 18:34 Sharon Kimble
  2014-03-24 18:49 ` Mark Simpson
  2014-03-24 20:11 ` Adam Sjøgren
  0 siblings, 2 replies; 10+ messages in thread
From: Sharon Kimble @ 2014-03-24 18:34 UTC (permalink / raw)
  To: info-gnus-english

It seems that a lot of my problems with setting up gnus is related to the
positioning of major items in my '.gnus.el' and associated files. I refer
specifically to items like pop3, smtp, newsgroups, system mail, and gmail.

I have three gnus files, '.gnus.el' holds pop3, smtp, newsgroups, and system
mail. 'gnus-testing.el' is just a holding file for various testing purposes,
currently holding lots of 'setq...' functions. 'gnus-gmail.el' is specifically
relating to gmail and its setup.

Currently, I can successfully use pop3, smtp, and newsgroups - although I do have
to highlight and evaluate its region on gnus start-up. I think that this is
related to its position within the file, which may also explain why I can't
access system mail as well. The relevant section of my '.gnus.el' is like this -

,----
| (setq user-mail-address "boudiccas@talktalk.net")
|      (setq user-full-name "Sharon Kimble")
| 
| (setq mail-sources '((pop :server "mail.talktalk.net"
| 						  :user "boudiccas@talktalk.net"
| 						  :password "rhubarbandcustard"
|                  :file :path "/var/mail/boudiccas")))
| 						
| ;; No primary server:
| (setq gnus-select-method '(list 'nnspool (london)))
| (setq gnus-select-method '(nnnil ""))
| (setq gnus-select-method '(nntp "news.gmane.org"))
| (setq gnus-secondary-select-methods '((nnml ""   
|                                     (nnml-directory "~/.emacs.d/gnus.d/mail")
|                                     (nnml-active-file "~/.emacs.d/gnus.d/mail/active"))))
|                
|     (setq mail-sources '((file :path "/var/mail/boudiccas")))
| 
| (setq user-mail-address "boudiccas@talktalk.net")
|      (setq user-full-name "Sharon Kimble")
| 
| (setq mail-sources '((pop :server "mail.talktalk.net"
| 						  :user "boudiccas@talktalk.net"
| 						  :password "rhubarbandcustard")))
|                 
| (setq smtpmail-smtp-server "smtp.talktalk.net") 
| (setq send-mail-function 'smtpmail-send-it)
| (setq message-send-mail-function 'smtpmail-send-it)
| (require 'smtpmail)
| 
| (setq smtpmail-auth-credentials "~/.authinfo")
| (setq starttls-use-gnutls t
|       starttls-gnutls-program "gnutls-cli")
`----

Why can't I access system mail from /var/mail/boudiccas? Where should the
code-line be placed to ensure that it works successfully please?

Where should the code-line relating to newsgroups be placed for its successful
usage? This would mean that I no longer have to highlight its region and
evaluate it for it to work successfully. 

At the moment I can use gnus, but not successfully or completely, I have to fudge
things for them to work properly. I know that some chunks of code are
duplicated, but this is a 'work-in-progress' and once its working properly they
will be cleaned up. 

Thanks
Sharon. 
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, emacs 24.3.1
Registered Linux user 561944


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

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

* Re: Positioning of items
  2014-03-24 18:34 Positioning of items Sharon Kimble
@ 2014-03-24 18:49 ` Mark Simpson
  2014-03-24 20:11 ` Adam Sjøgren
  1 sibling, 0 replies; 10+ messages in thread
From: Mark Simpson @ 2014-03-24 18:49 UTC (permalink / raw)
  To: info-gnus-english


Sharon -

You are setting mail-sources to read your local mail spool and then
*resetting* it to get your pop mail.

SETQ does variable assignment, it does not append data to an existing
variable.

You can merge the two of them together, or if you want to build up the
value bit by bit you can use ADD-TO-LIST.

Hope this helps a bit.

-Mark



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

* Re: Positioning of items
  2014-03-24 18:34 Positioning of items Sharon Kimble
  2014-03-24 18:49 ` Mark Simpson
@ 2014-03-24 20:11 ` Adam Sjøgren
  2014-03-24 21:26   ` Sharon Kimble
  1 sibling, 1 reply; 10+ messages in thread
From: Adam Sjøgren @ 2014-03-24 20:11 UTC (permalink / raw)
  To: info-gnus-english

Sharon Kimble <boudiccas@talktalk.net> writes:

> | (setq gnus-select-method '(list 'nnspool (london)))
> | (setq gnus-select-method '(nnnil ""))
> | (setq gnus-select-method '(nntp "news.gmane.org"))

It makes no sense to have a configuration like this.

First you set the variable gnus-select-method to one value, then you
overwrite it with a second value, and at last, you overwrite it once
again with a third value.


  Best regards,

    Adam

-- 
 "In fact, you are nothing but not a serious fellow."         Adam Sjøgren
                                                         asjo@koldfront.dk


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

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

* Re: Positioning of items
  2014-03-24 20:11 ` Adam Sjøgren
@ 2014-03-24 21:26   ` Sharon Kimble
  2014-03-24 22:16     ` Adam Sjøgren
  0 siblings, 1 reply; 10+ messages in thread
From: Sharon Kimble @ 2014-03-24 21:26 UTC (permalink / raw)
  To: info-gnus-english


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

On Mon, 24 Mar 2014 21:11:29 +0100
asjo@koldfront.dk (Adam Sjøgren) wrote:

> Sharon Kimble <boudiccas@talktalk.net> writes:
> 
> > | (setq gnus-select-method '(list 'nnspool (london)))
> > | (setq gnus-select-method '(nnnil ""))
> > | (setq gnus-select-method '(nntp "news.gmane.org"))
> 
> It makes no sense to have a configuration like this.
> 
> First you set the variable gnus-select-method to one value, then you
> overwrite it with a second value, and at last, you overwrite it once
> again with a third value.
> 
I did say that it was a 'work-in-progress' :)
But it now says -

(setq gnus-select-method '(nnnil ""))
(add-to-list 'gnus-secondary-select-methods
                  '(nntp "news.gmane.org"))
 (add-to-list 'gnus-secondary-select-methods '(nnml ""))
	(nnml-directory "~/.emacs.d/gnus.d/mail")
	(nnml-active-file "~/.emacs.d/gnus.d/mail/active")

But its failing to load in gnus because of the 'nnml-directory' and
'nnml-active-file' saying this in the 'message' buffer -

Opening nnml server...done
gnus-ask-server-for-new-groups: Wrong type argument: symbolp, (nnml "" (nnml-directory "~/.emacs.d/gnus.d/mail") (nnml-active-file "~/.emacs.d/gnus.d/mail/active"))

So what I intend to do is to find out how I can move my present email
programme, claws-mail, from '~/Mail' to ~/Mail2', and then I can just
use nnml without specifying any directory as I will be using the
defaults. Complicated, but it should work. 

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, Fluxbox 1.3.5, emacs 24.3.1
Registered Linux user 561944

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]



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

* Re: Positioning of items
  2014-03-24 21:26   ` Sharon Kimble
@ 2014-03-24 22:16     ` Adam Sjøgren
  2014-03-25  7:34       ` Sharon Kimble
  0 siblings, 1 reply; 10+ messages in thread
From: Adam Sjøgren @ 2014-03-24 22:16 UTC (permalink / raw)
  To: info-gnus-english

Sharon Kimble <boudiccas@talktalk.net> writes:

>  (add-to-list 'gnus-secondary-select-methods '(nnml ""))
> 	(nnml-directory "~/.emacs.d/gnus.d/mail")
> 	(nnml-active-file "~/.emacs.d/gnus.d/mail/active")

The parenthesis here are messed up, which is why you get the errors.

I think you should consider to start with the simplest possible
configuration (say the one I posted from your information previously),
and when that works, and only then, expand step by step- rather than
rewriting everything for each try.


  Best regards,

    Adam

-- 
 "Fish swim, birds fly,                                       Adam Sjøgren
  daddy's yell, mama's cry                               asjo@koldfront.dk
  old men sit and think
  I drink"


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

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

* Re: Positioning of items
  2014-03-24 22:16     ` Adam Sjøgren
@ 2014-03-25  7:34       ` Sharon Kimble
  2014-03-25  8:18         ` Glyn Millington
  0 siblings, 1 reply; 10+ messages in thread
From: Sharon Kimble @ 2014-03-25  7:34 UTC (permalink / raw)
  To: info-gnus-english


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

asjo@koldfront.dk (Adam Sjøgren) writes:

> Sharon Kimble <boudiccas@talktalk.net> writes:
>
>>  (add-to-list 'gnus-secondary-select-methods '(nnml ""))
>> 	(nnml-directory "~/.emacs.d/gnus.d/mail")
>> 	(nnml-active-file "~/.emacs.d/gnus.d/mail/active")
>
> The parenthesis here are messed up, which is why you get the errors.
>
> I think you should consider to start with the simplest possible
> configuration (say the one I posted from your information previously),
> and when that works, and only then, expand step by step- rather than
> rewriting everything for each try.
>
Right, back online with gnus, and with no info lost, so far as I know. Now I
have newsgroups and email, but still no system mail. The code relevant for it is

,----
| (setq gnus-select-method '(nnnil ""))
| (add-to-list 'gnus-secondary-select-methods
|                   '(nntp "news.gmane.org"))
|  (add-to-list 'gnus-secondary-select-methods '(nnml ""))
|    (eval-after-load "mail-source"
|        '(add-to-list 'mail-sources '(file :path "/var/mail/boudiccas")))
`----

I can find no way of 'adding in' the mail-source, but that could very well be my
lack of knowledge. How can I get it working please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, emacs 24.3.1
Registered Linux user 561944

[-- Attachment #1.2: Type: application/pgp-signature, Size: 818 bytes --]



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

* Re: Positioning of items
  2014-03-25  7:34       ` Sharon Kimble
@ 2014-03-25  8:18         ` Glyn Millington
  2014-03-25  8:53           ` Sharon Kimble
  2014-03-25 20:58           ` Sharon Kimble
  0 siblings, 2 replies; 10+ messages in thread
From: Glyn Millington @ 2014-03-25  8:18 UTC (permalink / raw)
  To: info-gnus-english

Sharon Kimble <boudiccas@talktalk.net> writes:

> asjo@koldfront.dk (Adam Sjøgren) writes:
>
>> Sharon Kimble <boudiccas@talktalk.net> writes:
>>
>>>  (add-to-list 'gnus-secondary-select-methods '(nnml ""))
>>> (nnml-directory "~/.emacs.d/gnus.d/mail") (nnml-active-file
>>> "~/.emacs.d/gnus.d/mail/active")
>> The parenthesis here are messed up, which is why you get the errors.
>> I think you should consider to start with the simplest possible
>> configuration (say the one I posted from your information
>> previously), and when that works, and only then, expand step by
>> step- rather than rewriting everything for each try.
>>
> Right, back online with gnus, and with no info lost, so far as I know.
> Now I have newsgroups and email, but still no system mail. The code
> relevant for it is
>
> ,----
> | (setq gnus-select-method '(nnnil "")) (add-to-list
> | gnus-secondary-select-methods '(nntp "news.gmane.org")) (add-to-list
> | gnus-secondary-select-methods '(nnml "")) (eval-after-load
> | "mail-source" '(add-to-list 'mail-sources '(file :path
> | "/var/mail/boudiccas")))
> `----
>
> I can find no way of 'adding in' the mail-source, but that could very
> well be my lack of knowledge. How can I get it working please?
>
> Thanks Sharon.

(setq gnus-select-method '(nnnil ""))

(add-to-list
 gnus-secondary-select-methods '(nntp "news.gmane.org"))

(add-to-list gnus-secondary-select-methods '((nnml "")
             mail-sources '(file :path "/var/mail/boudiccas"))) 

Try that!



atb





Glyn


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

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

* Re: Positioning of items
  2014-03-25  8:18         ` Glyn Millington
@ 2014-03-25  8:53           ` Sharon Kimble
  2014-03-25  9:32             ` Glyn Millington
  2014-03-25 20:58           ` Sharon Kimble
  1 sibling, 1 reply; 10+ messages in thread
From: Sharon Kimble @ 2014-03-25  8:53 UTC (permalink / raw)
  To: info-gnus-english


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

On Tue, 25 Mar 2014 08:18:20 +0000
Glyn Millington <glyn.millington@gmail.com> wrote:

> Sharon Kimble <boudiccas@talktalk.net> writes:
> 
> > asjo@koldfront.dk (Adam Sjøgren) writes:
> >
> >> Sharon Kimble <boudiccas@talktalk.net> writes:
> >>
> >>>  (add-to-list 'gnus-secondary-select-methods '(nnml ""))
> >>> (nnml-directory "~/.emacs.d/gnus.d/mail") (nnml-active-file
> >>> "~/.emacs.d/gnus.d/mail/active")
> >> The parenthesis here are messed up, which is why you get the
> >> errors. I think you should consider to start with the simplest
> >> possible configuration (say the one I posted from your information
> >> previously), and when that works, and only then, expand step by
> >> step- rather than rewriting everything for each try.
> >>
> > Right, back online with gnus, and with no info lost, so far as I
> > know. Now I have newsgroups and email, but still no system mail.
> > The code relevant for it is
> >
> > ,----
> > | (setq gnus-select-method '(nnnil "")) (add-to-list
> > | gnus-secondary-select-methods '(nntp "news.gmane.org"))
> > (add-to-list | gnus-secondary-select-methods '(nnml ""))
> > (eval-after-load | "mail-source" '(add-to-list 'mail-sources
> > '(file :path | "/var/mail/boudiccas")))
> > `----
> >
> > I can find no way of 'adding in' the mail-source, but that could
> > very well be my lack of knowledge. How can I get it working please?
> >
> > Thanks Sharon.
> 
> (setq gnus-select-method '(nnnil ""))
> 
> (add-to-list
>  gnus-secondary-select-methods '(nntp "news.gmane.org"))
> 
> (add-to-list gnus-secondary-select-methods '((nnml "")
>              mail-sources '(file :path "/var/mail/boudiccas"))) 
> 
> Try that!
> 
Thanks for this. 

With the new code in place, I attempt to start gnus, which fails with
this in the message buffer -

eval-buffer: Attempt to set a constant symbol: nil

That is a new error message, never seen before so I don't know what it
is referring to, but it didn't occur before with the old code. Sorry!

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, Fluxbox 1.3.5, emacs 24.3.1
Registered Linux user 561944

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]



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

* Re: Positioning of items
  2014-03-25  8:53           ` Sharon Kimble
@ 2014-03-25  9:32             ` Glyn Millington
  0 siblings, 0 replies; 10+ messages in thread
From: Glyn Millington @ 2014-03-25  9:32 UTC (permalink / raw)
  To: info-gnus-english

Sharon Kimble <boudiccas@talktalk.net> writes:

> On Tue, 25 Mar 2014 08:18:20 +0000 Glyn Millington
> <glyn.millington@gmail.com> wrote:
>
>> Sharon Kimble <boudiccas@talktalk.net> writes:
>> 
>> > asjo@koldfront.dk (Adam Sjøgren) writes:
>> >
>> >> Sharon Kimble <boudiccas@talktalk.net> writes:
>> >>
>> >>>  (add-to-list 'gnus-secondary-select-methods '(nnml ""))
>> >>> (nnml-directory "~/.emacs.d/gnus.d/mail") (nnml-active-file
>> >>> "~/.emacs.d/gnus.d/mail/active")
>> >> The parenthesis here are messed up, which is why you get the
>> >> errors. I think you should consider to start with the simplest
>> >> possible configuration (say the one I posted from your
>> >> information previously), and when that works, and only then,
>> >> expand step by step- rather than rewriting everything for each
>> >> try.
>> >>
>> > Right, back online with gnus, and with no info lost, so far as I
>> > know. Now I have newsgroups and email, but still no system mail.
>> > The code relevant for it is
>> > ,----
>> > | (setq gnus-select-method '(nnnil "")) (add-to-list
>> > | gnus-secondary-select-methods '(nntp "news.gmane.org"))
>> > (add-to-list | gnus-secondary-select-methods '(nnml ""))
>> > (eval-after-load | "mail-source" '(add-to-list 'mail-sources
>> > (file :path | "/var/mail/boudiccas"))) `----
>> > I can find no way of 'adding in' the mail-source, but that could
>> > very well be my lack of knowledge. How can I get it working
>> > please?
>> > Thanks Sharon.
>>  (setq gnus-select-method '(nnnil ""))
>> 
>> (add-to-list gnus-secondary-select-methods '(nntp "news.gmane.org"))
>> 
>> (add-to-list gnus-secondary-select-methods '((nnml "") mail-sources
>> (file :path "/var/mail/boudiccas")))
>> 
>> Try that!
>> 
> Thanks for this.
>
> With the new code in place, I attempt to start gnus, which fails with
> this in the message buffer -
>
> eval-buffer: Attempt to set a constant symbol: nil
>
> That is a new error message, never seen before so I don't know what it
> is referring to, but it didn't occur before with the old code. Sorry!

OK - let's try splitting it up!



  (setq gnus-select-method '(nnnil ""))
 
 (add-to-list gnus-secondary-select-methods '(nntp "news.gmane.org"))
 
 (add-to-list gnus-secondary-select-methods '(nnml ""))

(setq  mail-sources  '((file :path "/var/mail/boudiccas")))
 
Almost everyone  here has more lisp-cluefulness than I do!

atb

Glyn


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

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

* Re: Positioning of items
  2014-03-25  8:18         ` Glyn Millington
  2014-03-25  8:53           ` Sharon Kimble
@ 2014-03-25 20:58           ` Sharon Kimble
  1 sibling, 0 replies; 10+ messages in thread
From: Sharon Kimble @ 2014-03-25 20:58 UTC (permalink / raw)
  To: info-gnus-english


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

Glyn Millington <glyn.millington@gmail.com> writes:

> Sharon Kimble <boudiccas@talktalk.net> writes:
>
>> asjo@koldfront.dk (Adam Sjøgren) writes:
>>
>>> Sharon Kimble <boudiccas@talktalk.net> writes:
>>>
>>>>  (add-to-list 'gnus-secondary-select-methods '(nnml ""))
>>>> (nnml-directory "~/.emacs.d/gnus.d/mail") (nnml-active-file
>>>> "~/.emacs.d/gnus.d/mail/active")
>>> The parenthesis here are messed up, which is why you get the errors.
>>> I think you should consider to start with the simplest possible
>>> configuration (say the one I posted from your information
>>> previously), and when that works, and only then, expand step by
>>> step- rather than rewriting everything for each try.
>>>
>> Right, back online with gnus, and with no info lost, so far as I know.
>> Now I have newsgroups and email, but still no system mail. The code
>> relevant for it is
>>
>> ,----
>> | (setq gnus-select-method '(nnnil "")) (add-to-list
>> | gnus-secondary-select-methods '(nntp "news.gmane.org")) (add-to-list
>> | gnus-secondary-select-methods '(nnml "")) (eval-after-load
>> | "mail-source" '(add-to-list 'mail-sources '(file :path
>> | "/var/mail/boudiccas")))
>> `----
>>
>> I can find no way of 'adding in' the mail-source, but that could very
>> well be my lack of knowledge. How can I get it working please?
>>
>> Thanks Sharon.
>
> (setq gnus-select-method '(nnnil ""))
>
> (add-to-list
>  gnus-secondary-select-methods '(nntp "news.gmane.org"))
>
> (add-to-list gnus-secondary-select-methods '((nnml "")
>              mail-sources '(file :path "/var/mail/boudiccas"))) 
>
> Try that!

For the sake of the archives the solution to this is

,----
| (setq mail-sources '((file :path "/var/mail/boudiccas")
|                      (pop :server "mail.pooh.bear"
| 					  :user "winnie@pooh.bear"
| 					  :password "rhubarbandcustard")))
`----

This will then download all the system mails at the same time as the normal
emails.

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, Fluxbox 1.3.5, emacs 24.3.1

[-- Attachment #1.2: Type: application/pgp-signature, Size: 818 bytes --]



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

end of thread, other threads:[~2014-03-25 20:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-24 18:34 Positioning of items Sharon Kimble
2014-03-24 18:49 ` Mark Simpson
2014-03-24 20:11 ` Adam Sjøgren
2014-03-24 21:26   ` Sharon Kimble
2014-03-24 22:16     ` Adam Sjøgren
2014-03-25  7:34       ` Sharon Kimble
2014-03-25  8:18         ` Glyn Millington
2014-03-25  8:53           ` Sharon Kimble
2014-03-25  9:32             ` Glyn Millington
2014-03-25 20:58           ` Sharon Kimble

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