all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* GNUS & nnmaildir
@ 2014-07-30 19:50 Ken
  2014-07-31  8:40 ` Glyn Millington
  2014-07-31  9:17 ` Gour
  0 siblings, 2 replies; 22+ messages in thread
From: Ken @ 2014-07-30 19:50 UTC (permalink / raw
  To: help-gnu-emacs

Hello all,

I am having difficulty with nnmaildir. Currently, I get my mail with
fetchmail, process it through procmail, and have a maildir setup.

I would like to read the mail with emacs gnus, but the documention is a
bit scanty in this area and I have not really found any examples on thge
internet that works for me.

Can any one help?

Thanks,
Ken

-- 
Never reveal your best argument.



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

* Re: GNUS & nnmaildir
       [not found] <mailman.6312.1406761846.1147.help-gnu-emacs@gnu.org>
@ 2014-07-30 23:34 ` Emanuel Berg
  0 siblings, 0 replies; 22+ messages in thread
From: Emanuel Berg @ 2014-07-30 23:34 UTC (permalink / raw
  To: help-gnu-emacs

Ken <kensubuntu@gmail.com> writes:

> I am having difficulty with nnmaildir. Currently, I
> get my mail with fetchmail, process it through
> procmail, and have a maildir setup.
>
> I would like to read the mail with emacs gnus, but
> the documention is a bit scanty in this area and I
> have not really found any examples on thge internet
> that works for me.

Getting Gnus to read mail (and send them) is easy, you
just need a skeleton code file (like half a page of
code) and input a couple of parameters like from where
to fetch the mail etc. It isn't more complicated than
setting that up with a piece of paper from your ISP and
a Microsoft wizard - actually it is easier, since you
have the whole code in front of you, so you can
instantly see where to put your data, and all of it.

Thing is, even though it is straightforward in
"skeleton form", if you are new to Gnus you can be
almost an expert on electronic mail and still don't
know or be able to find the correct variables (Gnus has
a lot, a lot of everything).

So a file with the slots open is what you need.

For nnmaildir I cannot offer one, so grep the web, but
if you'd care to consider nnml, which is the most
common backend (what I can tell, from speaking with
people), feel free to use my file (and all the other
Gnus files in that directory) -

http://user.it.uu.se/~embe8573/conf/emacs-init/gnus/mail.el

> Can any one help?

Yes, on this list there are several Gnus users. If you
don't get help (unlikely), try gnu.emacs.gnus as well.

Good luck!

-- 
underground experts united


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

* Re: GNUS & nnmaildir
  2014-07-30 19:50 Ken
@ 2014-07-31  8:40 ` Glyn Millington
  2014-07-31 13:20   ` Ken
  2014-07-31  9:17 ` Gour
  1 sibling, 1 reply; 22+ messages in thread
From: Glyn Millington @ 2014-07-31  8:40 UTC (permalink / raw
  To: help-gnu-emacs

Ken <kensubuntu@gmail.com> writes:

> Hello all,
>
> I am having difficulty with nnmaildir. Currently, I get my mail with
> fetchmail, process it through procmail, and have a maildir setup.
>
> I would like to read the mail with emacs gnus, but the documention is a
> bit scanty in this area and I have not really found any examples on thge
> internet that works for me.
>
> Can any one help?

I don 't use nnmaildir myself on an everyday basis - but did try it once
to see if it worked, and it did!

This, added to ~/.gnus, was what enabled me to read the mail:

 (add-to-list 'gnus-secondary-select-methods
	     '(nnmaildir "GlynMaildir" (directory "~/Maildir/")))



Have you discovered this page? :

http://www.emacswiki.org/emacs/UsingProcmailWithGnus#toc4

Are you using Gnus for news AND mail or just mail?


atb




Glyn




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

* RE: GNUS & nnmaildir
@ 2014-07-31  8:51 Álvar Ibeas
  2014-07-31 14:04 ` Ken
  0 siblings, 1 reply; 22+ messages in thread
From: Álvar Ibeas @ 2014-07-31  8:51 UTC (permalink / raw
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 78 bytes --]


Hi,

For just reading mail, this minimalistic .gnus.el should do the trick:


[-- Attachment #2: .gnus.el --]
[-- Type: text/plain, Size: 128 bytes --]

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

(setq gnus-secondary-select-methods
	'((nnmaildir "local"
		   (directory "~/maildir"))))

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

* Re: GNUS & nnmaildir
  2014-07-30 19:50 Ken
  2014-07-31  8:40 ` Glyn Millington
@ 2014-07-31  9:17 ` Gour
  2014-07-31 13:12   ` Ken
  1 sibling, 1 reply; 22+ messages in thread
From: Gour @ 2014-07-31  9:17 UTC (permalink / raw
  To: help-gnu-emacs

Ken <kensubuntu@gmail.com> writes:

> I am having difficulty with nnmaildir. Currently, I get my mail with
> fetchmail, process it through procmail, and have a maildir setup.

Maybe it's a little bit more complicated, but I have similar setup:
fetching mail with getmail, maildrop is used for processing and then
delivered to locally running instance of dovecot IMAP server and then
accessed with Gnus.

I can send you my config if you're interested...


Sincerely,
Gour

-- 
The humble sages, by virtue of true knowledge, see with equal 
vision a learned and gentle brāhmana, a cow, an elephant, a dog 
and a dog-eater.




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

* Re: GNUS & nnmaildir
  2014-07-31  9:17 ` Gour
@ 2014-07-31 13:12   ` Ken
  0 siblings, 0 replies; 22+ messages in thread
From: Ken @ 2014-07-31 13:12 UTC (permalink / raw
  To: help-gnu-emacs

On Thu, Jul 31, 2014 at 11:17:44AM +0200, Gour wrote:
 
> Maybe it's a little bit more complicated, but I have similar setup:
> fetching mail with getmail, maildrop is used for processing and then
> delivered to locally running instance of dovecot IMAP server and then
> accessed with Gnus.
> 
> I can send you my config if you're interested...
> 
 
I thank you greatly for your offer. I wouldn't mind looking at your
setup, for learning purposes. Hwever, procmail sorts everything into
maildir folders. I am not using imap.

Thanks again for your offer. I so greatly appreciate it.

Ken

-- 
Sometimes I wonder if I'm in my right mind.  Then it passes off and I'm
as intelligent as ever.
		-- Samuel Beckett, "Endgame"



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

* Re: GNUS & nnmaildir
  2014-07-31  8:40 ` Glyn Millington
@ 2014-07-31 13:20   ` Ken
  0 siblings, 0 replies; 22+ messages in thread
From: Ken @ 2014-07-31 13:20 UTC (permalink / raw
  To: help-gnu-emacs

On Thu, Jul 31, 2014 at 09:40:10AM +0100, Glyn Millington wrote:
 
> I don 't use nnmaildir myself on an everyday basis - but did try it once
> to see if it worked, and it did!
> 
> This, added to ~/.gnus, was what enabled me to read the mail:
> 
>  (add-to-list 'gnus-secondary-select-methods
> 	     '(nnmaildir "GlynMaildir" (directory "~/Maildir/")))
> 
> 
> 
> Have you discovered this page? :
> 
> http://www.emacswiki.org/emacs/UsingProcmailWithGnus#toc4
> 
> Are you using Gnus for news AND mail or just mail?
> 
> 
> atb
Hi,

I access gmane with gnus and that works no problem.... I have seen that
page before. I am going to tweak my config with something I missed
before on that page and see if that works.

Thanks for the assistance,
Ken


-- 
Patch griefs with proverbs.
		-- William Shakespeare, "Much Ado About Nothing"



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

* Re: GNUS & nnmaildir
  2014-07-31  8:51 GNUS & nnmaildir Álvar Ibeas
@ 2014-07-31 14:04 ` Ken
  2014-07-31 14:32   ` Álvar Ibeas
  0 siblings, 1 reply; 22+ messages in thread
From: Ken @ 2014-07-31 14:04 UTC (permalink / raw
  To: help-gnu-emacs

On Thu, Jul 31, 2014 at 10:51:30AM +0200, Álvar Ibeas wrote:
> 
> Hi,
> 
> For just reading mail, this minimalistic .gnus.el should do the trick:
> 

> (setq gnus-select-method '(nnnil ""))
> 
> (setq gnus-secondary-select-methods
> 	'((nnmaildir "local"
> 		   (directory "~/maildir"))))

This is my .gnus configuration. It works for news, but not for mail.

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

(setq smtp-mail-server "kensubuntu@gmail.com")
(setq user-mail-address "kensubuntu@gmail.com")
(setq message-send-mail-real-function 'smtpmail-send-it)

(setq
 gnus-secondary-select-methods '(nnmaildir "mymailbox"  (directory "/Maildir/"))
 mail-sources '((maildir :path "~/Maildir/" :subdirs ("cur" "new")))
 mail-source-delete-incoming t
)

(setq gnus-message-archive-group "nnmaildir+mymailbox:outbox")

thanks everyone for the assistance.
Ken

-- 
There is an old time toast which is golden for its beauty.
"When you ascend the hill of prosperity may you not meet a friend."
		-- Mark Twain



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

* Re: GNUS & nnmaildir
  2014-07-31 14:04 ` Ken
@ 2014-07-31 14:32   ` Álvar Ibeas
  2014-07-31 17:28     ` Ken
  0 siblings, 1 reply; 22+ messages in thread
From: Álvar Ibeas @ 2014-07-31 14:32 UTC (permalink / raw
  To: help-gnu-emacs

Ken <kensubuntu@gmail.com> writes:

> This is my .gnus configuration. It works for news, but not for mail.
>
> (setq gnus-select-method '(nntp "news.gmane.org"))
>
> (setq smtp-mail-server "kensubuntu@gmail.com")
> (setq user-mail-address "kensubuntu@gmail.com")
> (setq message-send-mail-real-function 'smtpmail-send-it)
>
> (setq
>  gnus-secondary-select-methods '(nnmaildir "mymailbox"  (directory "/Maildir/"))
>  mail-sources '((maildir :path "~/Maildir/" :subdirs ("cur" "new")))
>  mail-source-delete-incoming t
> )
>
> (setq gnus-message-archive-group "nnmaildir+mymailbox:outbox")
>
> thanks everyone for the assistance.
> Ken

The list starting by 'nnmaildir' needs to be enclosed in another one:

'((nnmaildir "mymailbox"  (directory "/Maildir/")))

Is your folder "/Maildir" or "~/Maildir"?

Also, I don't think the 'mail-sources' lines are needed for your
purpose: they move the mail in your Maildir folder into the GNUS archive
(I'm guessing, since I'm a Gnus beginner).



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

* Re: GNUS & nnmaildir
  2014-07-31 14:32   ` Álvar Ibeas
@ 2014-07-31 17:28     ` Ken
  0 siblings, 0 replies; 22+ messages in thread
From: Ken @ 2014-07-31 17:28 UTC (permalink / raw
  To: help-gnu-emacs

On Thu, Jul 31, 2014 at 04:32:40PM +0200, Álvar Ibeas wrote:
 
> The list starting by 'nnmaildir' needs to be enclosed in another one:
> 
> '((nnmaildir "mymailbox"  (directory "/Maildir/")))
> 
> Is your folder "/Maildir" or "~/Maildir"?
> 
> Also, I don't think the 'mail-sources' lines are needed for your
> purpose: they move the mail in your Maildir folder into the GNUS archive
> (I'm guessing, since I'm a Gnus beginner).
> 

Duh, now that you point these things out they are obvious. I've made the
changes. I'll let you know if they work.

Everyone has been wonderfully helpful here. I appreciate it so much.
Thank you!

Ken

-- 
You will be the victim of a bizarre joke.



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

* gnus & nnmaildir
@ 2014-07-31 18:54 Ken
  2014-07-31 19:18 ` Glyn Millington
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Ken @ 2014-07-31 18:54 UTC (permalink / raw
  To: help-gnu-emacs

Well, below is my .gnus configuration. It still isn't working unless
there is something I need to so to "subscribe" to my mail?????

(message "[...setting up gnus]...")

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

(setq smtp-mail-server "kensubuntu@gmail.com")
(setq user-mail-address "kensubuntu@gmail.com")
(setq message-send-mail-real-function 'smtpmail-send-it)

(setq
 gnus-secondary-select-methods '((nnmaildir "mymailbox"  (directory "~/Maildir/")))
)

(setq gnus-message-archive-group "nnmaildir+mymailbox:outbox")


Thanks,
Ken


-- 
You will be winged by an anti-aircraft battery.



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

* Re: gnus & nnmaildir
  2014-07-31 18:54 gnus & nnmaildir Ken
@ 2014-07-31 19:18 ` Glyn Millington
  2014-07-31 19:52 ` Álvar Ibeas
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 22+ messages in thread
From: Glyn Millington @ 2014-07-31 19:18 UTC (permalink / raw
  To: help-gnu-emacs

Ken <kensubuntu@gmail.com> writes:

> Well, below is my .gnus configuration. It still isn't working unless
> there is something I need to so to "subscribe" to my mail?????

Well the config looks good to me (no expert).

Try this:

Start up Gnus - no sign of any nnmaildir groups - right?

Hit ^, that will take you into the server buffer- is nnmaildir listed
there? 

Get the cursor over nnmaildir and hit enter.  

There should be groups llisted - or maybe only one?    Use  'u' to toggle
subscription to those groups - they should then show up when you open Gnus.



Good luck :-)



Glyn




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

* Re: gnus & nnmaildir
  2014-07-31 18:54 gnus & nnmaildir Ken
  2014-07-31 19:18 ` Glyn Millington
@ 2014-07-31 19:52 ` Álvar Ibeas
  2014-07-31 20:59   ` Ken
  2014-08-20 22:04 ` lee
       [not found] ` <mailman.7294.1408572317.1147.help-gnu-emacs@gnu.org>
  3 siblings, 1 reply; 22+ messages in thread
From: Álvar Ibeas @ 2014-07-31 19:52 UTC (permalink / raw
  To: help-gnu-emacs


I think that nnmaildir only loads maildir folders in your ~/Maildir
(like ~/Maildir/friends/cur). Neither the cur, new, tmp folders that may
exist in ~/Maildir, nor deeper folders (~/Maildir/old/2013). To access
those one has to create symlinks.





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

* Re: gnus & nnmaildir
  2014-07-31 19:52 ` Álvar Ibeas
@ 2014-07-31 20:59   ` Ken
  2014-08-01  9:36     ` Álvar Ibeas
  0 siblings, 1 reply; 22+ messages in thread
From: Ken @ 2014-07-31 20:59 UTC (permalink / raw
  To: help-gnu-emacs

On Thu, Jul 31, 2014 at 09:52:59PM +0200, Álvar Ibeas wrote:
> 
> I think that nnmaildir only loads maildir folders in your ~/Maildir
> (like ~/Maildir/friends/cur). Neither the cur, new, tmp folders that may
> exist in ~/Maildir, nor deeper folders (~/Maildir/old/2013). To access
> those one has to create symlinks.
> 

Well, I think I figured out something, but I don't know the solution.

GNUS sees a directory called queue under ~/Maildir/. However, procmail
sorts things into folders preceded by a ".", such as .emacs. These are
hidden folders of corse, so GNUS does not see them. Is there anyway
around this or do I need to revamp my entire process.

Thanks,
Ken

-- 
You will gain money by a speculation or lottery.



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

* Re: gnus & nnmaildir
  2014-07-31 20:59   ` Ken
@ 2014-08-01  9:36     ` Álvar Ibeas
  0 siblings, 0 replies; 22+ messages in thread
From: Álvar Ibeas @ 2014-08-01  9:36 UTC (permalink / raw
  To: help-gnu-emacs


Ken <kensubuntu@gmail.com> writes:

> GNUS sees a directory called queue under ~/Maildir/. However, procmail
> sorts things into folders preceded by a ".", such as .emacs. These are
> hidden folders of corse, so GNUS does not see them. Is there anyway
> around this or do I need to revamp my entire process.

The Gnus info pages confirm that: "you need to create a directory
and populate it with maildirs or symlinks to maildirs [...]  Any
filenames in the directory starting with `.' are ignored."



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

* GNUS && nnmaildir
@ 2014-08-01 14:41 Ken
  0 siblings, 0 replies; 22+ messages in thread
From: Ken @ 2014-08-01 14:41 UTC (permalink / raw
  To: help-gnu-emacs


Well, it wasn't as bad as I thought it would be. 

1. Stop Fetchmail.
2. Edit my procmail configuration
3. Delete my "." directories (after making sure all the mail was gone
   from them)
4. Restart fetchmail
5. Everything worked

Thank you so much for all your assistance.
Ken



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

* Re: gnus & nnmaildir
  2014-07-31 18:54 gnus & nnmaildir Ken
  2014-07-31 19:18 ` Glyn Millington
  2014-07-31 19:52 ` Álvar Ibeas
@ 2014-08-20 22:04 ` lee
       [not found] ` <mailman.7294.1408572317.1147.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 22+ messages in thread
From: lee @ 2014-08-20 22:04 UTC (permalink / raw
  To: help-gnu-emacs; +Cc: kensubuntu

Ken <kensubuntu@gmail.com> writes:

> Well, below is my .gnus configuration. It still isn't working unless
> there is something I need to so to "subscribe" to my mail?????
>
> (message "[...setting up gnus]...")
>
> (setq gnus-select-method '(nntp "news.gmane.org"))
>
> (setq smtp-mail-server "kensubuntu@gmail.com")
> (setq user-mail-address "kensubuntu@gmail.com")
> (setq message-send-mail-real-function 'smtpmail-send-it)
>
> (setq
>  gnus-secondary-select-methods '((nnmaildir "mymailbox"  (directory "~/Maildir/")))
> )
>
> (setq gnus-message-archive-group "nnmaildir+mymailbox:outbox")

You may need/want to define mail sources.


(setq mail-sources ...)


Sorting ("splitting" as gnus calls it) incoming mail with procmail or
other MDAs or an exim-filter is somewhat contradictory to how gnus
works.  Gnus knows, if defined, mail sources and fetches incoming mail
from there (regardless of what kind the source is), while, if set up,
splitting ("sorting") such mail into groups ("folders") so that procmail
etc. are no longer needed.

My recommendation is to use gnus' native nnml format rather than maildir
and set up some (fancy) mail splitting.  Example for nnml:


(setq
 gnus-select-method '(nnml "yun" (nnml-use-compressed-files ".bz2")
			   (nnml-compressed-files-size-threshold 65535)))


You could specify all your groups as mail sources (not recommended) or
just define a temporary maildir as one of the mail sources and use mutt
to push (copies of) the mails from the old maildir folder into the
temporary one after setting up appropriate splitting for gnus.  Push
only one mail at first, check your splitting rules, adjust as needed,
then just push the rest of them and gnus will do the work for you ---
repeat for all your maildir folders.

You can, of course, stick to maildir and use it with gnus, which saves
you the conversion.  I converted and am not looking back to mutt; gnus
is just too good :)

Keep good backups when starting with gnus.  You may need to try out
stuff and want to be able to roll back.  Doing a conversion greatly
helps with it because you can keep your existing mail storage intact.


-- 
GNU Emacs 24.4.50.2 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2014-08-17 on yun.yagibdah.de



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

* Re: gnus & nnmaildir
       [not found] ` <mailman.7294.1408572317.1147.help-gnu-emacs@gnu.org>
@ 2014-08-20 22:41   ` Emanuel Berg
       [not found]   ` <87k362dbrw.fsf@debian.uxu>
  1 sibling, 0 replies; 22+ messages in thread
From: Emanuel Berg @ 2014-08-20 22:41 UTC (permalink / raw
  To: help-gnu-emacs

> My recommendation is to use gnus' native nnml format
> rather than maildir and set up some (fancy) mail
> splitting. Example for nnml:
>
> (setq gnus-select-method '(nnml "yun"
> (nnml-use-compressed-files ".bz2")
> (nnml-compressed-files-size-threshold 65535)))

Yes, I can recommend nnml as well!

What I like about it is that it uses one file for each
mail, and those are put in your user filesystem in
directories that mimic the groups, so if you need to
apply shell tools (extract information that way) it is
all very clear how it works.

Splitting is a wonderful feature that makes mail as
sweet as news. Here is an example how it is done:

(setq nnmail-split-methods
 '(
   ("zsh"          "\\(^Cc\\|^\\(Resent-\\)?To\\):.*zsh-\\(workers\\|users\\)@zsh\.org.*")
   ("debian.user"  "\\(^Cc\\|^\\(Resent-\\)?To\\):.*debian-user@lists\.debian\.org.*")
   ("cc"           "\\(^Cc\\|^\\(Resent-\\)?To\\):.*\\(help-gnu-emacs@gnu\.org\\|info-gnus-english@gnu\.org\\).*")
   ("l4"           "\\(^Cc\\|^\\(Resent-\\)?To\\):.*l4-hackers@os\.inf\.tu-dresden\.de.*")
   ("emacs-w3m"    "^Subject:.*emacs-w3m.*")
   ("mail.misc"    "") ))

To try out the regexps, when you see an article in
Gnus, hit `B q' and it says to where it will go. `B r'
will actually put it there, but this is automatized for
future mails, of course (that's the idea).

Splitting makes it possible to be on a lot of listbots
but always with the same mail; and the inbox doesn't
get flooded still, or it does, but organized and not in
your face unless told so.

And you can keep - what do they call it? "family?" -
such mails can have a distinct directory (or group) as
well.

> You can, of course, stick to maildir and use it with
> gnus, which saves you the conversion. I converted and
> am not looking back to mutt; gnus is just too good :)

Gnus is fantastic! It is just the best thing ever. I
thought Emacs was great, now I know its better than
that.

You can just dodge the backend completely and focus on
the client.

The only thing I don't like with Gnus is the way it
looks with the default options. I put a lot of work
into that. I know Gnus is 100% programmable, but first
impressions shouldn't be underestimated. For me, that
was just educational and fun to change. But I fear lots
of people won't be attracted to put that much time into
it. I have a small fan page for Gnus, with a couple
screenshots how I think it should look:

dump - http://user.it.uu.se/~embe8573/gnus/dumps/new/group.png
page - http://user.it.uu.se/~embe8573/gnus/index.html

Perhaps instead of saying this I should put together a
Gnus theme? Is that something that people do? I
crosspost this to gnu.emacs.gnus, this perhaps we can
discuss there, if anyone has ideas (though Gnus is
certainly not off-topic on gnu.emacs.help).

I know I have said this a couple of times but I just
love talk about how good Gnus is and what amazing stuff
can be done with it. Some people say they don't like
writing and reading mails - let me tell you, if I
couldn't type, and had to use Outlook, I would *detest*
mails! Tools, tools, tools... If you are in a
beautiful, cool garden with the best shovel in the
world, working on your digging skills, digging for ten
hours straight is paradise.

I don't know if I should bow because I am so grateful
to Linux, Emacs, Gnus, and Usenet, *or* if I should
pound myself on the chest for finding them, and nothing
short of making them a part of me! Just unbelievable
stuff.

-- 
underground experts united


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

* Re: gnus & nnmaildir
       [not found]   ` <87k362dbrw.fsf@debian.uxu>
@ 2014-08-23 12:23     ` lee
       [not found]     ` <mailman.7426.1408798394.1147.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 22+ messages in thread
From: lee @ 2014-08-23 12:23 UTC (permalink / raw
  To: help-gnu-emacs

Emanuel Berg <embe8573@student.uu.se> writes:

>> My recommendation is to use gnus' native nnml format
>> rather than maildir and set up some (fancy) mail
>> splitting. Example for nnml:
>>
>> (setq gnus-select-method '(nnml "yun"
>> (nnml-use-compressed-files ".bz2")
>> (nnml-compressed-files-size-threshold 65535)))
>
> Yes, I can recommend nnml as well!
>
> What I like about it is that it uses one file for each
> mail, and those are put in your user filesystem in
> directories that mimic the groups, so if you need to
> apply shell tools (extract information that way) it is
> all very clear how it works.

Having these groups is one of the big advantages over mutt.  A big
disadvantage is that nnml is understood by gnus exclusively.  In case
you want/need to be able to use different MUAs, maildir or imap work
much better for that.

There's also posting styles like:


(setq gnus-parameters
      `(
	("mail\\..*"
	 (gnus-show-threads nil)
	 (gnus-use-scoring nil)
	 (gnus-article-sort-functions '(gnus-article-sort-by-number))
	 (display . [not expire])
	 (gcc-self . "mail.sent")
	 (gnus-summary-line-format
	  ":%U%R%z%I(%5k) %(%[%-23,23A%]%) %11&user-date; '%s\n")
	 )
	;;
	("mail\\.lists\\.emacs\\..*"
	 (posting-style
	  (organization "my virtual residence")
	  (signature (version))))
	))


> Splitting is a wonderful feature that makes mail as
> sweet as news. Here is an example how it is done:
>
> (setq nnmail-split-methods

It didn't take long before I found out that I need nnmail-split-fancy
--- I don't remember why, though I'd recomment to look into fancy
splitting right away.  Here's an excerpt:


(setq nnmail-split-methods 'nnmail-split-fancy)
;; order DOES matter
;; (| split split split ... GROUP)
;; (& split split split ... GROUP)
;; split = (HEADER REGEXP GROUP)
;; If the split is `nil', it is ignored.
(setq nnmail-split-fancy '(|
			   ("List-Id"
			    "\\<help-gnu-emacs\\.gnu\\.org\\>"
			    "mail.lists.emacs.help")

			   ("List-Id"
			    "\\<gnu-emacs-sources\\.gnu\\.org\\>"
			    "mail.lists.emacs.sources")

			   ("List-Id"
			    "\\<beginners\\.perl\\.org\\>"
			    "mail.lists.perl.beginners")


			   ;; mailing lists above

			   (any
			    ".*undisclosed.recipient.*"
			    "mail.junk")

			   ("Content-Type"
			    "text/html.*"
			    "mail.junk")

			   ("Content-Type"
			    "multipart/alternative.*"
			    "mail.junk")

			   "mail.0-incoming"))


It takes quite a bit of getting used to and some trial and error to
figure it out.  Once you get the hang of it it's easy.  I guess it's
easier when you know elisp because things start to make sense; I learned
it only later.

> Splitting makes it possible to be on a lot of listbots
> but always with the same mail; and the inbox doesn't
> get flooded still, or it does, but organized and not in
> your face unless told so.

With mutt, I used an exim filter file.  Gnus is rather slow with
splitting and sometimes with building a summary buffer --- compared to
mutt, which is really fast.

> And you can keep - what do they call it? "family?" -
> such mails can have a distinct directory (or group) as
> well.

Like I have "mail.per.<some person>" ...

>> You can, of course, stick to maildir and use it with
>> gnus, which saves you the conversion. I converted and
>> am not looking back to mutt; gnus is just too good :)
>
> Gnus is fantastic! It is just the best thing ever. I
> thought Emacs was great, now I know its better than
> that.
>
> You can just dodge the backend completely and focus on
> the client.

And you can read pretty much everything you want as mail ...  With mutt,
I was using emacs as editor anyway.  Over the years, I kept looking from
time to time if there's anything better.  There never was until I tried
gnus.

> The only thing I don't like with Gnus is the way it
> looks with the default options. I put a lot of work
> into that. I know Gnus is 100% programmable, but first
> impressions shouldn't be underestimated. For me, that
> was just educational and fun to change. But I fear lots
> of people won't be attracted to put that much time into
> it. I have a small fan page for Gnus, with a couple
> screenshots how I think it should look:
>
> dump - http://user.it.uu.se/~embe8573/gnus/dumps/new/group.png
> page - http://user.it.uu.se/~embe8573/gnus/index.html

Which font do you use?  It looks good on the screenshots.

> Perhaps instead of saying this I should put together a
> Gnus theme? Is that something that people do?

Hm, I didn't make a theme.  I'm using no window decorations for emacs
frames and green on black with the Source Code Pro font.

> I crosspost this to gnu.emacs.gnus, this perhaps we can discuss there,
> if anyone has ideas (though Gnus is certainly not off-topic on
> gnu.emacs.help).

Or ding.gnus.org?  gnu.emacs.gnus doesn't look like a mailing list but
like an uncategorized forum, and there's no way to subscribe?

Perhaps we should put things on a gnus wiki, or make a category/pages
for gnus on the emacs wiki?

> [...]
> Some people say they don't like writing and reading mails - let me
> tell you, if I couldn't type, and had to use Outlook, I would *detest*
> mails!

Emails are the most important and most convenient way of communication
to me.  Outlook is unsuited to deal with more than perhaps a handful of
emails per day, if that.  Besides, there isn't any really good MUA for
windoze.

> Tools, tools, tools... If you are in a beautiful, cool garden
> with the best shovel in the world, working on your digging skills,
> digging for ten hours straight is paradise.

Only if you love to dig.

> I don't know if I should bow because I am so grateful
> to Linux, Emacs, Gnus, and Usenet, *or* if I should
> pound myself on the chest for finding them, and nothing
> short of making them a part of me! Just unbelievable
> stuff.

You can always make contributions.  The problem is that usually no one
really cares.


-- 
GNU Emacs 24.4.50.2 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2014-08-17 on yun.yagibdah.de



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

* Re: gnus & nnmaildir
       [not found]     ` <mailman.7426.1408798394.1147.help-gnu-emacs@gnu.org>
@ 2014-08-23 20:59       ` Emanuel Berg
  2014-08-23 22:10         ` Emanuel Berg
  0 siblings, 1 reply; 22+ messages in thread
From: Emanuel Berg @ 2014-08-23 20:59 UTC (permalink / raw
  To: help-gnu-emacs

lee <lee@yun.yagibdah.de> writes:

> Having these groups is one of the big advantages over
> mutt. A big disadvantage is that nnml is understood
> by gnus exclusively. In case you want/need to be able
> to use different MUAs, maildir or imap work much
> better for that.

Gnus is good, and it is complicated, so if you invest
time in understanding it to be helped by its power, I
don't think there is reason to switch. Even so the nnml
storage system is, well, as system. You could write a
script to crunch those files to setup a new system, of
coure.

> There's also posting styles

Yes, another useful feature though in my experience not
as indispensible as splitting.

> With mutt, I used an exim filter file. Gnus is rather
> slow with splitting and sometimes with building a
> summary buffer --- compared to mutt, which is really
> fast.

If you have a KILL file it can take a short time for
several hundreds or more messages. I'm OK with that as
I check the newsgroups and mail groups every day, so
there are seldom that many messages. But even when
there are it is fast, and besides it is a one-time
delay. Not as in the unresponsiveness of every
interactive command or the jitter of a bitstream -
those are much more frustrating.

> And you can read pretty much everything you want as
> mail ... With mutt, I was using emacs as editor
> anyway. Over the years, I kept looking from time to
> time if there's anything better. There never was
> until I tried gnus.

Did you save the message buffers as files and fed them
to mutt from the shell or did you automatize this
somehow from Emacs?

> Which font do you use? It looks good on the
> screenshots.

You bet. If you saw a font of the Linux console, it is
Terminus. In /etc/default/console-setup:

VERBOSE_OUTPUT="no"
ACTIVE_CONSOLES="/dev/tty[1-6]"
CHARMAP="UTF-8"
CODESET="Lat7"
FONTFACE="Terminus"
FONTSIZE="28x14"
SCREEN_WIDTH=72
SCREEN_HEIGHT=27

If you saw a font of X, in ~/.Xresources, I think it is

xterm*faceName: xft:bitstram vera sans mono:size=15:antialias=true

the reason I am unsure is that that dumps shows urxvt,
not xterm, but I take it the same fonts works for both,
and that I didn't change since switching from urxvt to
xterm.

> Or ding.gnus.org? gnu.emacs.gnus doesn't look like a
> mailing list but like an uncategorized forum, and
> there's no way to subscribe?

No, it is a newsgroup, just like gnu.emacs.help,
gnu.emacs.sources, alt.os.linux, etc. Maybe there is a
hybrid solution for that just as there is for
gnu.emacs.help (a listbot gate) but I don't know, it
makes less sense as most Gnus users should prefer
Usenet.

> Emails are the most important and most convenient way
> of communication to me.

No doubt.

> Outlook is unsuited to deal with more than perhaps a
> handful of emails per day, if that. Besides, there
> isn't any really good MUA for windoze.

I didn't use Outlook for ages but I don't think I'd
take to Thunderbird that much more. I want an all-text,
no GUI, mouse-free, in-Emacs client.

>> Tools, tools, tools... If you are in a beautiful,
>> cool garden with the best shovel in the world,
>> working on your digging skills, digging for ten
>> hours straight is paradise.
>
> Only if you love to dig.

No, that's the idea. If you love everything around an
activity - the setting, the tools - you start to love
the activity as well. At least I do.

>> I don't know if I should bow because I am so
>> grateful to Linux, Emacs, Gnus, and Usenet, *or* if
>> I should pound myself on the chest for finding them,
>> and nothing short of making them a part of me! Just
>> unbelievable stuff.
>
> You can always make contributions. The problem is
> that usually no one really cares.

I think people care, it is just that don't share my
taste, most often. Those who do, are usually themselves
capable (haha). So it seems there isn't that huge a
market for my skills. Or "skillz". Or M-A-N-N-Y :)

-- 
underground experts united


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

* Re: gnus & nnmaildir
  2014-08-23 20:59       ` Emanuel Berg
@ 2014-08-23 22:10         ` Emanuel Berg
  2014-08-24 17:02           ` Joe Fineman
  0 siblings, 1 reply; 22+ messages in thread
From: Emanuel Berg @ 2014-08-23 22:10 UTC (permalink / raw
  To: help-gnu-emacs

Emanuel Berg <embe8573@student.uu.se> writes:

>> Or ding.gnus.org? ...
>
> No, [gnu.emacs.gnus] is a newsgroup, just like
> gnu.emacs.help, gnu.emacs.sources, alt.os.linux, etc.
> Maybe there is a hybrid solution for that just as
> there is for gnu.emacs.help (a listbot gate) but I
> don't know, it makes less sense as most Gnus users
> should prefer Usenet.

On http://www.gnus.org/resources.html, it says:

About gnu.emacs.help:

  * The gnu.emacs.gnus newsgroup is the appropriate
    place to ask questions on usage of released
    versions of Gnus.

About ding@gnus.org or gmane.emacs.gnus.general:

  * Discussions about Gnus development takes place on
    the ding mailing list. It's a mid-volume list
    (10-30 messages per day) and is open for anyone
    interested. To subscribe, send a message to
    ding-request@gnus.org to subscribe. The address of
    the mailing list itself if ding@gnus.org.

  * The ding mailing list is gatewayed to the
    gmane.emacs.gnus.general newsgroup. The gateway is
    bi-directional ­ everything mailed to the mailing
    list will appear on the newsgroup, and all articles
    posted to the newsgroup will appear on the mailing
    list.

Man, I've been missing out on the action! Because
gnu.emacs.gnus has nowhere near "10-30 messages per
day". Problem is, I can't get access to
gmane.emacs.gnus.general on Aioe.org. But no worry,
I'll just join the mailing list and then split it to a
group and name that gmane.emacs.gnus.general -
brilliant!

-- 
underground experts united


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

* Re: gnus & nnmaildir
  2014-08-23 22:10         ` Emanuel Berg
@ 2014-08-24 17:02           ` Joe Fineman
  0 siblings, 0 replies; 22+ messages in thread
From: Joe Fineman @ 2014-08-24 17:02 UTC (permalink / raw
  To: help-gnu-emacs

Emanuel Berg <embe8573@student.uu.se> writes:

> Emanuel Berg <embe8573@student.uu.se> writes:

> On http://www.gnus.org/resources.html, it says:
>
> About gnu.emacs.help:
>
>   * The gnu.emacs.gnus newsgroup is the appropriate
>     place to ask questions on usage of released versions of Gnus.

I have recently made a couple of attempts to post a query on
gnu.emacs.gnus, but it seems my Gnus no longer can read it or post to
it.

FWIW, here is the query:

I use Gnus 5.13 under Emacs 24.3 under Cygwin 1.5.25 under Windows XP.

In my routines for reading email (at Verizon) when I do not want to
read newsgroups (at eternal-september), I have been calling
(gnus-no-server) without trouble until recently.  Then (after weeding
out some old nnfolder+archive:sent. directories), I found that
(gnus-no-server) no longer allowed me to read mail.  It brought up
Gnus and allowed me to send mail, but gave the usual no-news message
even when I in fact had mail.  M-x gnus, however, brought up incoming
mail (as well as newsgroups), as usual.

On investigating with L in the *Group* buffer, I found that I had
somehow unsubscribed to nnml:mail.misc.  Resubscribing to it restored
service under (gnus-no-server) once, but thereafter it failed again,
tho I was still subscribed.

What have I done wrong?
-- 
---  Joe Fineman    joe_f@verizon.net

||:  When confused, read the manual, which will give you a good  :||
||:  excuse.                                                     :||


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

end of thread, other threads:[~2014-08-24 17:02 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-31 18:54 gnus & nnmaildir Ken
2014-07-31 19:18 ` Glyn Millington
2014-07-31 19:52 ` Álvar Ibeas
2014-07-31 20:59   ` Ken
2014-08-01  9:36     ` Álvar Ibeas
2014-08-20 22:04 ` lee
     [not found] ` <mailman.7294.1408572317.1147.help-gnu-emacs@gnu.org>
2014-08-20 22:41   ` Emanuel Berg
     [not found]   ` <87k362dbrw.fsf@debian.uxu>
2014-08-23 12:23     ` lee
     [not found]     ` <mailman.7426.1408798394.1147.help-gnu-emacs@gnu.org>
2014-08-23 20:59       ` Emanuel Berg
2014-08-23 22:10         ` Emanuel Berg
2014-08-24 17:02           ` Joe Fineman
  -- strict thread matches above, loose matches on Subject: below --
2014-08-01 14:41 GNUS && nnmaildir Ken
2014-07-31  8:51 GNUS & nnmaildir Álvar Ibeas
2014-07-31 14:04 ` Ken
2014-07-31 14:32   ` Álvar Ibeas
2014-07-31 17:28     ` Ken
     [not found] <mailman.6312.1406761846.1147.help-gnu-emacs@gnu.org>
2014-07-30 23:34 ` Emanuel Berg
2014-07-30 19:50 Ken
2014-07-31  8:40 ` Glyn Millington
2014-07-31 13:20   ` Ken
2014-07-31  9:17 ` Gour
2014-07-31 13:12   ` Ken

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.