Re: Need help; cannot send email in gnus and emacs anymore; 550 relay not permitted

2022-07-31 Thread physiculus
Am Sat, 30 Jul 2022 22:18:39 +0200
Adam Sjøgren  schrieb:

> physiculus writes:
> 
> >> Do you have username and password configured in clawsmail for the
> >> outgoing (smtp) mail servers?  
> 
> > yes it is configured inside clawsmail.  
> 
> Ok, so that's at least a difference between "working client" and
> "non-working client".
> 
> > but i do not know, if gnus/smtpmail reads the data from this file.
> > is it possible to log deeper if sending mail?  
> 
> I would expect the smtp trace buffer to have lines about logging in
> (AUTH) if it is.
> 
hello again,
i just try it again with my gmail account.
but for me, nothing that i understand why it does not work.
here is the trace:
220 smtp.gmail.com ESMTP
o21-20020a170906775500b0072f9dc2c246sm3720562ejn.133 - gsmtp
250-smtp.gmail.com at your service,
[2a02:8108:1200:24dc:4f7b:d279:b926:29ee] 250-SIZE 35882577 250-8BITMIME
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
220 2.0.0 Ready to start TLS
250-smtp.gmail.com at your service,
[2a02:8108:1200:24dc:4f7b:d279:b926:29ee] 250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-CHUNKING
250 SMTPUTF8
MAIL FROM: SIZE=308
530-5.7.0 Authentication Required. Learn more at
530 5.7.0  https://support.google.com/mail/?p=WantAuthError
o21-20020a170906775500b0072f9dc2c246sm3720562ejn.133 - gsmtp QUIT
221 2.0.0 closing connection
o21-20020a170906775500b0072f9dc2c246sm3720562ejn.133 - gsmtp

Process smtpmail deleted

the mail adress is the same as in my authinfo.gpg file.
could you see, which step brings the error?
or is it possible to deeper log the connection?

> Does what you have put after "machine" in authinfo match what you have
> in your posting styles as the smtp servers?
> 
> 
>   Best regards,
> 
> Adam
> 




Re: Need help; cannot send email in gnus and emacs anymore; 550 relay not permitted

2022-07-31 Thread Adam Sjøgren
physiculus writes:

> 220 2.0.0 Ready to start TLS
> 250-smtp.gmail.com at your service,
> [2a02:8108:1200:24dc:4f7b:d279:b926:29ee] 250-SIZE 35882577
> 250-8BITMIME
> 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
> 250-ENHANCEDSTATUSCODES
> 250-PIPELINING
> 250-CHUNKING
> 250 SMTPUTF8
> MAIL FROM: SIZE=308
> 530-5.7.0 Authentication Required. Learn more at
> 530 5.7.0  https://support.google.com/mail/?p=WantAuthError
> o21-20020a170906775500b0072f9dc2c246sm3720562ejn.133 - gsmtp QUIT
> 221 2.0.0 closing connection
> o21-20020a170906775500b0072f9dc2c246sm3720562ejn.133 - gsmtp

> could you see, which step brings the error?

The mail server explicitly tells you that you need to log in, and Gnus
doesn't, it forges ahead with "MAIL FROM".

> the mail adress is the same as in my authinfo.gpg file.

And the "machine" in authinfo.gpg matches the mail server's name?

And your ~/.authinfo.gpg is encrypted with GPG? What does "file
~/.authinfo.gpg" say?

> or is it possible to deeper log the connection?

There is nothing more being exchanged between Gnus and the mail server
than what you see in the trace.


  Best regards,

Adam

-- 
 "My ethicator machine must've had a built-in moral Adam Sjøgren
  compromise spectral release phantasmatron!"  a...@koldfront.dk




Re: Generate and insert Face header from jpg file

2022-07-31 Thread Adam Sjøgren
Satoshi writes:

> (setq message-required-headers
>   (nconc message-required-headers
>  (list '(Face . (lambda ()
>   (gnus-face-from-file "~/face.jpg"))
>
> But I couldn't generate and insert Face header at writing a mail.

What happens when you try? Do you get an error message?

You have chosen to use gnus-face-from-file and a JPEG - the
documentation says that it uses gnus-convert-image-to-face-command to
convert the image to PNG:

,[ C-h v gnus-convert-image-to-face-command RET ]
| gnus-convert-image-to-face-command is a variable defined in ‘gnus-fun.el’.
| 
| Its value is "convert -scale 48x48! %s -colors %d png:-"
| 
| Command for converting an image to a Face.
| 
| The command must take an image filename (first format argument
| "%s") and the number of colors (second format argument: "%d")
| as input.  The output must be the Face header data on stdout in
| PNG format.
| 
`

Do you have ImageMagick installed on your machine (i.e. the package that
contains the "convert" command)?

To eliminate that potential source of problems you could save the image
as a PNG and use gnus-convert-png-to-face instead.


  Best regards,

Adam

-- 
 "perhaps he does not understand that business needsAdam Sjøgren
  to be run without idiot balloons or child games."a...@koldfront.dk




Re: Generate and insert Face header from jpg file

2022-07-31 Thread Satoshi Yoshida
Adam Sjøgren  writes:

> What happens when you try? Do you get an error message?

Nothing happened. Just I received test mail with no Face header.
I got no error message.

> You have chosen to use gnus-face-from-file and a JPEG - the
> documentation says that it uses gnus-convert-image-to-face-command to
> convert the image to PNG:
>
> ,[ C-h v gnus-convert-image-to-face-command RET ]
> | gnus-convert-image-to-face-command is a variable defined in ‘gnus-fun.el’.
> | 
> | Its value is "convert -scale 48x48! %s -colors %d png:-"
> | 
> | Command for converting an image to a Face.
> | 
> | The command must take an image filename (first format argument
> | "%s") and the number of colors (second format argument: "%d")
> | as input.  The output must be the Face header data on stdout in
> | PNG format.
> | 
> `
>
> Do you have ImageMagick installed on your machine (i.e. the package that
> contains the "convert" command)?

OK. I installed ImageMagick and confirmed "convert" command is valid.
I retried to send test mail and got time lag.
It is evidence that Gnus processed something.
Error mssage wasn't displayed.
But I received test mail with no Face header again.

> To eliminate that potential source of problems you could save the image
> as a PNG and use gnus-convert-png-to-face instead.

I see. I generated PNG file by GIMP because I am used to it.
And I set .gnus.el

(setq message-required-headers
  (nconc message-required-headers
 (list '(Face . (lambda ()
  (gnus-convert-png-to-face "~/face.png"))

Finally I generated and inserted Face header succesfully.
Thank you very much.

-- 
Satoshi Yoshida



Re: Subscribing to nnimap folders that are subscribed on IMAP servers

2022-07-31 Thread Eric Abrahamsen
Ryan Kavanagh via "Announcements and discussions for GNUS, the GNU Emacs
Usenet newsreader (in English)"  writes:

> Hi,
>
> I am trying to use gnus as an IMAP mail client. I have folders marked as
> subscribed on my IMAP server (listed by LSUB). I would like to have gnus
> automatically subscribe to these folders, or at least list them so that
> I can manually subscribe gnus to them myself. How can I do so? I am
> using gnus 5.13 under Emacs 27.1.

Best to read the "New Groups" section of the Gnus manual: that will give
you the background on `gnus-check-new-newsgroups' (you could also read
its docstring), as well as methods of subscribing to new groups.

Let us know if that doesn't clear it up!

Eric




Re: Need help; cannot send email in gnus and emacs anymore; 550 relay not permitted

2022-07-31 Thread physiculus
Am Sun, 31 Jul 2022 11:35:56 +0200
Adam Sjøgren  schrieb:

> physiculus writes:
> 
> > 220 2.0.0 Ready to start TLS
> > 250-smtp.gmail.com at your service,
> > [2a02:8108:1200:24dc:4f7b:d279:b926:29ee] 250-SIZE 35882577
> > 250-8BITMIME
> > 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
> > 250-ENHANCEDSTATUSCODES
> > 250-PIPELINING
> > 250-CHUNKING
> > 250 SMTPUTF8
> > MAIL FROM: SIZE=308
> > 530-5.7.0 Authentication Required. Learn more at
> > 530 5.7.0  https://support.google.com/mail/?p=WantAuthError
> > o21-20020a170906775500b0072f9dc2c246sm3720562ejn.133 - gsmtp QUIT
> > 221 2.0.0 closing connection
> > o21-20020a170906775500b0072f9dc2c246sm3720562ejn.133 - gsmtp  
> 
> > could you see, which step brings the error?  
> 
> The mail server explicitly tells you that you need to log in, and Gnus
> doesn't, it forges ahead with "MAIL FROM".
> 
> > the mail adress is the same as in my authinfo.gpg file.  
> 
> And the "machine" in authinfo.gpg matches the mail server's name?
> 
yes i think so.

> And your ~/.authinfo.gpg is encrypted with GPG? What does "file
> ~/.authinfo.gpg" say?
> 
this is the result:
/home/held/.authinfo.gpg: PGP RSA encrypted session key - keyid:
789E94A4 41B3A6B3 RSA (Encrypt or Sign) 2048b

is it correct?

> > or is it possible to deeper log the connection?  
> 
> There is nothing more being exchanged between Gnus and the mail server
> than what you see in the trace.
> 
> 
>   Best regards,
> 
> Adam
> 




Re: Need help; cannot send email in gnus and emacs anymore; 550 relay not permitted

2022-07-31 Thread physiculus
Am Sun, 31 Jul 2022 11:35:56 +0200
Adam Sjøgren  schrieb:
Wonderful!
it works.
i found the solution.
inside the authinfo.gpg file there is a line
#default force yes
after comment out, it works.

i don't knwo what it means and how it comes inside the file.
anyway it works

thank you for you patience.


> physiculus writes:
> 
> > 220 2.0.0 Ready to start TLS
> > 250-smtp.gmail.com at your service,
> > [2a02:8108:1200:24dc:4f7b:d279:b926:29ee] 250-SIZE 35882577
> > 250-8BITMIME
> > 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
> > 250-ENHANCEDSTATUSCODES
> > 250-PIPELINING
> > 250-CHUNKING
> > 250 SMTPUTF8
> > MAIL FROM: SIZE=308
> > 530-5.7.0 Authentication Required. Learn more at
> > 530 5.7.0  https://support.google.com/mail/?p=WantAuthError
> > o21-20020a170906775500b0072f9dc2c246sm3720562ejn.133 - gsmtp QUIT
> > 221 2.0.0 closing connection
> > o21-20020a170906775500b0072f9dc2c246sm3720562ejn.133 - gsmtp  
> 
> > could you see, which step brings the error?  
> 
> The mail server explicitly tells you that you need to log in, and Gnus
> doesn't, it forges ahead with "MAIL FROM".
> 
> > the mail adress is the same as in my authinfo.gpg file.  
> 
> And the "machine" in authinfo.gpg matches the mail server's name?
> 
> And your ~/.authinfo.gpg is encrypted with GPG? What does "file
> ~/.authinfo.gpg" say?
> 
> > or is it possible to deeper log the connection?  
> 
> There is nothing more being exchanged between Gnus and the mail server
> than what you see in the trace.
> 
> 
>   Best regards,
> 
> Adam
> 




Re: Need help; cannot send email in gnus and emacs anymore; 550 relay not permitted

2022-07-31 Thread Adam Sjøgren
physiculus writes:

> inside the authinfo.gpg file there is a line
> #default force yes
> after comment out, it works.

Happy to hear you found a solution.


  Cheers,

Adam

-- 
 "I'm sorry I sound calm. I assure you that Adam Sjøgren
  I am hysterical."a...@koldfront.dk




Re: Generate and insert Face header from jpg file

2022-07-31 Thread Emanuel Berg
Satoshi Yoshida wrote:

> (gnus-face-from-file "~/face.jpg")

Okay, sounds like an interesting function? :O

But `gnus-convert-image-to-face-command', mentioned in the
docstring, isn't defined here and has no docstring of its own
...

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