Gnus development mailing list
 help / color / mirror / Atom feed
* Mails not sent / not not appear in nnfolder+sent
@ 2023-01-22 15:32 Felix Natter
  2023-01-22 17:52 ` Gijs Hillenius
  2023-01-23  7:10 ` Gijs Hillenius
  0 siblings, 2 replies; 10+ messages in thread
From: Felix Natter @ 2023-01-22 15:32 UTC (permalink / raw)
  To: ding

hello Gnus experts,

I am using Gnus v5.13 / GNU Emacs 27.1 and for quite some time,
occasionally, some mails are not actually sent _and/or_ do not appear in the
sent-mails backend (nnfolder+sent:sent-mail.<year>-<month>).

That is, *maybe* they are sent, but do not end up in sent-mail-**.

I'm not sure I matched this correctly, but it seems this is a
problematic case in *Messages*:

Sending email
250 Requested mail action okay, completed: id=1N1OXT-1oZnjj2sXb-012t77
Sending email done
221 gmx.net Service closing transmission channel
Sending...done
Deleting article /home/felix/News/drafts/drafts/190 in drafts...
Saving file /home/felix/.newsrc...

... and this is a normal case:

Sending email
250 Requested mail action okay, completed: id=1MQ5vW-1p6KQW3o2a-00M3AZ
Sending email done
221 gmx.net Service closing transmission channel
Saving file /home/felix/Mail/sent/sent-mail/2023-01...
Wrote /home/felix/Mail/sent/sent-mail/2023-01
Sending...done
Deleting article /home/felix/News/drafts/drafts/191 in drafts...
Saving file /home/felix/.newsrc...

How can I debug this / add additional logging?
Is there a chance that this is fixed in a newer emacs?
How can I be sure that the mail is actually sent when this occurs?

Many Thanks and Best Regards,
Felix
--
Felix Natter



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

* Re: Mails not sent / not not appear in nnfolder+sent
  2023-01-22 15:32 Mails not sent / not not appear in nnfolder+sent Felix Natter
@ 2023-01-22 17:52 ` Gijs Hillenius
  2023-01-27 20:03   ` Felix Natter
  2023-01-23  7:10 ` Gijs Hillenius
  1 sibling, 1 reply; 10+ messages in thread
From: Gijs Hillenius @ 2023-01-22 17:52 UTC (permalink / raw)
  To: ding

On 22 January 2023 16:32 Felix Natter, wrote:

> hello Gnus experts,
>
> I am using Gnus v5.13 / GNU Emacs 27.1 and for quite some time,
> occasionally, some mails are not actually sent _and/or_ do not appear in the
> sent-mails backend (nnfolder+sent:sent-mail.<year>-<month>).
>
> That is, *maybe* they are sent, but do not end up in sent-mail-**.
>
> I'm not sure I matched this correctly, but it seems this is a
> problematic case in *Messages*:
>
> Sending email
> 250 Requested mail action okay, completed: id=1N1OXT-1oZnjj2sXb-012t77
> Sending email done
> 221 gmx.net Service closing transmission channel
> Sending...done
> Deleting article /home/felix/News/drafts/drafts/190 in drafts...
> Saving file /home/felix/.newsrc...
>
> ... and this is a normal case:
>
> Sending email
> 250 Requested mail action okay, completed: id=1MQ5vW-1p6KQW3o2a-00M3AZ
> Sending email done
> 221 gmx.net Service closing transmission channel
> Saving file /home/felix/Mail/sent/sent-mail/2023-01...
> Wrote /home/felix/Mail/sent/sent-mail/2023-01
> Sending...done
> Deleting article /home/felix/News/drafts/drafts/191 in drafts...
> Saving file /home/felix/.newsrc...
>
> How can I debug this / add additional logging?

Why are there messages here about drafts?

You have special GCC settings?

Check if this gives you more info: 

; Debug Smtp
(setq smtpmail-debug-info t)
(setq smtpmail-debug-verb t)




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

* Re: Mails not sent / not not appear in nnfolder+sent
  2023-01-22 15:32 Mails not sent / not not appear in nnfolder+sent Felix Natter
  2023-01-22 17:52 ` Gijs Hillenius
@ 2023-01-23  7:10 ` Gijs Hillenius
  1 sibling, 0 replies; 10+ messages in thread
From: Gijs Hillenius @ 2023-01-23  7:10 UTC (permalink / raw)
  To: ding

On 22 January 2023 16:32 Felix Natter, wrote:

> hello Gnus experts,
>
> I am using Gnus v5.13 / GNU Emacs 27.1 and for quite some time,
> occasionally, some mails are not actually sent _and/or_ do not appear in the
> sent-mails backend (nnfolder+sent:sent-mail.<year>-<month>).
>
> That is, *maybe* they are sent, but do not end up in sent-mail-**.
>
> I'm not sure I matched this correctly, but it seems this is a
> problematic case in *Messages*:
>
> Sending email
> 250 Requested mail action okay, completed: id=1N1OXT-1oZnjj2sXb-012t77
> Sending email done
> 221 gmx.net Service closing transmission channel
> Sending...done
> Deleting article /home/felix/News/drafts/drafts/190 in drafts...
> Saving file /home/felix/.newsrc...
>
> ... and this is a normal case:
>
> Sending email
> 250 Requested mail action okay, completed: id=1MQ5vW-1p6KQW3o2a-00M3AZ
> Sending email done
> 221 gmx.net Service closing transmission channel
> Saving file /home/felix/Mail/sent/sent-mail/2023-01...
> Wrote /home/felix/Mail/sent/sent-mail/2023-01
> Sending...done
> Deleting article /home/felix/News/drafts/drafts/191 in drafts...
> Saving file /home/felix/.newsrc...
>
> How can I debug this / add additional logging?

Do you have special GCC settings?

You can try setting these.

(setq smtpmail-debug-info t)
(setq smtpmail-debug-verb t)




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

* Re: Mails not sent / not not appear in nnfolder+sent
  2023-01-22 17:52 ` Gijs Hillenius
@ 2023-01-27 20:03   ` Felix Natter
  2023-01-27 22:23     ` Eric Abrahamsen
  0 siblings, 1 reply; 10+ messages in thread
From: Felix Natter @ 2023-01-27 20:03 UTC (permalink / raw)
  To: Gijs Hillenius; +Cc: ding

hello Gijs,

Gijs Hillenius <gijs@hillenius.net> writes:

> On 22 January 2023 16:32 Felix Natter, wrote:
>
>> hello Gnus experts,
>>
>> I am using Gnus v5.13 / GNU Emacs 27.1 and for quite some time,
>> occasionally, some mails are not actually sent _and/or_ do not appear in the
>> sent-mails backend (nnfolder+sent:sent-mail.<year>-<month>).
>>
>> That is, *maybe* they are sent, but do not end up in sent-mail-**.
>>
>> I'm not sure I matched this correctly, but it seems this is a
>> problematic case in *Messages*:
>>
>> Sending email
>> 250 Requested mail action okay, completed: id=1N1OXT-1oZnjj2sXb-012t77
>> Sending email done
>> 221 gmx.net Service closing transmission channel
>> Sending...done
>> Deleting article /home/felix/News/drafts/drafts/190 in drafts...
>> Saving file /home/felix/.newsrc...
>>
>> ... and this is a normal case:
>>
>> Sending email
>> 250 Requested mail action okay, completed: id=1MQ5vW-1p6KQW3o2a-00M3AZ
>> Sending email done
>> 221 gmx.net Service closing transmission channel
>> Saving file /home/felix/Mail/sent/sent-mail/2023-01...
>> Wrote /home/felix/Mail/sent/sent-mail/2023-01
>> Sending...done
>> Deleting article /home/felix/News/drafts/drafts/191 in drafts...
>> Saving file /home/felix/.newsrc...
>>
>> How can I debug this / add additional logging?

thank you for your answer.

> Why are there messages here about drafts?

Do you refer to this?
>> Deleting article /home/felix/News/drafts/drafts/191 in drafts...

-> it deleted the draft message :)

> You have special GCC settings?

I do not think so. Here are all smtpmail settings:

;; sending mail: this requires a more recent (2005) version of smtpmail.el
;; (/usr/share/doc/gnus/contrib)
(require 'smtpmail)
(setq message-send-mail-function 'smtpmail-send-it
      send-mail-function 'smtpmail-send-it
      smtpmail-smtp-server "mail.gmx.net"
      smtpmail-local-domain nil
      smtpmail-debug-info t)
(setq smtpmail-debug-verb t)
(setq smtpmail-default-smtp-server "mail.gmx.net")
(setq smtpmail-auth-credentials '(("mail.gmx.net" 25 "USER" "SECRET")))
(setq smtpmail-starttls-credentials  '(("mail.gmx.net" 25 nil nil)))
;; this is still needed, even with STARTTLS
(setq smtpmail-smtp-service 25)

;; TLS stuff
;; use external GNUTLS to fix auth problems...
(setq starttls-use-gnutls t
      starttls-gnutls-program "gnutls-cli"
      starttls-extra-arguments nil)

Is there anything wrong with it?

I noticed that I loaded a custom smtpmail.el (see comment above), which
I exchanged with:
  /usr/share/emacs/27.1/lisp/mail/smtpmail.elc
now.

> Check if this gives you more info: 
>
> ; Debug Smtp
> (setq smtpmail-debug-info t)
> (setq smtpmail-debug-verb t)

I have added -verb t, but it does not seem to make a difference.( (there
is a trace buffer, but it does not contain more information than
*Messages*).

It looks like the messages are sent, but not saved in the archive mbox
files...

Any ideas would be appreciated!

Best Regards,
Felix
-- 
Felix Natter
debian/rules!


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

* Re: Mails not sent / not not appear in nnfolder+sent
  2023-01-27 20:03   ` Felix Natter
@ 2023-01-27 22:23     ` Eric Abrahamsen
  2023-02-04 12:39       ` Felix Natter
  2023-03-20 12:51       ` Felix Natter
  0 siblings, 2 replies; 10+ messages in thread
From: Eric Abrahamsen @ 2023-01-27 22:23 UTC (permalink / raw)
  To: ding

Felix Natter <fnatter@gmx.net> writes:

> It looks like the messages are sent, but not saved in the archive mbox
> files...
>
> Any ideas would be appreciated!

Before you send the message, do you see a Gcc: header at the top of the
mail composition buffer? (Try "C-x n w" first just to make absolutely sure.)



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

* Re: Mails not sent / not not appear in nnfolder+sent
  2023-01-27 22:23     ` Eric Abrahamsen
@ 2023-02-04 12:39       ` Felix Natter
  2023-03-20 12:51       ` Felix Natter
  1 sibling, 0 replies; 10+ messages in thread
From: Felix Natter @ 2023-02-04 12:39 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: ding

hello Eric,

thank you for your reply.

Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Felix Natter <fnatter@gmx.net> writes:
>
>> It looks like the messages are sent, but not saved in the archive mbox
>> files...
>>
>> Any ideas would be appreciated!
>
> Before you send the message, do you see a Gcc: header at the top of the
> mail composition buffer? (Try "C-x n w" first just to make absolutely sure.)

When I send a mail in unplugged mode, it is saved in the queue without a
GCC: header, but it *was* saved to sent-mail.2023-02, so this doesn't
seem to be the issue.

The mail I am currently writing has a Gcc: header:
Gcc: nnfolder+sent:sent-mail.2023-02

So let's see whether it is sent and saved (it is hard to reproduce the
issue).

Thanks and Best Regards,
Felix
--
Felix Natter



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

* Re: Mails not sent / not not appear in nnfolder+sent
  2023-01-27 22:23     ` Eric Abrahamsen
  2023-02-04 12:39       ` Felix Natter
@ 2023-03-20 12:51       ` Felix Natter
  2023-03-21  0:52         ` Emanuel Berg
  1 sibling, 1 reply; 10+ messages in thread
From: Felix Natter @ 2023-03-20 12:51 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: ding

hello Gnus experts,

Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Felix Natter <fnatter@gmx.net> writes:
>
>> It looks like the messages are sent, but not saved in the archive mbox
>> files...
>>
>> Any ideas would be appreciated!

I am pretty sure that I sometimes lack the Gcc: header (like:
Gcc: nnfolder+sent:sent-mail.2023-03)
and the mails were sent but not archived.

> Before you send the message, do you see a Gcc: header at the top of the
> mail composition buffer? (Try "C-x n w" first just to make absolutely
> sure.)

Thank you Eric. I found that the Gcc: header is not generated
when starting a mail in a new frame (C-x 5 m).

Here is my Gcc config:

;; archiving sent mail/news:
(setq gnus-message-archive-method
      '(nnfolder "sent"
                 (nnfolder-inhibit-expiry t)
                 (nnfolder-directory "~/Mail/sent/")
                 (nnfolder-active-file "~/Mail/sent/active")))
(setq gnus-message-archive-group
      '((if (message-news-p)
            "sent-news"
          (concat "sent-mail." (format-time-string "%Y-%m")))))

Is this a bug? Shall I report it (against
GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24,
cairo version 1.16.0) of 2023-02-23, modified by Debian)?

Or can someone confirm that this is fixed in recent emacs or is not a
bug at all?

Many Thanks and Best Regards,
Felix
--
Felix Natter



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

* Re: Mails not sent / not not appear in nnfolder+sent
  2023-03-20 12:51       ` Felix Natter
@ 2023-03-21  0:52         ` Emanuel Berg
  2023-03-21 10:06           ` Felix Natter
  0 siblings, 1 reply; 10+ messages in thread
From: Emanuel Berg @ 2023-03-21  0:52 UTC (permalink / raw)
  To: ding

Felix Natter wrote:

> hello Gnus experts

Hardly, but looks cool by now B)

  https://dataswamp.org/~incal/figures/gnus/gnus-gmane.png

> Here is my Gcc config:
>
> ;; archiving sent mail/news:
> (setq gnus-message-archive-method
>       '(nnfolder "sent"
>                  (nnfolder-inhibit-expiry t)
>                  (nnfolder-directory "~/Mail/sent/")
>                  (nnfolder-active-file "~/Mail/sent/active")))
> (setq gnus-message-archive-group
>       '((if (message-news-p)
>             "sent-news"
>           (concat "sent-mail." (format-time-string
> "%Y-%m")))))

I just have `gnus-message-archive-method' the default
"archive" and `gnus-message-archive-group' set like this:

  (setq gnus-message-archive-group "nnml:mail.sent")

I see what you try to do with different groups for news and
mails, and different mail groups even, but since that
information is in the headers of the sent material you can
already sort and display based on such factors, so that's
another alternative if you didn't consider.

-- 
underground experts united
https://dataswamp.org/~incal



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

* Re: Mails not sent / not not appear in nnfolder+sent
  2023-03-21  0:52         ` Emanuel Berg
@ 2023-03-21 10:06           ` Felix Natter
  2023-03-21 13:19             ` Emanuel Berg
  0 siblings, 1 reply; 10+ messages in thread
From: Felix Natter @ 2023-03-21 10:06 UTC (permalink / raw)
  To: ding

Emanuel Berg <incal@dataswamp.org> writes:

> Felix Natter wrote:
>
>> hello Gnus experts
>
> Hardly, but looks cool by now B)
>
>   https://dataswamp.org/~incal/figures/gnus/gnus-gmane.png
>
>> Here is my Gcc config:
>>
>> ;; archiving sent mail/news:
>> (setq gnus-message-archive-method
>>       '(nnfolder "sent"
>>                  (nnfolder-inhibit-expiry t)
>>                  (nnfolder-directory "~/Mail/sent/")
>>                  (nnfolder-active-file "~/Mail/sent/active")))
>> (setq gnus-message-archive-group
>>       '((if (message-news-p)
>>             "sent-news"
>>           (concat "sent-mail." (format-time-string
>> "%Y-%m")))))

hello Emanuel,

> I just have `gnus-message-archive-method' the default
> "archive" and `gnus-message-archive-group' set like this:
>
>   (setq gnus-message-archive-group "nnml:mail.sent")
>
> I see what you try to do with different groups for news and
> mails, and different mail groups even, but since that
> information is in the headers of the sent material you can
> already sort and display based on such factors, so that's
> another alternative if you didn't consider.

thank you for the hint. I am using a config straight from the manual
[1]. I think I shall create a bug report now. Is bug-gnu-emacs@gnu.org [2]
the correct address? How are the bug numbers [3] created?

[1] https://www.gnus.org/manual/gnus_75.html
[2] https://www.gnu.org/software/emacs/manual/html_node/efaq/Reporting-bugs.html
[3] https://lists.gnu.org/archive/html/bug-gnu-emacs/2023-03/index.html

Thanks and Best Regards,
Felix
--
Felix Natter



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

* Re: Mails not sent / not not appear in nnfolder+sent
  2023-03-21 10:06           ` Felix Natter
@ 2023-03-21 13:19             ` Emanuel Berg
  0 siblings, 0 replies; 10+ messages in thread
From: Emanuel Berg @ 2023-03-21 13:19 UTC (permalink / raw)
  To: ding

Felix Natter wrote:

> Is bug-gnu-emacs@gnu.org the correct address?

Yes, but I think most people just do M-x report-emacs-bug RET
since that automatically includes useful information in
the mail.

There is a `gnus-bug', even.

-- 
underground experts united
https://dataswamp.org/~incal



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

end of thread, other threads:[~2023-03-21 13:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-22 15:32 Mails not sent / not not appear in nnfolder+sent Felix Natter
2023-01-22 17:52 ` Gijs Hillenius
2023-01-27 20:03   ` Felix Natter
2023-01-27 22:23     ` Eric Abrahamsen
2023-02-04 12:39       ` Felix Natter
2023-03-20 12:51       ` Felix Natter
2023-03-21  0:52         ` Emanuel Berg
2023-03-21 10:06           ` Felix Natter
2023-03-21 13:19             ` Emanuel Berg
2023-01-23  7:10 ` Gijs Hillenius

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).