Gnus development mailing list
 help / color / mirror / Atom feed
* Connecting to IMAP when exiting a group that has nnml emails
@ 2020-09-28 14:51 Pankaj Jangid
  2020-09-28 15:14 ` Eric Abrahamsen
  0 siblings, 1 reply; 7+ messages in thread
From: Pankaj Jangid @ 2020-09-28 14:51 UTC (permalink / raw)
  To: Gnus Users

Today I encountered a very strange problems:

1. While in a group that has emails from nnml backend, I presed 'm' and
started composing email. After pressing C-c C-c to send the email a
buffer opened for a very short time and vanished. I had doubt, so I
check the 'sent archive' group. It didn't have the email. Then I went to
server and checked that the email has actually gone.  2. While in the
same group, I marked a few emails as expirable. Then pressed 'q' to exit
to group buffer. Gnus started to connect to IMAP. I don't know why. The
emails are managed by nnml backend in this group.

Could you please tell me how to diagnose such issues? These issues are
not permanent. I restared Gnus as well as Emacs a few times. Sometimes
these problem occur sometimes not.

Never faced this earlier.

-- 
Pankaj Jangid

GnuPG Fingerprint => 0B62 7424 3B26 A911 052A DDE6 7C95 6E6F F858 7689


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

* Re: Connecting to IMAP when exiting a group that has nnml emails
  2020-09-28 14:51 Connecting to IMAP when exiting a group that has nnml emails Pankaj Jangid
@ 2020-09-28 15:14 ` Eric Abrahamsen
  2020-09-28 16:40   ` Pankaj Jangid
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Abrahamsen @ 2020-09-28 15:14 UTC (permalink / raw)
  To: ding

Pankaj Jangid <pankaj@codeisgreat.org> writes:

> Today I encountered a very strange problems:
>
> 1. While in a group that has emails from nnml backend, I presed 'm' and
> started composing email. After pressing C-c C-c to send the email a
> buffer opened for a very short time and vanished. I had doubt, so I
> check the 'sent archive' group. It didn't have the email. Then I went to
> server and checked that the email has actually gone.  2. While in the
> same group, I marked a few emails as expirable. Then pressed 'q' to exit
> to group buffer. Gnus started to connect to IMAP. I don't know why. The
> emails are managed by nnml backend in this group.
>
> Could you please tell me how to diagnose such issues? These issues are
> not permanent. I restared Gnus as well as Emacs a few times. Sometimes
> these problem occur sometimes not.

Perhaps you've got posting styles slightly misconfigured so that, when
composing a message from the nnml group, the Gcc header is set to the
nnimap "Sent" group? And/or your `nnmail{-fancy,}-expiry-target' is set
to a group on the nnimap server? That would account for Gnus connecting
to IMAP after send/expiry.

When you compose a mail, check what the Gcc header says. And I'm
guessing the expiry thing is a separate problem.



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

* Re: Connecting to IMAP when exiting a group that has nnml emails
  2020-09-28 15:14 ` Eric Abrahamsen
@ 2020-09-28 16:40   ` Pankaj Jangid
  2020-09-28 17:04     ` Pankaj Jangid
  0 siblings, 1 reply; 7+ messages in thread
From: Pankaj Jangid @ 2020-09-28 16:40 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: ding

On Mon, Sep 28 2020, Eric Abrahamsen wrote:

>> 1. While in a group that has emails from nnml backend, I presed 'm'
>> and started composing email. After pressing C-c C-c to send the email
>> a buffer opened for a very short time and vanished. I had doubt, so I
>> check the 'sent archive' group. It didn't have the email. Then I went
>> to server and checked that the email has actually gone.

>> 2. While in the same group, I marked a few emails as expirable. Then
>> pressed 'q' to exit to group buffer. Gnus started to connect to
>> IMAP. I don't know why. The emails are managed by nnml backend in
>> this group.

> Perhaps you've got posting styles slightly misconfigured so that, when
> composing a message from the nnml group, the Gcc header is set to the
> nnimap "Sent" group? And/or your `nnmail{-fancy,}-expiry-target' is
> set to a group on the nnimap server? That would account for Gnus
> connecting to IMAP after send/expiry.

You got it. The nnmail-expiry-target was wrong. I was setting it in the
gnus-secondary-select-method. Along with (nnimap-address, nnimap-inbox)
etc.

So when entered an imap group it works. But after exiting from the group
the value of nnmail-expiry-target is not reset to 'delete'. Hence I was
facing the issue.

> When you compose a mail, check what the Gcc header says. And I'm
> guessing the expiry thing is a separate problem.

Nope. The Gcc header is correct. It is

--8<---------------cut here---------------start------------->8---
Gcc: nnfolder+archive:sent.2020-09
--8<---------------cut here---------------end--------------->8---

But still the sent mail is not saved in the above group.

-- 
Pankaj Jangid

GnuPG Fingerprint => 0B62 7424 3B26 A911 052A DDE6 7C95 6E6F F858 7689


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

* Re: Connecting to IMAP when exiting a group that has nnml emails
  2020-09-28 16:40   ` Pankaj Jangid
@ 2020-09-28 17:04     ` Pankaj Jangid
  2020-09-28 22:15       ` Eric Abrahamsen
  2020-09-29 11:30       ` Eric S Fraga
  0 siblings, 2 replies; 7+ messages in thread
From: Pankaj Jangid @ 2020-09-28 17:04 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: ding

On Mon, Sep 28 2020, Pankaj Jangid wrote:

>>> 1. While in a group that has emails from nnml backend, I presed 'm'
>>> and started composing email. After pressing C-c C-c to send the
>>> email a buffer opened for a very short time and vanished. I had
>>> doubt, so I check the 'sent archive' group. It didn't have the
>>> email. Then I went to server and checked that the email has actually
>>> gone.

>> When you compose a mail, check what the Gcc header says. And I'm
>> guessing the expiry thing is a separate problem.
>
> Nope. The Gcc header is correct. It is
>
> But still the sent mail is not saved in the above group.

Immediately after sending the mail when I checked ibuffer, it is showing
a buffer named "*sent mail to p..." connected to file
~/News/drafts/drafts/1. But there is no such file on the filesystem. The
mail is actually in ~/Mail/archive/sent/2020-09 file which is the
default file. But this is not visible in the related group. After
restarting Emacs it appears in the relevant group.

BTW, at present it is working fine. I don't know how it got fixed. But
I'll try to reproduce. I am sure there is some misconfiguration like
what I did with nnmail-expiry-target.

-- 
Pankaj Jangid

GnuPG Fingerprint => 0B62 7424 3B26 A911 052A DDE6 7C95 6E6F F858 7689


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

* Re: Connecting to IMAP when exiting a group that has nnml emails
  2020-09-28 17:04     ` Pankaj Jangid
@ 2020-09-28 22:15       ` Eric Abrahamsen
  2020-09-29 11:30       ` Eric S Fraga
  1 sibling, 0 replies; 7+ messages in thread
From: Eric Abrahamsen @ 2020-09-28 22:15 UTC (permalink / raw)
  To: ding

Pankaj Jangid <pankaj.jangid@gmail.com> writes:

> On Mon, Sep 28 2020, Pankaj Jangid wrote:
>
>>>> 1. While in a group that has emails from nnml backend, I presed 'm'
>>>> and started composing email. After pressing C-c C-c to send the
>>>> email a buffer opened for a very short time and vanished. I had
>>>> doubt, so I check the 'sent archive' group. It didn't have the
>>>> email. Then I went to server and checked that the email has actually
>>>> gone.
>
>>> When you compose a mail, check what the Gcc header says. And I'm
>>> guessing the expiry thing is a separate problem.
>>
>> Nope. The Gcc header is correct. It is
>>
>> But still the sent mail is not saved in the above group.
>
> Immediately after sending the mail when I checked ibuffer, it is showing
> a buffer named "*sent mail to p..." connected to file
> ~/News/drafts/drafts/1. But there is no such file on the filesystem. The
> mail is actually in ~/Mail/archive/sent/2020-09 file which is the
> default file. But this is not visible in the related group. After
> restarting Emacs it appears in the relevant group.
>
> BTW, at present it is working fine. I don't know how it got fixed. But
> I'll try to reproduce. I am sure there is some misconfiguration like
> what I did with nnmail-expiry-target.

Well I'm glad that got sorted, one way or the other! Do let us know if
you're able to reproduce the problem.


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

* Re: Connecting to IMAP when exiting a group that has nnml emails
  2020-09-28 17:04     ` Pankaj Jangid
  2020-09-28 22:15       ` Eric Abrahamsen
@ 2020-09-29 11:30       ` Eric S Fraga
  2020-09-29 12:30         ` Pankaj Jangid
  1 sibling, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2020-09-29 11:30 UTC (permalink / raw)
  To: ding

On Monday, 28 Sep 2020 at 22:34, Pankaj Jangid wrote:
> Immediately after sending the mail when I checked ibuffer, it is showing
> a buffer named "*sent mail to p..." connected to file
> ~/News/drafts/drafts/1. But there is no such file on the filesystem. 

For clarification, that file would have existed while you were composing
the email.  As soon as you have sent it, the draft is deleted although
the buffer remains.

-- 
Eric S Fraga via Emacs 28.0.50 & org 9.4 on Debian bullseye/sid



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

* Re: Connecting to IMAP when exiting a group that has nnml emails
  2020-09-29 11:30       ` Eric S Fraga
@ 2020-09-29 12:30         ` Pankaj Jangid
  0 siblings, 0 replies; 7+ messages in thread
From: Pankaj Jangid @ 2020-09-29 12:30 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: ding

On Tue, Sep 29 2020, Eric S Fraga wrote:

>> Immediately after sending the mail when I checked ibuffer, it is showing
>> a buffer named "*sent mail to p..." connected to file
>> ~/News/drafts/drafts/1. But there is no such file on the filesystem. 
>
> For clarification, that file would have existed while you were composing
> the email.  As soon as you have sent it, the draft is deleted although
> the buffer remains.

Thanks for this clarification. I was still wondering if this was a
problem with my configuration.

-- 
Pankaj Jangid

GnuPG Fingerprint => 0B62 7424 3B26 A911 052A  DDE6 7C95 6E6F F858 7689


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

end of thread, other threads:[~2020-09-29 12:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-28 14:51 Connecting to IMAP when exiting a group that has nnml emails Pankaj Jangid
2020-09-28 15:14 ` Eric Abrahamsen
2020-09-28 16:40   ` Pankaj Jangid
2020-09-28 17:04     ` Pankaj Jangid
2020-09-28 22:15       ` Eric Abrahamsen
2020-09-29 11:30       ` Eric S Fraga
2020-09-29 12:30         ` Pankaj Jangid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).