Re: Secondary-select-method-specific gnus-message-archive-group

2024-01-13 Thread Loris Bennett
Hi Dmitry,

Dmitry Alexandrov <321...@gmail.com> writes:

>> I have tried to set up different values for
>>
>>   gnus-message-archive-group
>>
>> for different secondary select methods like this:
>>
>>  (nnimap "gmx"
>>  (nnimap-stream tls)
>>  (gnus-message-archive-group "nnimap+gmx:Gesendet")
>>  (nnimap-address "imap.gmx.com"))
>>  (nnimap "gmail"
>>  (nnimap-stream ssl)
>>  (nnimap-server-port 993)
>>  (remove-prefix nnimap)
>>  (gnus-message-archive-group "nnimap+gmail:Sent Mail")
>>  (nnimap-address "imap.gmail.com"))
>>
>> I do get different values for gnus-message-archive-group (I actually have a
>> few more select methods), but I don't always get the one I am expecting.
>>
>> Can anyone tell me how the values are triggered?
>
> I am not sure, whether message archive groups do have anything to do
> with select methods.  Select methods are about receiving mail, while
> archive group is chosen when you start to compose a message.
>
> I’m using the following piece of config to place a letter in a current
> group (in particular that means to the same group where the message
> I’m replying is stored) or in ‘INBOX’ by default:
>
> (setq gnus-message-archive-group
>   '((cond
>  ((string-prefix-p "nnimap+" group) group)
>  (t "nnimap+g:INBOX"
>
>
> (By the way, why don’t you do the same?  What is the point to separate
> sent letters from received ones?)
>
> Anyway, what you probably want to do may look like that, I guess:
>
> (setq gnus-message-archive-group
>   '((cond
>  ((string-prefix-p "nnimap+gmx:" group) "nnimap+gmx:Gesendet")
>  ((string-prefix-p "nnimap+gmail:" group) "nnimap+gmail:Sent Mail")
>  (t "nnimap+gmail:Sent Mail"

This worked for me for the last 7 years, so rather belated thanks for
that.

However, after updating to Emacs 29.1, I started getting an error
message about 'group' being undefined.

I solved the problem by not trying to set 'gnus-message-archive-group'
at all and instead now set "Gcc" via 'gnus-alias', which I was already
using:

(setq gnus-alias-identity-alist
  '(("gmail"
 ""
 "\"Loris Bennett\" "
 "Berlin"
 (("Reply-To" . "loris.benn...@gmail.com")
  ("Gcc" . "nnimap+gmail:Sent Mail")
  ("X-Message-SMTP-Method" . "smtp smtp.gmail.com 587"))
 ""
 lb/gmail-sig)
 ...
 ))

I am not sure whether it is related to the Emacs update, but I also
found that I could no longer send email from one account via the SMTP
server of another account.  Therefore I added the
"X-Message-SMTP-Method" to the list of extra headers, which solved the
issue.

Maybe someone else might find the above useful.

Cheers,

Loris

-- 
This signature is currently under contruction.




gnus-icalendar - edit reply?

2018-07-04 Thread Loris Bennett
Hi,

I have gnus-icalendar set up with Org integration and everything works
fine.  However, sometimes I would like to edit the reply when I, say,
decline an invitation and want to give a reason.

Does anyone know whether this is possible?

I have a vague recollection of having done it in the past, but maybe I
am just getting confused with the actual Exchange interface, which
fortunately I hardly have to use anymore, but which does offer this
option.

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gnus-topic-update-topic-line: Wrong type argument: number-or-marker-p, nil

2018-03-10 Thread Loris Bennett
Emanuel Berg <moa...@zoho.com> writes:

> Loris Bennett wrote:
>
>> Here the backtrace when I start Gnus and then
>> try to toggle topics [...]
>>
>> My assumption is that something happened to
>> .newsrc and/or .newsrc.eld and that has
>> occurred. Is there someway to discard all the
>> topic information and start afresh?
>
> Well, which one do you use?

Well I have both.  In .newsrc there are just the following two lines:  

  gnu.emacs.gnus: 1-89003
  gnu.emacs.help: 1-228165

In .newsrc.eld there is

  (setq gnus-topic-alist ...)

so maybe I could just bin that.

> In .newsrc.eld it says
>
> ;; Never delete this file -- if you want to force Gnus to read the
> ;; .newsrc file (if you have one), touch .newsrc instead.
>
> But that's almost never a good idea. If you
> solve the problem by deleting files that have
> been populated automatically, what will happen
> is what once produced the bug will just do
> so again!
>
> Rather, what hits do you get when you search
> all your Emacs init files for "topic"?

My init.el just contains 

  (add-hook 'gnus-group-mode-hook 'gnus-topic-mode)

as it has for many a moon.

I have fiddled around a bit I can now get topics to show without the
'wrong type argument' error.  However, the topics are behaving
strangely.  If I try to unindent the topic 'FU that is displayed as
indented, i.e. as a subtopic, I get the error

  Nothing to indent Drafts into

where 'Drafts' is the topic under which 'FU' currently and incorrectly
appears (the amount of indentation makes 'FU' actually look like a
subsubtopic of 'Drafts').

Other topics exist, but I can only see them if I explicitly do a 
'jump to topic'.  If I then fold the parent topics and then try to
unfold them, I get a 'no group on current line' at some point.

So basically the whole hierarchical structure of the topics seems
borked, so I would really like to throw it away and start anew, as I
only have around a dozen topic.

Cheers,

Loris

-- 
This signature is currently under construction.


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


Re: gnus-topic-update-topic-line: Wrong type argument: number-or-marker-p, nil

2018-03-10 Thread Loris Bennett
Emanuel Berg <moa...@zoho.com> writes:

> Loris Bennett wrote:
>
>> Does any one know what could be causing this
>> error:
>>
>>   gnus-topic-update-topic-line: Wrong type
>> argument: number-or-marker-p,
>>   nil
>
> I don't have that as a function but it means it
> expects an argument that is accepted by the
> `number-or-marker-p' test, and now what it gets
> is nil which doesn't pass.
>
> This most often doesn't happen because some
> complete lamer is sending it nil and expect it
> to work, but rather some symbol is passed that
> most often makes sense, only right now it isn't
> set, or set incorrectly/unexpectedly to nil.

Here the backtrace when I start Gnus and then try to toggle topics

Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
  insert(nil)
  (progn (insert name) (point))
  (gnus-add-text-properties (point) (progn (insert name) (point)) (cons (quote 
face) (cons (list (quote bold) (quote default)) (quote (gnus-face t)
  (progn (gnus-add-text-properties (point) (progn (insert name) (point)) (cons 
(quote face) (cons (list (quote bold) (quote default)) (quote (gnus-face t) 
(point))
  (gnus-put-text-property (point) (progn (gnus-add-text-properties (point) 
(progn (insert name) (point)) (cons (quote face) (cons (list (quote bold) 
(quote default)) (quote (gnus-face t) (point)) gnus-mouse-face-prop 
gnus-mouse-face)
  (progn (insert indentation "[ ") (gnus-put-text-property (point) (progn 
(gnus-add-text-properties (point) (progn (insert name) (point)) (cons (quote 
face) (cons (list (quote bold) (quote default)) (quote (gnus-face t) 
(point)) gnus-mouse-face-prop gnus-mouse-face) (insert (format " -- %d ]%s\n" 
total-number-of-articles visible)))
  eval((progn (insert indentation "[ ") (gnus-put-text-property (point) (progn 
(gnus-add-text-properties (point) (progn (insert name) (point)) (cons (quote 
face) (cons (list (quote bold) (quote default)) (quote (gnus-face t) 
(point)) gnus-mouse-face-prop gnus-mouse-face) (insert (format " -- %d ]%s\n" 
total-number-of-articles visible
  gnus-topic-insert-topic-line(nil t t 1 nil 0)
  gnus-topic-prepare-topic(((nil visible)) 1 5 nil nil 1 nil)
  gnus-topic-prepare-topic((("Gnus" visible nil nil) (("Drafts" visible nil 
nil)) (("FU" visible nil nil) (("Exchange" invisible nil nil) (("General" 
invisible nil nil) (("Unix" invisible nil nil))) (("Work" invisible nil nil) 
(("Old org structure" invisible nil nil)) (("Archive" invisible nil nil))) 
(("Private" invisible nil nil))) (("Gmail" invisible nil nil)) (("GMX" 
invisible nil nil))) (("Newsgroups" visible nil nil) (("Emacs" visible nil 
nil)) (("HPC" visible nil nil))) (("Mail" invisible nil nil)) ((nil visible))) 
0 5 nil nil 1 nil)
  gnus-group-prepare-topics(5 nil nil)
  gnus-group-list-groups(nil)
  #[nil "\204 \204\306 \207\307\310!\210\311\n!\f\204
  gnus-1(nil nil nil)
  gnus(nil)
  funcall-interactively(gnus nil)
  call-interactively(gnus record nil)
  command-execute(gnus record)
  execute-extended-command(nil "gnus" "gnus")
  funcall-interactively(execute-extended-command nil "gnus" "gnus")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)
  recursive-edit()
  debug()
  funcall-interactively(debug)
  call-interactively(debug record nil)
  command-execute(debug record)
  execute-extended-command(nil "debug" "debu")
  funcall-interactively(execute-extended-command nil "debug" "debu")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

My assumption is that something happened to .newsrc and/or .newsrc.eld
and that has occurred.   Is there someway to discard all the topic
information and start afresh?

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


gnus-topic-update-topic-line: Wrong type argument: number-or-marker-p, nil

2018-03-09 Thread Loris Bennett
Hi,

Does any one know what could be causing this error:

  gnus-topic-update-topic-line: Wrong type argument: number-or-marker-p,
  nil

Is there some way of resetting the topics?

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox"

2018-02-19 Thread Loris Bennett
"Loris Bennett" <loris.benn...@fu-berlin.de> writes:

> Bob Newell <bobnew...@bobnewell.net> writes:
>
>> Like this:
>>
>> (setq group-name-map
>>'(("nnimap+imap.gmail.com:INBOX" . "Inbox")
>> ("nnimap+imap.gmail.com:[Gmail]/All Mail" . "All Mail")
>>  etc.
>>  ))
>
> This had no effect for me.  However, here
>
>   https://www.emacswiki.org/emacs/GnusFormatting
>
> it implies that you have to define
>
>   gnus-user-format-function-g
>
> and then use 'ug%' rather than '%g' in 'gnus-group-line-format'.

Fiddling around with this I managed to totally bork the display in the
Groups buffer, such that basically nothing was shown and the following
error was produced:

  progn: Wrong type argument: char-or-string-p

Just reverting the changes in init.el was not enough and I had to roll
back to the versions of .newsrc and .newsrc.eld from this morning
(Thanks, Git!).

Cheers,

Loris

-- 
This signature is currently under construction.


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


Re: how to make Group not show "nnimap+$server:INBOX.$mailbox", just $mailbox"

2018-02-19 Thread Loris Bennett
Bob Newell <bobnew...@bobnewell.net> writes:

> Like this:
>
> (setq group-name-map
>'(("nnimap+imap.gmail.com:INBOX" . "Inbox")
> ("nnimap+imap.gmail.com:[Gmail]/All Mail" . "All Mail")
>  etc.
>  ))

This had no effect for me.  However, here

  https://www.emacswiki.org/emacs/GnusFormatting

it implies that you have to define

  gnus-user-format-function-g

and then use 'ug%' rather than '%g' in 'gnus-group-line-format'.

Cheers,

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


[gnus-alias-identity-alist] Concat to existing CC

2017-10-24 Thread Loris Bennett
Hi,

I use gnus-alias-identity-alist to enable some messages I send to be
CCed to a particular address using something like:

  ("Cc" . "m...@other.address.org")

However, when I am replying to an email and apply the alias, this
clobbers any existing CC.

Is there a way to append an address to any existing ones?

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Show size of a mail/posting?

2017-06-29 Thread Loris Bennett
Teemu Likonen <tliko...@iki.fi> writes:

> Loris Bennett [2017-06-26 08:07:23+02] wrote:
>
>> What's the easiest way to display the total size, i.e. including
>> attachments, of a mail or posting?
>
> In summary buffer the raw message content can be piped to external
> command with "|" key. So "| wc" counts lines and bytes. The raw message
> content can be displayed with "C-u g". Then on that buffer "M-x
> count-words" count lines, words and characters.
>
> With custom Emacs Lisp code these function are likely useful:
>
> (gnus-summary-show-raw-article)
> (get-buffer gnus-article-buffer)

Piping to 'wc' seems be what nearly what I need.

However, if I display the raw message and do 'wc -c' I get a smaller
value than if I don't display the raw message, move the cursor to the
attachment, display it inline and then do 'wc -c'.  In this latter case
I get the real size of the attachment as given if I save it separately.

Is this the expected behaviour?

Cheers,

Loris

-- 
This signature is currently under construction.


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


Show size of a mail/posting?

2017-06-26 Thread Loris Bennett
Hi,

What's the easiest way to display the total size, i.e. including
attachments, of a mail or posting?

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


IMAP folder as nndraft-directory?

2017-02-24 Thread Loris Bennett
Hi,

Can ndraft-directory be an IMAP folder?  I've tried the following:

 '(gnus-secondary-select-methods
   (quote
((nnimap "foomail"
 (nnimap-stream tls)
 (nnir-search-engine imap)
 (remove-prefix "nnimap")
 (nnimap-address "foomail.org")
 (nnimap-inbox INBOX)
 (nndraft-directory "Drafts"))
 ...

But I still get the drafts saved to a local directory.

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Reading www.mail-archive.com?

2016-12-22 Thread Loris Bennett
Hi Michael,

Michael Albinus <michael.albi...@gmx.de> writes:

> "Loris Bennett" <loris.benn...@fu-berlin.de> writes:
>
>> Hi,
>
> Hi Loris,
>
>> As efforts to rebuild gmane don't seem to be progressing very fast,
>
> I'm still reading many mailing lists via gmane. The HTML front end has
> disappeared, but NNTP access is still possible. In gnus, I have setup
> the server with method nntp, server name news.gmane.org.

I am also still reading some lists via NNTP access gmane.  However, one
in particular, "r-h...@r-project.org" seems to have disappeared.  

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Reading www.mail-archive.com?

2016-12-21 Thread Loris Bennett
Hi,

As efforts to rebuild gmane don't seem to be progressing very fast, I
was wondering whether one can read www.mail-archive.com via gnus.  In
some old versions of the manual there is a reference to doing this via
the 'nnwarchive' backend.  However my GNUS V5.12 doesn't have
this and  none of the other backends seemed to work.

Is this possible and, if so, how?

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Archiving entire nnmail group to a single file?

2016-12-15 Thread Loris Bennett
"Loris Bennett" <loris.benn...@fu-berlin.de> writes:

> Hi,
>
> Is there a way of archiving an entire nnmail group to a single file?  I
> have several groups, each corresponding to a year of mail, which I would
> like to archive.  All the information I found relates to archiving
> individual messages.
>
> Cheers,
>
> Loris

I didn't get any replies to this, so I'll rephrase the question:

  If I have an email account which I am accessing via IMAP, what
  approaches could I take using Gnus to archiving some of the mail
  folders to disk?

Cheers,

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: instaling gnu news server

2016-12-02 Thread Loris Bennett
Hi Matthew,

Matthew Pritchard  writes:

> I am trying to set up gnus with a paid nntp server. It needs password
> and username. Can anyone help me?

Doesn't Gnus just prompt you when it tries to connect? 

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Archiving entire nnmail group to a single file?

2016-12-01 Thread Loris Bennett
Hi,

Is there a way of archiving an entire nnmail group to a single file?  I
have several groups, each corresponding to a year of mail, which I would
like to archive.  All the information I found relates to archiving
individual messages.

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Secondary-select-method-specific gnus-message-archive-group

2016-10-14 Thread Loris Bennett
Hi,

I have tried to set up different values for

  gnus-message-archive-group

for different secondary select methods like this:

 (nnimap "gmx"
 (nnimap-stream tls)
 (gnus-message-archive-group "nnimap+gmx:Gesendet")
 (nnimap-address "imap.gmx.com"))
 (nnimap "gmail"
 (nnimap-stream ssl)
 (nnimap-server-port 993)
 (remove-prefix nnimap)
 (gnus-message-archive-group "nnimap+gmail:Sent Mail")
 (nnimap-address "imap.gmail.com"))

I do get different values for gnus-message-archive-group (I actually have a
few more select methods), but I don't always get the one I am expecting.

Can anyone tell me how the values are triggered?

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gnus-notifications: Wrong type argument: stringp

2016-10-12 Thread Loris Bennett
"Loris Bennett" <loris.benn...@fu-berlin.de> writes:

> Hi,
>
> All of a sudden, i.e. yesterday I did not have the problem, I get the
> following error when I check for new news:
>
> gnus-notifications: Wrong type argument: stringp, 
> ("loris\\.bennett@fu-berlin\\.de" "HPC-Service\\|hpc@zedat\\.fu-berlin\\.de")
>
> In my .emacs I have:
>
> ,---
> | ...
> | '(gnus-icalendar-org-capture-file "~/git/org.git/gtd.org")
> | '(gnus-icalendar-org-capture-headline (quote ("Exchange")))
> | '(gnus-ignored-from-addresses
> |   (quote
> |("loris\\.bennett@fu-berlin\\.de" 
> "HPC-Service\\|hpc@zedat\\.fu-berlin\\.de")))
> | ...
> `---

The error goes prevents new news (and mail) from being picked up.
Commenting out the gnus-ignored-from-addresses setting makes the problem
go away.

> I haven't changed gnus-ignored-from-addresses in months if not years.
> The only change I made recently was uncommenting the following lines in
> my .emacs two days ago:
>
> ,---
> | (require 'gnus-icalendar)
> | (gnus-icalendar-setup)
> | (gnus-icalendar-org-setup)
> `---
>
> Could the gnus icalendar settings be somehow causing the problem?
>
> Cheers,
>
> Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


gnus-notifications: Wrong type argument: stringp

2016-10-12 Thread Loris Bennett
Hi,

All of a sudden, i.e. yesterday I did not have the problem, I get the
following error when I check for new news:

gnus-notifications: Wrong type argument: stringp, 
("loris\\.bennett@fu-berlin\\.de" "HPC-Service\\|hpc@zedat\\.fu-berlin\\.de")

In my .emacs I have:

,---
| ...
| '(gnus-icalendar-org-capture-file "~/git/org.git/gtd.org")
| '(gnus-icalendar-org-capture-headline (quote ("Exchange")))
| '(gnus-ignored-from-addresses
|   (quote
|("loris\\.bennett@fu-berlin\\.de" 
"HPC-Service\\|hpc@zedat\\.fu-berlin\\.de")))
| ...
`---

I haven't changed gnus-ignored-from-addresses in months if not years.
The only change I made recently was uncommenting the following lines in
my .emacs two days ago:

,---
| (require 'gnus-icalendar)
| (gnus-icalendar-setup)
| (gnus-icalendar-org-setup)
`---

Could the gnus icalendar settings be somehow causing the problem?

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Dynamically switching gnus-message-archive-group?

2016-09-27 Thread Loris Bennett
Arkady Grudzinsky <agrudzin...@gmail.com> writes:

> On Fri, Sep 23 2016, Loris Bennett wrote:
>
>> Hi,
>>
>> If I have two IMAP accounts, each on a different server, is there a way
>> to switch
>>
>>   gnus-message-archive-group
>>
>> such that it depends on, say, the 'from'-address of the current
>> gnus-posting-style?
>
> Whatever you specify under your imap account pertains to that
> account only:
>
> (setq gnus-secondary-select-methods
>   '(
> (nnimap "imap1"
> (nnimap-address "imaps.server1.com")
> ...
> (gnus-message-archive-group "Archive")
> ...
> )
> (nnimap "imap2"
> (nnimap-address "imaps.server2.com")
> ...
> (gnus-message-archive-group "Archive")
> )
>
> In this example, mail sent from the first account will go to
> nnimap+imap1:Archive and mail sent from the second account will
> go to nnimap+imap2:Archive.  This worked for me when I used Gnus
> with two remote imap servers.
>
> Gcc also controls where your sent mail is saved.  This can be
> sent per group or globally in your .gnus
>
> https://www.emacswiki.org/emacs/SentMail
>
> gcc-self can be of interest.

Thanks for the information.  I have gone for the solution using
gnus-message-archive-group, which works well for me.

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Dynamically switching gnus-message-archive-group?

2016-09-23 Thread Loris Bennett
Hi,

If I have two IMAP accounts, each on a different server, is there a way
to switch

  gnus-message-archive-group

such that it depends on, say, the 'from'-address of the current
gnus-posting-style?

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: *unsent* buffer remains, even though mail is sent

2016-09-23 Thread Loris Bennett
"Loris Bennett" <loris.benn...@fu-berlin.de> writes:

> Hi,
>
> I have a working setup with two accounts on one server.  However, when I
> send a mail/posting, I get the error
>
>   gnus-get-function: Attempted use of a nil select method
>
> The mail/posting is sent successfully, but the buffer, such as
>
>   *unsent posting on gnu.emacs.gnus*
>
> is not deleted.
>
> Any ideas?
>
> Cheers,
>
> Loris

I solved this.  The variable

  gnus-message-archive-group

was still pointing at a folder which no longer existed after I had
changed the names of the seconday select methods.  

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: IMAP - two accounts on one server

2016-09-22 Thread Loris Bennett
Ted Zlatanov <t...@lifelogs.com> writes:

> On Thu, 22 Sep 2016 11:39:06 +0200 "Loris Bennett" 
> <loris.benn...@fu-berlin.de> wrote: 
>
> ...
> LB> I have now discovered that this in fact works, but only if I don't save
> LB> the credentials in .authinfo.  If I enter both sets of credentials every
> LB> time, Gnus shows me folders from both accounts.
> ...
> LB> So to me it looks like there is a problem when .authinfo is read, but
> LB> obviously some people have this kind of setup working with two Gmail
> LB> accounts.  So I'm stumped.
>
> Set `auth-source-debug' to 'trivia and show the relevant lines from the
> *Messages* buffer when you get the bad behavior.

Thanks for this advice.  However "unfortunately" the problem has
disappeared after restarting emacs a few times.  Nevertheless it will be
handy for the next problem, but I'll start a new thread for that.

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


*unsent* buffer remains, even though mail is sent

2016-09-22 Thread Loris Bennett
Hi,

I have a working setup with two accounts on one server.  However, when I
send a mail/posting, I get the error

  gnus-get-function: Attempted use of a nil select method

The mail/posting is sent successfully, but the buffer, such as

  *unsent posting on gnu.emacs.gnus*

is not deleted.

Any ideas?

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: IMAP - two accounts on one server

2016-09-22 Thread Loris Bennett
a...@koldfront.dk (Adam Sjøgren) writes:

> Loris writes:
>
>> I still have the problem that I can only access one of the accounts.
>> The same set of folders appear twice, once each for the secondary
>> select method entries "one" and "two".
>
> Show your configuration.
>
> Otherwise we can be guessing forever.
>

OK:

 '(gnus-secondary-select-methods
   (quote
((nnimap "mail.zedat.fu-berlin.de"
 (nnimap-stream tls)
 (nnir-search-engine imap)
 (remove-prefix "nnimap")
 (nnimap-address "mail.zedat.fu-berlin.de"))
 (nnimap "fu_exchange"
 (nnimap-stream tls)
 (nnir-search-engine imap)
 (remove-prefix "nnimap")
 (nnimap-address "mail.zedat.fu-berlin.de"))
 (nntp "news.fu-berlin.de"
   (remove-prefix nntp)

I have now discovered that this in fact works, but only if I don't save
the credentials in .authinfo.  If I enter both sets of credentials every
time, Gnus shows me folders from both accounts.

If I do allow Gnus to add an entry for "mail.zedat.fu-berlin.de", then I
don't get asked about the credentials for the entry "fu_exchange", Gnus
shows me the folders from the "mail.zedat.fu-berlin.de" account but not
those for "fu_exchange".  I also can't subscribe to any folders from
"fu_exchange".

So to me it looks like there is a problem when .authinfo is read, but
obviously some people have this kind of setup working with two Gmail
accounts.  So I'm stumped.

Cheers,

Loris


-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: IMAP - two accounts on one server

2016-09-22 Thread Loris Bennett
a...@koldfront.dk (Adam Sjøgren) writes:

> Ted writes:
>
>> On Wed, 21 Sep 2016 10:17:25 +0200 a...@koldfront.dk (Adam Sjøgren) wrote: 
>
>> AS> So you could have something like:
>> ...
>
>> :) This is basically what I wrote in
>> (info "(auth) Multiple GMail accounts with Gnus")
>
> I can't find that info-page in my Emacs. Maybe it is too old? (GNU Emacs
> 24.5.1)

I'm on 24.4.1, where the page probably exists even less.  However, even
if it did exist, wouldn't it be better to call it "Multiple accounts on
the same server with Gnus" if it doesn't just apply to Gmail? 

>> Do you think that page should be expanded? Or maybe linked from the Gnus
>> docs? It seems to keep tripping people up.
>
> Who reads the documentation?
>
> I think the only way to avoid these questions is to change every example
> and every tutorial to _not_ use the hostname of the mail server as the
> name of the server in Gnus.
>
> I don't think it is realistic to do that. Anyway, we need something to
> talk about here as well :-)

Yeah, that ole internet thing sure does need fixin'.

But before I do that, I still have the problem that I can only access
one of the accounts.  The same set of folders appear twice, once
each for the secondary select method entries "one" and "two".

I can get the folders of either account, but Which folders I get seems
to depend on the order of the entries in the .authfile.  So it look as
if, once the connection to the server is made, the connection for the
second account is skipped, because Gnus has already seen the server.  Is
that a possible explanation?

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: IMAP - two accounts on one server

2016-09-21 Thread Loris Bennett
Eric Abrahamsen <e...@ericabrahamsen.net> writes:

> "Loris Bennett" <loris.benn...@fu-berlin.de> writes:
>
>> Hi,
>>
>> Many years ago I set Gnus up to read mail from a server via IMAP and
>> every thing has been working fine.  I now want to add a second account
>> on the same server[1].
>>
>> I have added a corresponding line to .authinfo, but there doesn't seem
>> to be a variable I could add to the select method to indicate which
>> account should be used.
>>
>> Currently I just don't see any extra folders from the second account and
>> they do not appear when I try to subscribe to additional folder.
>>
>> Any ideas?
>>
>> Cheers,
>>
>> Loris
>>
>> Footnotes: 
>> [1]  To be honest, the accounts are not on the same server.  However,
>> the server address is the same in both cases.  Behind the scenes some
>> jiggery-pokery goes on to forward mail to a second server in the case of
>> the second account.  
>
> You didn't mention adding the second server to
> `gnus-secondary-select-methods' -- that's the key step. Have you done
> that? Gnus won't know about the server until you put it there, and once
> it does know, it can handle the ~/.authinfo step by itself.

Sorry, I wasn't explicit enough.  I did realise that I needed another
entry in 'gnus-secondary-select-methods', but I just couldn't see how to
differentiate if from the existing one, given that I was using the
server address as the name of the entry, and this is the same for both
accounts.  Thus, Adam pointing out that the "Address" for the select
method can be any string, not just the server address, was very helpful.

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


IMAP - two accounts on one server

2016-09-21 Thread Loris Bennett
Hi,

Many years ago I set Gnus up to read mail from a server via IMAP and
every thing has been working fine.  I now want to add a second account
on the same server[1].

I have added a corresponding line to .authinfo, but there doesn't seem
to be a variable I could add to the select method to indicate which
account should be used.

Currently I just don't see any extra folders from the second account and
they do not appear when I try to subscribe to additional folder.

Any ideas?

Cheers,

Loris

Footnotes: 
[1]  To be honest, the accounts are not on the same server.  However,
the server address is the same in both cases.  Behind the scenes some
jiggery-pokery goes on to forward mail to a second server in the case of
the second account.  

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Trigger spell checking before sending [flyspell?]

2016-02-12 Thread Loris Bennett
Emanuel Berg  writes:

> "Andrzej A. Filip"  writes:
>
>> Do you use flyspell? It may deliver what you want in
>> another way.
>
> Ispell is better. Write, then spell, then send. Do it
> all at once you loose your mindfulness and the result
> will suffer.

We didn't have mindfulness (or spell-checking, for that matter) when I
was growing up.  Historians of the future will tell us (or themselves)
whether the results suffered.

> Flyspell sounds good but in practice too
> many words that should be there aren't, which means
> correct words will pop up as incorrect or unknown all
> the time while typing.

To avoid this, add the words to your personal dictionary (don't you have
to do with ispell too?).

> This is when the brain should not focus on spelling but on conveying a
> message from one person to another. The fingers should do the spelling
> and in time they will. For the occasional mistake spellcheck just
> before send is a much better idea.

When I'm writing English, my first language, flyspell tends to pickup
typos rather than real spelling mistakes.  In German, my second
language, I'm more likely to misspell a word (although German spelling
is easier, even if they do change it every few years ...)

It would be interesting to know whether there is any empirical evidence
as to whether being corrected as you go à la flyspell as opposed to
doing a final spell-check ispell-style has any effect on the quality of
one's spelling over time.

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gnus-calendar / gnus-icalendar in Emacs24?

2014-12-17 Thread Loris Bennett
Rasmus ras...@gmx.us writes:

 Loris Bennett loris.benn...@fu-berlin.de writes:

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

 I use gnus-icalendar at work to avoid having to use Outlook, and I use
 the iCalendar format at home to get calendars from my computers to show
 up on an Android phone. No Apple involved.

 What Android app are you using for that?  I've tried aCal and DAVdroid
 to connect to a local owncloud instance, but to no avail.

 For what it's worth: I use DAVdroid to sync my phone with owncloud (I can
 then use the normal calendar).  I use org-caldav to sync between owncloud
 and my org-agenda.

 —Rasmus

Thanks for the info.  I'll have another go with DAVdroid.

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: gnus-calendar / gnus-icalendar in Emacs24?

2014-12-16 Thread Loris Bennett
a...@koldfront.dk (Adam Sjøgren) writes:

 I use gnus-icalendar at work to avoid having to use Outlook, and I use
 the iCalendar format at home to get calendars from my computers to show
 up on an Android phone. No Apple involved.

What Android app are you using for that?  I've tried aCal and DAVdroid
to connect to a local owncloud instance, but to no avail.

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


gnus-calendar / gnus-icalendar in Emacs24?

2014-12-15 Thread Loris Bennett
Hi,

Does anyone know the status of gnus-calendar / gnus-icalendar?  Here

https://github.com/jtatarik/ical-event/blob/master/README.md

it is claimed that the code has been integrated into Emacs24.  However
I can't find it in my GNU Emacs 24.3.1 / Gnus v5.13.

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Replying to one's own reply

2014-11-21 Thread Loris Bennett
Alberto Luaces alua...@udc.es writes:

 Loris Bennett writes:

 Hi,

 If someone sends me an email message, I reply and then want to reply
 again with further information, what gnus function should I use?

 If I do resend edit or mail forward, I don't get the original
 message quoted.

 Currently I simply reply and have to remember to change the to-address
 from my own to that of the other person.

 Is there a better way?

 This works for me:

 S W runs the command gnus-summary-wide-reply-with-original.

This does what I want with regard to the quoting, but the to and cc
fields still need to be swapped.

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Abbrev expansion after @ in address field?

2014-03-04 Thread Loris Bennett
Loris Bennett loris.benn...@fu-berlin.de writes:

 K.P. Huang kphuan...@gmail.com writes:

 2014-02-21 22:17 GMT+08:00 Loris Bennett loris.benn...@fu-berlin.de:

 Hi,

 I would like, say, meo to expand to my.email.org after @.

 So for any arbitrary user

   user@meo

 would expand to

   u...@my.email.org

 Is this possible?

 That's possible by M-'  abbrev-prefix-mark

 Type user@  then M-' , it will become user@-,  type meo follow by, it will
 expand in the way you want.

 It has been clearly stated in the documentation (info (emacs) abbrevs),
  at menu Controlling Abbrev Expansion. HTH.

 Thanks for the pointer to the documentation.

 This works expect for expansion in the address fields in Gnus (which is
 where I would like expansion following @ to work).  In this case
 expansion just doesn't happen, with or without a prefix.

 Maybe someone on the in the Gnus newsgroup can enlighten me.  I assume
 it is some sort of conflict with the regular Gnus magic which expands
 addresses out the BBDB.

If abbreviations in address fields don't play nicely with BBDB
expansion, does anyone know whether it is possible to have generic
addresses in BBDB?  What I means is that if a string, say alice
doesn't match a known address, then on pressing the tab-key it could be
optionally expanded to al...@default.email.org.  Does BBDB support
anything like that?

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: Abbrev expansion after @?

2014-02-24 Thread Loris Bennett
K.P. Huang kphuan...@gmail.com writes:

 2014-02-21 22:17 GMT+08:00 Loris Bennett loris.benn...@fu-berlin.de:

 Hi,

 I would like, say, meo to expand to my.email.org after @.

 So for any arbitrary user

   user@meo

 would expand to

   u...@my.email.org

 Is this possible?

 That's possible by M-'  abbrev-prefix-mark

 Type user@  then M-' , it will become user@-,  type meo follow by, it will
 expand in the way you want.

 It has been clearly stated in the documentation (info (emacs) abbrevs),
  at menu Controlling Abbrev Expansion. HTH.

Thanks for the pointer to the documentation.

This works expect for expansion in the address fields in Gnus (which is
where I would like expansion following @ to work).  In this case
expansion just doesn't happen, with or without a prefix.

Maybe someone on the in the Gnus newsgroup can enlighten me.  I assume
it is some sort of conflict with the regular Gnus magic which expands
addresses out the BBDB.

Cheers,

Loris

-- 
This signature is currently under construction.
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Important messages not shown

2012-10-15 Thread Loris Bennett
Hi,

Possibly following an update to Emacs 24.2.50.1, messages flagged as
important are no longer automatically shown in my inbox.  To see them, I
have to enter some large number for number of messages to be shown.  I
then see the flagged messages as well as all other old messages.  The
summary buffer shows the inbox as containing flagged messages.  Other
mail folders and news groups do not seem to have the problem.

Is this a known problem?

Loris

-- 
no sig is good sig



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


Show group for article found via search?

2012-09-25 Thread Loris Bennett
Hi,

My IMAP mail is currently organised as quite a few nested folders, which
I group together using topics:

[mail]
  [general]
nnimap+mail.my.provider.com:INBOX 
nnimap+mail.my.provider.com:sent 
  [work]
nnimap+mail.my.provider.com:this 
nnimap+mail.my.provider.com:that 
nnimap+mail.my.provider.com:theother 
  [private]  
nnimap+mail.my.provider.com:friends 
nnimap+mail.my.provider.com:family  
[news]
  ...

If I use G G on a topic to search for a message and get several results,
is there a way to find out which folder each message found is in?

Cheers

Loris
-- 
no sig is good sig



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


Re: Show group for article found via search?

2012-09-25 Thread Loris Bennett
Tassilo Horn t...@gnu.org writes:

 Loris Bennett loris.benn...@fu-berlin.de writes:

 [mail]
   [general]
 nnimap+mail.my.provider.com:INBOX 
 nnimap+mail.my.provider.com:sent 
   [work]
 nnimap+mail.my.provider.com:this 
 nnimap+mail.my.provider.com:that 
 nnimap+mail.my.provider.com:theother 
   [private]  
 nnimap+mail.my.provider.com:friends 
 nnimap+mail.my.provider.com:family  
 [news]
   ...

 If I use G G on a topic to search for a message and get several
 results, is there a way to find out which folder each message found is
 in?

 I think, there's no way to see that information from the nnir search
 results summary.  But you can warp to any article found in its
 originating group:

 ,[ (info (gnus)Basic Usage) ]
 |The `nnir' group made in this way is an `ephemeral' group, and some
 | changes are not permanent: aside from reading, moving, and deleting,
 | you can't act on the original article. But there is an alternative: you
 | can _warp_ to the original group for the article on the current line
 | with `A W', aka `gnus-warp-to-article'. Even better, the function
 | `gnus-summary-refer-thread', bound by default in summary buffers to `A
 | T', will first warp to the original group before it works its magic and
 | includes all the articles in the thread. From here you can read, move
 | and delete articles, but also copy them, alter article marks, whatever.
 | Go nuts.
 `

 Bye,
 Tassilo

Thanks for the hint (why didn't I think of googling for 'warp'?), but I
don't get it.  What is supposed to happen?  Using the bindings or
calling the functions explicitly doesn't seem to do anything.

Cheers

Loris

-- 
no sig is good sig



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


Mail not displayed, but found by search

2012-09-19 Thread Loris Bennett
Hi,

A webmail client shows me 78 read messages in my inbox.  However, when I use
Gnus to look at the same inbox, I only see I see 14, even when I use
'/o' to display more old messages.  If I use 'G G' on the inbox, I can
find message which my webmail shows me but which Gnus does not.

The messages shown are the more recent ones and new mail is displayed fine.

This behaviour started after updating to Gnus 5.13.

Any ideas about what could be going on?

Loris
-- 
no sig is good sig

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


Re: Mail not displayed, but found by search

2012-09-19 Thread Loris Bennett
Loris Bennett loris.benn...@fu-berlin.de writes:

 Hi,

 A webmail client shows me 78 read messages in my inbox.  However, when I use
 Gnus to look at the same inbox, I only see I see 14, even when I use
 '/o' to display more old messages.  If I use 'G G' on the inbox, I can
 find message which my webmail shows me but which Gnus does not.

 The messages shown are the more recent ones and new mail is displayed fine.

 This behaviour started after updating to Gnus 5.13.

 Any ideas about what could be going on?

OK, I solved this myself.  The default for the number of old messages to
be displayed was set to 1000, which I thought should be enough, seeing
as there are only 78 messages in the inbox.  However, when I asked for
all the messages Gnus thinks are in the inbox, namely over 6000, all the
78 messages were displayed.

Which begs the question:

When Gnus thinks it is displaying 1000 messages, but I only see 14,
where are the other messages?  Are they actually in other folders? (I
should have said that I'm using IMAP).

If the messages are in other folders, how can I get Gnus to count the
messages in a more transparent manner?

Loris

-- 
no sig is good sig

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


IMAP folders with non-ascii names

2012-06-26 Thread Loris Bennett
Hi,

I have an IMAP folder with contains an umlaut.  If I set
gnu-group-name-charset-group-alist to iso-latin-1, the name is shown
correctly in the *Group* buffer, but I get the following error if I try
to enter the folder:

,-
| gnus-select-newsgroup: Couldn't activate group
| nnimap+...:Entwürfe: Mailbox doesn't exist: EntwACA-rfe
`-

Other folders can be accessed without problem.

Is there some other variable I need to set?

-- 
Loris


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


Re: Where would this article be split to

2012-03-28 Thread Loris Bennett
Slackrat g-no-...@azurservers.com writes:

 I forgot the keystroikes and can't seem to locate them in the manual or
 info

 They return the groups the article would be split into

B q 

should tell you where the article would go after fancy splitting.

Having said that, I use nnimap with nnimap-split-fancy and it doesn't
word for me.  It only ever says

mail.misc

which I don't have.

 Thanks

Cheers

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de
___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english