info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multi-email gnus setup questions


From: Eric Abrahamsen
Subject: Re: multi-email gnus setup questions
Date: Thu, 24 Dec 2015 11:28:03 +0800
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (gnu/linux)

news@kloecker.org (Jens Klöcker) writes:

> Hi Benjamin,
>
> Am 22.12.2015 um 22:15 Uhr schrieb Benjamin Slade:
>
>> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>>> You have to tell each account to use your split rules (this allows
>>> you to theoretically use different rules for different accounts). See
>>> the "Client-side IMAP Splitting" section of the manual for
>>> details. If you're using fancy splitting, I think you have to set
>>> nnimap-split-methods to nnimap-split-fancy, then set
>>> nnimap-split-fancy to the value of the splits you want to use. All
>>> that has to happen as server parameters.
>>
>> I've checked "Client-side IMAP Splitting" in the Gnus manual, and
>> tried a few different things, but nothing seems to work. (I don't get
>> any error messages either, but nothing gets refiled.)
>>
>> Does anyone have an example setup with multiple IMAP accounts and mail
>> splitting? 
>
> I have one. It's looking like this:
>
> (setq gnus-secondary-select-methods
>       '((nnimap "work"
>                 SOME CONFIG OPTIONS
>                 (nnimap-inbox "INBOX")
>                 (nnimap-split-methods 'nnimap-split-fancy)
>                 (nnimap-split-fancy
>                  (| SOME FANCY RULES HERE
>                   )
>                  )
>                 )
>         (nnimap "private"
>                 SOME CONFIG OPTIONS
>                 (nnimap-inbox "INBOX")
>                 (nnimap-split-methods 'nnimap-split-fancy)
>                 (nnimap-split-fancy
>                  (| SOME OTHER FANCY RULES HERE
>                   )
>                  )
>                 )
>                )
>
> The fancy split rules split into IMAP folders on the current server.

I think the one other thing that sometimes trips people up is when you
want to set the same rules for multiple servers, so you set the rules to
some external variable, like 'my-fancy-split-rules, and then you want to
use that in the server definitions. As far as I remember (I stopped
doing this so I forget a little), you have to use (nnimap-split-fancy
,my-fancy-split-rules) in the server definition, with the comma unquote.
Maybe someone can confirm/deny that...

>>>> (3) Customizing the C-x gnus menu:
>>>> Right I see things like nnimap+gmail1account:INBOX. Is there a way
>>>> to customize this, to look like FirstAccount:INBOX ?
>>>
>>> You can customize how the line for each group appears using the
>>> `gnus-group-line-format' variable -- it's possible to remove the
>>> backend altogether. See the "Group Line Specification" part of the
>>> manual. In particular, you might try switching the %g format
>>> specifier for %G?  Anyway, experiment with that!
>>
>> I think I'll have to write a custom function to chop off the beginning
>> bit since one of the default formatting specifiers shows too much and
>> the other shows too little.
>
> The is exactly what I have done.

Maybe it's time for a new format specifier :)

E




reply via email to

[Prev in Thread] Current Thread [Next in Thread]