[neomutt-devel] neomutt NNTP and Active Directory usernames

Sirius sirius at trudheim.com
Sun Apr 7 14:45:26 CEST 2024


Hi there,

I would like to leverage neomutt's capabilities to connect to NNTP for
reviewing upstream kernel work. I am faced with a bit of a problem
however. I have a Synology NAS and that can run essentially Active
Directory via Samba - so I have that set up and running. Usernames for
this domain is of the type "user at domain" - and that works everywhere,
almost everywhere, I have used it.

Of the settings in .neomutt/neomuttrc I include here the ones that I think
are most pertinent.

set certificate_file='/home/sirius at trudheim.com/.neocerts'
set debug_file='~/.neomutt.debug'
set folder='/home/sirius at trudheim.com/Mail/'
set header_cache='/home/sirius at trudheim.com/.neomutt/headers/'
set mbox='/home/sirius at trudheim.com/mbox'
set message_cachedir='/home/sirius at trudheim.com/.neomutt/messages/'
set news_cache_dir='/home/sirius at trudheim.com/News/'
set newsrc='/home/sirius at trudheim.com/.newsrc'
set record='/home/sirius at trudheim.com/sent'
set spool_file='/home/sirius at trudheim.com/Mail/inbox'

However, despite setting these variables, when I run neomutt (and I tried
with latest GIT as of yesterday as well), I get a bunch of errors where it
can not write to disk. neomutt debug log:

[2024-04-06 20:40:24]<1> dlg_index() Got op OP_MAIN_CHANGE_GROUP (141)
[2024-04-06 20:40:24]<M> raw_socket_open() Looking up nntp.lore.kernel.org...
[2024-04-06 20:40:24]<M> raw_socket_open() Connecting to nntp.lore.kernel.org...
[2024-04-06 20:40:24]<2> mutt_socket_open() Connected to nntp.lore.kernel.org:119 on fd=7
[2024-04-06 20:40:25]<2> mutt_socket_readln_d() 7< 201 nntp.lore.kernel.org ready - post via email
[2024-04-06 20:40:25]<2> mutt_socket_write_d() 7> CAPABILITIES
[2024-04-06 20:40:25]<2> mutt_socket_readln_d() 7< 101 Capability list:
...
[2024-04-06 20:40:26]<2> mutt_socket_write_d() 7> STARTTLS [2024-04-06 20:40:26]<2> mutt_socket_readln_d() 7< 580 can not initiate TLS negotiation
[2024-04-06 20:40:26]<E> nntp_open_connection() STARTTLS: 580 can not initiate TLS negotiation
[2024-04-06 20:40:26]<2> mutt_socket_write_d() 7> STAT
[2024-04-06 20:40:26]<2> mutt_socket_readln_d() 7< 420 no current article has been selected
[2024-04-06 20:40:26]<2> mutt_socket_write_d() 7> LIST OVERVIEW.FMT
[2024-04-06 20:40:26]<2> mutt_socket_readln_d() 7< 215 information follows
[2024-04-06 20:40:26]<2> mutt_ch_iconv_open() iconv: adding utf-8 -> us-ascii to the cache
[2024-04-06 20:40:26]<E> nntp_select_server() Can't create /home/sirius_trudheim.com/News/news_nntp.lore.kernel.org: Permission denied
[2024-04-06 20:40:26]<2> nntp_newsrc_parse() File opened (fd=8): /home/sirius at trudheim.com/.newsrc

For some reason, it has replaced the '@' with '_' in the path. Is someone
able to explain to me where in the code this transposition might be
happening so I can attempt to hack up a fix (I was looking at the code
last night and did not know where to even begin), or if there is a patch I
can give a twirl. I know I could blunt-force this by creating a symlink in
/home, but I figure it is better to get this looked at by the
professionals. :)

I built neomutt with './configure --gnutls --gpgme --gss --gsasl --tokyocabinet'
if that matters.

-- 
Kind regards,

/S


More information about the neomutt-devel mailing list