Re: multi-email gnus setup questions
Benjamin Slade writes: > n...@kloecker.org (Jens Klöcker) writes: > >> I have one. It's looking like this: >> >> --8<---cut here---start->8--- >> (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 >> ) >> ) >> ) >>) >> --8<---cut here---end--->8--- >> > > Ok, that worked for me. Many thanks. > > I'm still stuck on getting my "expired" mail to move to [Gmail]/Bin > > (setq gnus-secondary-select-methods > '((nnimap "work" > (nnimap-inbox "INBOX") > > (nnmail-expiry-target "nnimap+work:[Gmail]/Bin") > > (nnmail-expiry-wait immediate) > ) >) > ) > > I've tried changing "nnmail-expiry-target" to "nnimap-expiry-target"; > I've tried changing "/Bin" to "/Trash" (but it should be former for my > account); I've tried changing "/Bin" to ".Bin", all the various > permutations of these. > > As well, I tried various ways of setting up > ```nnmail-fancy-expiry-target```. But I couldn't get any of these to > work. Even with ```nnmail-expiry-wait immediate``` set. The messages are > removed from the INBOX, and marked read, but are not moved to > [Gmail]Bin(~Trash). `nnmail-expiry-targets' isn't a server variable, just a regular variable. Also, there's no `nnimap-expiry-targets', and `nnmail-fancy-expiry-targets' only lets you base expiration on group names, not backends. Here's what I do (outside of the server definition): (setq nnmail-expiry-target 'my-expire-gmail-imap-message) (defun my-expire-gmail-imap-message (group) "In gmail-based imap groups, expiry should happen by moving the message to the corresponding [Gmail]/Trash folder." (if (string-match "nnimap\\+\\(several\\|gmail\\|backends\\):" group) (format "nnimap+%s:[Gmail]/Trash" (match-string 1 group)) 'delete)) That expires everything in a Gmail imap account to the corresponding [Gmail]/Trash folder. Hope that helps, Eric ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: multi-email gnus setup questions
n...@kloecker.org (Jens Klöcker) writes: > I have one. It's looking like this: > > --8<---cut here---start->8--- > (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 > ) > ) > ) >) > --8<---cut here---end--->8--- > Ok, that worked for me. Many thanks. I'm still stuck on getting my "expired" mail to move to [Gmail]/Bin (setq gnus-secondary-select-methods '((nnimap "work" (nnimap-inbox "INBOX") (nnmail-expiry-target "nnimap+work:[Gmail]/Bin") (nnmail-expiry-wait immediate) ) ) ) I've tried changing "nnmail-expiry-target" to "nnimap-expiry-target"; I've tried changing "/Bin" to "/Trash" (but it should be former for my account); I've tried changing "/Bin" to ".Bin", all the various permutations of these. As well, I tried various ways of setting up ```nnmail-fancy-expiry-target```. But I couldn't get any of these to work. Even with ```nnmail-expiry-wait immediate``` set. The messages are removed from the INBOX, and marked read, but are not moved to [Gmail]Bin(~Trash). ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: multi-email gnus setup questions
n...@kloecker.org (Jens Klöcker) writes: > Hi Benjamin, > > Am 22.12.2015 um 22:15 Uhr schrieb Benjamin Slade: > >> Eric Abrahamsen 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 ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: Passphrase caching for GnuPG in Emacs?
On Tue, Dec 22 2015, Greg Bell wrote: > Note to everybody trying to get this to work - I noticed that passphrases > entered into pinentry-curses (0.8.3) don't get cached by gpg-agent for some > reason. Using pinentry-gtk or pinentry-curses, they do. Weird, I know. There is also this nice tool: /usr/lib64/gpg-preset-passphrase -- Peter ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: multi-email gnus setup questions
Hi Benjamin, Am 22.12.2015 um 22:15 Uhr schrieb Benjamin Slade: > Eric Abrahamsen 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: --8<---cut here---start->8--- (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 ) ) ) ) --8<---cut here---end--->8--- The fancy split rules split into IMAP folders on the current server. >>> (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. -- Jens Klöcker · Public key: http://www.kloecker.org/jens/public-key.txt Mastery of UNIX, like mastery of language, offers real freedom. (Thomas Scoville) signature.asc Description: PGP signature ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english
Re: multi-email gnus setup questions
Eric Abrahamsen 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? >> (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. -- ( Dr Benjamin Slade . b.sl...@utah.edu . http://www.jnanam.net/slade ) ( Linguistics . University of Utah ) (pgp_fingerprint: (21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19)) '(sent by Gnus on Emacs running under GNU/Linux) ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english