IMAP Sending Issue with Multiple Accounts

2024-09-05 Thread Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader (in English)
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: ProtonMail and Gmail. Receiving emails works fine for both, but I'm struggling with sending. Here's the error I encounter in the *Messages* buffe

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:

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 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 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 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 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 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)
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 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)
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: > 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 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: gnus & mbsync: mbsync error: UID is beyond highest assigned UID & mu4e's mu4e-change-filenames-when-moving

2024-09-05 Thread Andreas Reuleaux
Thanks for your various suggestions (of simplifying my gnus config) - I will look into them in more detail, when I find the time. - This my gnus config has grown with me over the years, and it reflects the state of gnus at the time when I started it (the nnimap interface was better supported than s