Re: IMAP Sending Issue with Multiple Accounts

2024-09-06 Thread Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
Robert Pluim writes: > TLS and SSL are the same thing. The difference is that 465 is used for > direct TLS/SSL, and 587 uses TCP optionally followed by STARTTLS. Thank you for the clarification. I added this in the comments to my code so I don't forget in the future. -- Serghei Iakovlev

Re: IMAP Sending Issue with Multiple Accounts

2024-09-06 Thread Robert Pluim
> On Fri, 06 Sep 2024 10:02:16 +0200, Serghei Iakovlev via "Announcements > and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)" > said: Serghei> and everything started working! I double-checked Google’s help Serghei> center, and sure enough, they offer

Re: IMAP Sending Issue with Multiple Accounts

2024-09-06 Thread Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
Serghei Iakovlev via "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)" writes: Apologies, I was so excited that I ended up making a typo in my example :) > (setq gnus-posting-styles > `((".*" > (signature ,user-full-name) > (address "e

Re: IMAP Sending Issue with Multiple Accounts

2024-09-06 Thread Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
James Thomas writes: >> Need not be that complex, AFAICT. The method could simply be something >> like "starttls 127.0.0.1 1025" where the only thing you would do is >> let-bind the stream type and call the default. > > Well, I was wrong about this part: 'method' ought to be dynamically > bound

Re: IMAP Sending Issue with Multiple Accounts

2024-09-05 Thread James Thomas
James Thomas wrote: > Serghei Iakovlev via "Announcements and discussions for GNUS, the GNU > Emacs Usenet newsreader (in English)" wrote: > >> James Thomas writes: >> >> >>> But there seems to be a better way; see: >>> https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/gnus/message.el#n5027 >>

Re: IMAP Sending Issue with Multiple Accounts

2024-09-05 Thread James Thomas
Serghei Iakovlev via "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)" wrote: > James Thomas writes: > > >> But there seems to be a better way; see: >> https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/gnus/message.el#n5027 >> >> Basically if you name the

Re: IMAP Sending Issue with Multiple Accounts

2024-09-05 Thread Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
James Thomas writes: > But there seems to be a better way; see: > https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/gnus/message.el#n5027 > > Basically if you name the function as message-send-mail-with-, you > should be able to directly call it from X-Message-SMTP-Method. So, essentially,

Re: IMAP Sending Issue with Multiple Accounts

2024-09-05 Thread James Thomas
Serghei Iakovlev via "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)" wrote: > Leo Butler writes: > >>> --8<-cut herestart--->8-- >>> (defun my-configure-smtp-stream-type () >>> "Configure the SMTP stream type bas

Re: IMAP Sending Issue with Multiple Accounts

2024-09-05 Thread Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
Leo Butler writes: >> --8<-cut herestart--->8-- >> (defun my-configure-smtp-stream-type () >> "Configure the SMTP stream type based on the current user email address." >> (cond ((equal user-mail-address "eg...@protonmail.ch") >> (setq smtpm

Re: IMAP Sending Issue with Multiple Accounts

2024-09-05 Thread Leo Butler
On Thu, Sep 05 2024, Serghei Iakovlev via "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)" wrote: > Björn Bidar writes: > > I think I've tried about a dozen different combinations before > finding a working setup. I also realized I had a typo and was usin

Re: IMAP Sending Issue with Multiple Accounts

2024-09-05 Thread Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
Xiyue Deng writes: > According to the Emacs docs on X-Message-SMTP-Method[1], you can specify > it like > > , > | X-Message-SMTP-Method: smtp smtp.fsf.org 587 other-user > ` > > Where it "uses ‘other-user’ as the user name when authenticating. This > is handy if you have several SMTP acc

Re: IMAP Sending Issue with Multiple Accounts

2024-09-05 Thread Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
Björn Bidar writes: Hi Björn, >> (setq gnus-posting-styles >> `((".*" >> (signature ,user-full-name) >> (address "eg...@protonmail.ch") >> ("GCC" "nnimap+main:Sent") >> ("X-Message-SMTP-Method" "smtp 127.0.0.1 1025")) >> ("nnimap\\+gmail:.*" >>

Re: IMAP Sending Issue with Multiple Accounts

2024-09-05 Thread Björn Bidar
Serghei Iakovlev via "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)" writes: > Hi Leo, > > I think I’ve already tried something similar to what you’re > suggesting. I even experimented with a specialized hook. Here’s a > cleaned-up version of my current setu

Re: IMAP Sending Issue with Multiple Accounts

2024-09-05 Thread Xiyue Deng
Serghei Iakovlev via "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)" writes: > Hi Leo, > > I think I’ve already tried something similar to what you’re > suggesting. I even experimented with a specialized hook. Here’s a > cleaned-up version of my current set

Re: IMAP Sending Issue with Multiple Accounts

2024-09-05 Thread Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
Hi Leo, I think I’ve already tried something similar to what you’re suggesting. I even experimented with a specialized hook. Here’s a cleaned-up version of my current setup: --8<-- separator >8-- (setq gnus-posting-styles `((".*" (sig

Re: IMAP Sending Issue with Multiple Accounts

2024-09-05 Thread Leo Butler
On Thu, Sep 05 2024, Serghei Iakovlev via "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)" wrote: > Hello everyone, > > I'm currently working on setting up Gnus for sending emails over IMAP > depending on which email account I'm using. I have two accounts: