All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: tools@linux.kernel.org
Subject: b4 should batch email
Date: Sun, 12 Feb 2023 20:22:13 -0700	[thread overview]
Message-ID: <87sffadzbu.fsf@tromey.com> (raw)

My mail provider doesn't like when I send too many messages in one
session, so I got the appended error message.

"git send-email" doesn't have this problem, because I do:

[sendemail]
...
	smtpBatchSize = 10

Perhaps b4 could use this same mechanism.  FWIW it was also a bit weird
to me that I had to set b4.send-series-to, when I already have
sendemail.to configured.

I'm using:

prentzel. b4 --version
0.12.0

thanks,
Tom

Traceback (most recent call last):
  File "/home/tromey/.local/bin/b4", line 8, in <module>
    sys.exit(cmd())
  File "/home/tromey/.local/lib/python3.10/site-packages/b4/command.py", line 360, in cmd
    cmdargs.func(cmdargs)
  File "/home/tromey/.local/lib/python3.10/site-packages/b4/command.py", line 86, in cmd_send
    b4.ez.cmd_send(cmdargs)
  File "/home/tromey/.local/lib/python3.10/site-packages/b4/ez.py", line 1532, in cmd_send
    sent = b4.send_mail(smtp, send_msgs, fromaddr=fromaddr, patatt_sign=sign,
  File "/home/tromey/.local/lib/python3.10/site-packages/b4/__init__.py", line 3429, in send_mail
    smtp.sendmail(fromaddr, destaddrs, bdata)
  File "/usr/lib64/python3.10/smtplib.py", line 887, in sendmail
    raise SMTPSenderRefused(code, resp, from_addr)
smtplib.SMTPSenderRefused: (421, b'too many messages in this connection', 'tom@tromey.com')

                 reply	other threads:[~2023-02-13  3:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sffadzbu.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=tools@linux.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.