all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#69479: 30.0.50; Attaching files to gnus fails
@ 2024-02-29 18:51 Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-02-29 21:09 ` Eric Abrahamsen
  0 siblings, 1 reply; 14+ messages in thread
From: Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-02-29 18:51 UTC (permalink / raw)
  To: 69479


If I attach a file to a mail, I get the following message:

smtpmail-send-it: Sending failed: 554 5.0.0 Error: failed to parse
message: failed to get content type for for child 1:mime: expected slash
after first token in response to .

This seems to happen regardless of attachment type, whether my init
was loaded or whether I'm using protonmail or gmx to send the mail.


In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, cairo version
 1.18.0) of 2024-02-08 built on Archlaptop
Repository revision: 08c81db7c8e522278fb2c8de8fbe556d109c135f
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101011
System Description: Arch Linux

Configured using:
 'configure --with-x-toolkit=no'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY
INOTIFY OLDXMENU PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  recentf-mode: t
  windmove-mode: t
  global-edit-server-edit-mode: t
  global-goto-address-mode: t
  goto-address-mode: t
  auto-insert-mode: t
  dynamic-completion-mode: t
  electric-pair-mode: t
  delete-selection-mode: t
  global-undo-tree-mode: t
  Info-breadcrumbs-in-mode-line-mode: t
  global-org-modern-mode: t
  fancy-compilation-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  all-the-icons-completion-mode: t
  global-aggressive-indent-mode: t
  org-roam-db-autosync-mode: t
  corfu-prescient-mode: t
  global-corfu-mode: t
  corfu-mode: t
  vertico-prescient-mode: t
  marginalia-mode: t
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  savehist-mode: t
  vertico-mode: t
  smart-mark-mode: t
  Daselt-mode: t
  straight-use-package-mode: t
  straight-package-neutering-mode: t
  override-global-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  global-prettify-symbols-mode: t
  tab-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  undelete-frame-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  global-visual-line-mode: t
  visual-line-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
~/.emacs.d/site-lisp/DEmacs/DEmacs-basic/add-tex-envs hides ~/.emacs.d/site-lisp/add-tex-envs
/home/alex/.emacs.d/straight/build/consult/consult hides /home/alex/.emacs.d/elpa/consult-20240223.1314/consult
/home/alex/.emacs.d/straight/build/consult/consult-xref hides /home/alex/.emacs.d/elpa/consult-20240223.1314/consult-xref
/home/alex/.emacs.d/straight/build/consult/consult-register hides /home/alex/.emacs.d/elpa/consult-20240223.1314/consult-register
/home/alex/.emacs.d/straight/build/consult/consult-org hides /home/alex/.emacs.d/elpa/consult-20240223.1314/consult-org
/home/alex/.emacs.d/straight/build/consult/consult-kmacro hides /home/alex/.emacs.d/elpa/consult-20240223.1314/consult-kmacro
/home/alex/.emacs.d/straight/build/consult/consult-info hides /home/alex/.emacs.d/elpa/consult-20240223.1314/consult-info
/home/alex/.emacs.d/straight/build/consult/consult-imenu hides /home/alex/.emacs.d/elpa/consult-20240223.1314/consult-imenu
/home/alex/.emacs.d/straight/build/consult/consult-flymake hides /home/alex/.emacs.d/elpa/consult-20240223.1314/consult-flymake
/home/alex/.emacs.d/straight/build/consult/consult-compile hides /home/alex/.emacs.d/elpa/consult-20240223.1314/consult-compile
/home/alex/.emacs.d/straight/build/consult/consult-autoloads hides /home/alex/.emacs.d/elpa/consult-20240223.1314/consult-autoloads
/home/alex/.emacs.d/elpa/org-projectile-helm-20230817.801/org-projectile-helm hides /home/alex/.emacs.d/elpa/org-projectile-20230817.851/org-projectile-helm
/home/alex/.emacs.d/straight/build/org-super-links/org-super-links hides /home/alex/.emacs.d/elpa/org-super-links-20200921.232404/org-super-links
/home/alex/.emacs.d/straight/build/org-super-links/org-super-links-org-rifle hides /home/alex/.emacs.d/elpa/org-super-links-20200921.232404/org-super-links-org-rifle
/home/alex/.emacs.d/straight/build/org-super-links/org-super-links-org-ql hides /home/alex/.emacs.d/elpa/org-super-links-20200921.232404/org-super-links-org-ql
/home/alex/.emacs.d/straight/build/org-super-links/org-super-links-autoloads hides /home/alex/.emacs.d/elpa/org-super-links-20200921.232404/org-super-links-autoloads
/home/alex/.emacs.d/straight/build/compat/compat hides /home/alex/.emacs.d/elpa/compat-29.1.4.4/compat
/home/alex/.emacs.d/straight/build/compat/compat-29 hides /home/alex/.emacs.d/elpa/compat-29.1.4.4/compat-29
/home/alex/.emacs.d/straight/build/compat/compat-28 hides /home/alex/.emacs.d/elpa/compat-29.1.4.4/compat-28
/home/alex/.emacs.d/straight/build/compat/compat-27 hides /home/alex/.emacs.d/elpa/compat-29.1.4.4/compat-27
/home/alex/.emacs.d/straight/build/compat/compat-26 hides /home/alex/.emacs.d/elpa/compat-29.1.4.4/compat-26
/home/alex/.emacs.d/straight/build/compat/compat-25 hides /home/alex/.emacs.d/elpa/compat-29.1.4.4/compat-25
/home/alex/.emacs.d/straight/build/compat/compat-autoloads hides /home/alex/.emacs.d/elpa/compat-29.1.4.4/compat-autoloads
/home/alex/.emacs.d/straight/build/compat/compat-macs hides /home/alex/.emacs.d/elpa/compat-29.1.4.4/compat-macs
/home/alex/.emacs.d/elpa/transient-20240221.1504/transient hides /usr/local/share/emacs/30.0.50/lisp/transient
/home/alex/.emacs.d/elpa/bind-key-20230203.2004/bind-key hides /usr/local/share/emacs/30.0.50/lisp/bind-key
/home/alex/.emacs.d/elpa/use-package-20230426.2324/use-package-lint hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-lint
/home/alex/.emacs.d/elpa/use-package-20230426.2324/use-package-jump hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-jump
/home/alex/.emacs.d/elpa/use-package-ensure-system-package-20221209.2013/use-package-ensure-system-package hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-ensure-system-package
/home/alex/.emacs.d/elpa/use-package-20230426.2324/use-package-ensure hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-ensure
/home/alex/.emacs.d/elpa/use-package-20230426.2324/use-package hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package
/home/alex/.emacs.d/elpa/use-package-20230426.2324/use-package-diminish hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-diminish
/home/alex/.emacs.d/elpa/use-package-20230426.2324/use-package-delight hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-delight
/home/alex/.emacs.d/elpa/use-package-20230426.2324/use-package-core hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-core
/home/alex/.emacs.d/elpa/use-package-20230426.2324/use-package-bind-key hides /usr/local/share/emacs/30.0.50/lisp/use-package/use-package-bind-key
/home/alex/.emacs.d/straight/build/seq/seq hides /usr/local/share/emacs/30.0.50/lisp/emacs-lisp/seq
~/.emacs.d/site-lisp/dired+ hides /home/alex/.emacs.d/site-lisp/icicles/dired+
/home/alex/.emacs.d/elpa/bookmark+-20230325.160624/bookmark+ hides /home/alex/.emacs.d/site-lisp/icicles/bookmark+
~/.emacs.d/site-lisp/Avy-act-on-Distance/avy-act-on-distance hides /home/alex/.emacs.d/site-lisp/DEmacs/avy-act-on-distance/avy-act-on-distance

Features:
(shadow emacsbug misearch multi-isearch smiley gnus-bcklg gnus-async
gnus-ml mailalias textsec uni-scripts idna-mapping ucs-normalize
uni-confusable textsec-check qp jka-compr sort gnus-cite mail-extr
nndraft nnmh nnmaildir nnfolder utf-7 network-stream gnus-agent
gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache vc-hg
vc-bzr tramp-cmds tramp-cache time-stamp tramp-sh vterm tramp trampver
tramp-integration files-x tramp-message tramp-compat tramp-loaddefs
face-remap term disp-table ehelp vterm-module term/xterm xterm
gptel-curl dabbrev cape-char cape vertico-directory mule-util cus-start
cus-load vc-git vc-dispatcher rainbow-delimiters smtpmail gnus-registry
registry gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr
pixel-fill kinsoku gnus-group gnus-undo gnus-start gnus-dbus dbus
gnus-cloud nnimap nnmail mail-source nnoo gnus-spec gnus-win gnus-int
gnus-range imap rfc2104 utf7 gnus nnheader range org-ref org-ref-core
openalex request org-ref-glossary org-ref-bibtex html-mode-expansions
sgml-mode facemenu doi-utils org-ref-utils org-ref-export citeproc
citeproc-itemgetters citeproc-biblatex citeproc-bibtex ol-bibtex
citeproc-cite citeproc-subbibs citeproc-sort citeproc-name
citeproc-formatters citeproc-number rst citeproc-proc citeproc-disamb
citeproc-itemdata citeproc-generic-elements citeproc-macro
citeproc-choose citeproc-date citeproc-context citeproc-prange
citeproc-style citeproc-locale citeproc-term citeproc-rt citeproc-lib
citeproc-s ox-org org-ref-misc-links org-ref-label-link
org-ref-ref-links org-ref-citation-links org-ref-bibliography-links
bibtex-completion parsebib f s recentf tree-widget windmove edit-server
epa-file goto-addr autoinsert completion elec-pair wc-mode delsel
undo-tree queue menu-bar+ misc-cmds rect bookmark+ bookmark+-key
bookmark+-bmu info+ fit-frame help-fns+ wid-edit+ help-fns radix-tree
bookmark+-lit pp+ dired-x crosshairs col-highlight vline hl-line+
bookmark+-1 thingatpt+ back-button nav-flash pulse smartrep forge-list
forge-commands forge-semi forge-bitbucket buck forge-gogs gogs
forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy
gsexp ghub url-http url-gw nsm url-auth gnutls forge-notify
forge-revnote forge-pullreq forge-issue forge-topic yaml parse-time
bug-reference forge-post markdown-mode forge-repo forge forge-core
forge-db closql yaml-mode-expansions yaml-mode org-modern
fancy-compilation font-utils unicode-fonts yasnippet elgrep async grep
wid-edit ztree ztree-diff ztree-diff-model ztree-dir ztree-view
ztree-protocol ztree-util dedicated auto-dictionary flyspell ispell
all-the-icons-completion all-the-icons-dired all-the-icons
all-the-icons-faces data-material data-weathericons data-octicons
data-fileicons data-faicons data-alltheicons gptel gptel-openai tabgo
tab-line avy dired-quick-sort hydra lv ls-lisp aggressive-indent
visible-mark ekg ewoc triples-upgrade triples-backups triples
org-roam-migrate org-roam-log org-roam-mode org-roam-capture org-roam-id
org-roam-node org-roam-db emacsql-sqlite-builtin sqlite org-roam-utils
org-roam-compat org-roam org-capture org-attach emacsql-sqlite
emacsql-sqlite-common emacsql emacsql-compiler biblio biblio-download
biblio-dissemin biblio-ieee biblio-hal biblio-dblp biblio-crossref
biblio-arxiv timezone biblio-doi biblio-core let-alist url-queue
url-file ido hl-line bibtex iso8601 kind-icon svg-lib svg dom xml
corfu-terminal popon corfu-prescient corfu vertico-prescient prescient
char-fold org-super-links consult-gh consult-gh-autoloads seq-autoloads
embark-consult consult magit-bookmark bookmark embark-org embark
marginalia orderless magit-submodule magit-blame magit-stash
magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone
magit-remote magit-commit magit-sequence magit-notes magit-worktree
magit-tag magit-merge magit-branch magit-reset magit-files magit-refs
magit-status magit magit-repos magit-apply magit-wip magit-log
which-func imenu magit-diff smerge-mode diff diff-mode git-commit
log-edit message sendmail yank-media puny rfc822 mml mml-sec epa epg
rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev
mail-utils gmm-utils mailheader pcvs-util add-log magit-core
magit-autorevert autorevert filenotify magit-margin magit-transient
magit-process with-editor shell server magit-mode transient magit-git
magit-base magit-section cursor-sensor crm persistent-soft list-utils
pcache eieio-base savehist finder-inf vertico-buffer vertico-mouse
vertico compat smartparens loadhist dash expand-region
text-mode-expansions the-org-mode-expansions er-basic-expansions
expand-region-core expand-region-custom easy-kill-extras
easy-kill-line-edge easy-kill-buffer easy-kill-to-char easy-kill
smart-mark use-package-ensure-system-package system-packages
org-roam-export ox-odt rng-loc rng-uri rng-parse rng-match rng-dt
rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex
ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox org-element
org-persist xdg org-id org-refile org ob ob-tangle ob-ref ob-lob
ob-table org-macro org-src ob-comint org-pcomplete pcomplete org-list
org-footnote org-faces org-entities time-date ob-emacs-lisp org-table
org-keys org-loaddefs cal-menu calendar cal-loaddefs avl-tree ol oc
ob-exp ob-core org-cycle org-fold org-fold-core org-compat ob-eval
org-version org-macs format-spec DEmacs DEmacs-cdlatex-bindings cdlatex
reftex reftex-loaddefs reftex-vars DEmacs-modes DEmacs-basic-modes
DEmacs-commands DEmacs-basic-commands DEmacs-variables
DEmacs-basic-variables DEmacs-keys DEmacs-functions DEmacs-basic-keys
DEmacs-basic-functions rebinder gnus-dired edmacro auto-install ffap
find-func dired dired-loaddefs straight-autoloads straight use-package
use-package-ensure use-package-delight use-package-diminish
use-package-bind-key bind-key use-package-core kmacro slime-fancy
slime-indentation slime-cl-indent cl-indent slime-trace-dialog
slime-fontifying-fu slime-package-fu slime-references
slime-compiler-notes-tree slime-scratch slime-presentations advice
bridge slime-macrostep macrostep slime-mdot-fu slime-enclosing-context
slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c
slime-editing-commands slime-autodoc slime-repl elp slime-parse slime
derived comp comp-cstr cl-extra help-mode warnings comp-run comp-common
rx easy-mmode lisp-mnt gud apropos compile text-property-search etags
fileloop generator xref project arc-mode archive-mode noutline outline
icons pp comint ansi-osc ansi-color ring hyperspec thingatpt
slime-autoloads desktop frameset icicles-install cl
sanityinc-tomorrow-bright-theme color-theme-sanityinc-tomorrow color
aggressive-indent-autoloads all-autoloads
all-the-icons-completion-autoloads all-the-icons-dired-autoloads
auctex-cluttex-autoloads auto-dictionary-autoloads back-button-autoloads
backup-walker-autoloads buffer-move-autoloads bug-hunter-autoloads
cape-autoloads cdlatex-autoloads citar-embark-autoloads
citar-org-roam-autoloads citar-autoloads
color-theme-sanityinc-tomorrow-autoloads consult-org-roam-autoloads
corfu-prescient-autoloads corfu-terminal-autoloads corfu-autoloads
crontab-mode-autoloads dedicated-autoloads default-text-scale-autoloads
deft-autoloads diminish-autoloads dream-theme-autoloads
easy-kill-extras-autoloads ekg-autoloads elgrep-autoloads
embark-consult-autoloads consult-autoloads embark-autoloads
emms-autoloads expand-region-autoloads fancy-compilation-autoloads
forge-autoloads closql-autoloads ghub-autoloads gptel-autoloads
helm-bibtex-autoloads bufler-autoloads burly-autoloads
helm-descbinds-autoloads helm-dictionary-autoloads helm-icons-autoloads
helm-swoop-autoloads kind-icon-autoloads latex-extra-autoloads
auctex-autoloads tex-site llm-autoloads marginalia-autoloads
markdown-mode-autoloads mood-line-autoloads helm-easymenu
log4e-autoloads nav-flash-autoloads orderless-autoloads
org-modern-autoloads org-msg-autoloads org-noter-autoloads
helm-autoloads helm-core-autoloads async-autoloads org-ref-autoloads
citeproc-autoloads htmlize-autoloads org-roam-bibtex-autoloads
bibtex-completion-autoloads biblio-autoloads biblio-core-autoloads
f-autoloads org-roam-ui-autoloads org-roam-autoloads emacsql-autoloads
org-super-links-autoloads ox-pandoc-autoloads parsebib-autoloads
perspective-autoloads popon-autoloads popup-autoloads
pretty-hydra-autoloads smart-mark-autoloads smartparens-autoloads
smartrep-autoloads smudge-autoloads speed-type-autoloads
string-inflection-autoloads svg-lib-autoloads tabgo-autoloads
tablist-autoloads telega-autoloads treemacs-all-the-icons-autoloads
all-the-icons-autoloads treemacs-icons-dired-autoloads
treemacs-magit-autoloads magit-autoloads pcase magit-section-autoloads
git-commit-autoloads transient-autoloads treemacs-persp-autoloads
persp-mode-autoloads treemacs-projectile-autoloads projectile-autoloads
treemacs-tab-bar-autoloads treemacs-autoloads treepy-autoloads
triples-autoloads try-autoloads unicode-fonts-autoloads
ucs-utils-autoloads font-utils-autoloads persistent-soft-autoloads
list-utils-autoloads pcache-autoloads
use-package-ensure-system-package-autoloads system-packages-autoloads
vertico-prescient-autoloads vertico-autoloads prescient-autoloads
visible-mark-autoloads visual-fill-column-autoloads vterm-autoloads
w3m-load w3m-autoloads wakib-keys-autoloads websocket-autoloads
wfnames-autoloads with-editor-autoloads compat-autoloads yaml-autoloads
yaml-mode-autoloads yasnippet-autoloads zotero-autoloads oauth-autoloads
info dash-autoloads ztree-autoloads package browse-url url url-proxy
url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x
map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt
fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode
register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads dbusbind inotify lcms2 dynamic-setting system-font-setting
font-render-setting cairo xinput2 x multi-tty move-toolbar
make-network-process native-compile emacs)

Memory information:
((conses 16 1794787 1295057) (symbols 48 85509 52) (strings 32 456401 149029)
 (string-bytes 1 15036125) (vectors 16 156502) (vector-slots 8 2721433 816804)
 (floats 8 1507 780) (intervals 56 16934 5805) (buffers 984 36))






^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#69479: 30.0.50; Attaching files to gnus fails
  2024-02-29 18:51 bug#69479: 30.0.50; Attaching files to gnus fails Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-02-29 21:09 ` Eric Abrahamsen
  2024-02-29 21:14   ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 14+ messages in thread
From: Eric Abrahamsen @ 2024-02-29 21:09 UTC (permalink / raw)
  To: 69479; +Cc: ahprae

Alexander Prähauser via "Bug reports for GNU Emacs, the Swiss army knife
of text editors" <bug-gnu-emacs@gnu.org> writes:

> If I attach a file to a mail, I get the following message:
>
> smtpmail-send-it: Sending failed: 554 5.0.0 Error: failed to parse
> message: failed to get content type for for child 1:mime: expected slash
> after first token in response to .
>
> This seems to happen regardless of attachment type, whether my init
> was loaded or whether I'm using protonmail or gmx to send the mail.

Can you show us an example MIME tag from an offending message? The
#part thing?

Thanks,
Eric





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#69479: 30.0.50; Attaching files to gnus fails
  2024-02-29 21:09 ` Eric Abrahamsen
@ 2024-02-29 21:14   ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-02-29 22:54     ` Eric Abrahamsen
  0 siblings, 1 reply; 14+ messages in thread
From: Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-02-29 21:14 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: 69479

#part type=#("text/plain" 0 10 (fontified nil)) filename="~/gdb.txt" disposition=inline description=gdb

I removed the end so it doesn't get parsed as an attachment.






^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#69479: 30.0.50; Attaching files to gnus fails
  2024-02-29 21:14   ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-02-29 22:54     ` Eric Abrahamsen
  2024-02-29 23:03       ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-02-29 23:03       ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 14+ messages in thread
From: Eric Abrahamsen @ 2024-02-29 22:54 UTC (permalink / raw)
  To: 69479; +Cc: ahprae

Alexander Prähauser via "Bug reports for GNU Emacs, the Swiss army knife
of text editors" <bug-gnu-emacs@gnu.org> writes:

> #part type=#("text/plain" 0 10 (fontified nil)) filename="~/gdb.txt" disposition=inline description=gdb
>
> I removed the end so it doesn't get parsed as an attachment.

Thanks. The content type attribute is a string with text properties
attached, I assume that's the source of the error. This is ringing a
faint bell. Can you tell me what command you're running to attach the
file to the message?





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#69479: 30.0.50; Attaching files to gnus fails
  2024-02-29 22:54     ` Eric Abrahamsen
@ 2024-02-29 23:03       ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-02-29 23:03       ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 14+ messages in thread
From: Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-02-29 23:03 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: 69479

C-c C-t, as usual.






^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#69479: 30.0.50; Attaching files to gnus fails
  2024-02-29 22:54     ` Eric Abrahamsen
  2024-02-29 23:03       ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-02-29 23:03       ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-02-29 23:18         ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-03-01  3:10         ` Eric Abrahamsen
  1 sibling, 2 replies; 14+ messages in thread
From: Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-02-29 23:03 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: 69479

C-c C-a, as usual.






^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#69479: 30.0.50; Attaching files to gnus fails
  2024-02-29 23:03       ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-02-29 23:18         ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-03-01  3:10         ` Eric Abrahamsen
  1 sibling, 0 replies; 14+ messages in thread
From: Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-02-29 23:18 UTC (permalink / raw)
  To: 69479; +Cc: eric, ahprae

Alexander Prähauser via "Bug reports for GNU Emacs, the Swiss army knife
of text editors" <bug-gnu-emacs@gnu.org> writes:

> C-c C-a, as usual.

The question is

> #part type=#("text/plain" 0 10 (fontified nil)) filename="~/gdb.txt"
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^    

why the C-c C-a prompt delivers a string with text properties attached
in your case.  This should not happen, and I can't reproduce this.  Are
you using any package for completion, have configured completion, or do
you have any idea why a call like

  (gnus-completing-read
   "Content type"
   (mailcap-mime-types)
   nil nil nil "application/octet-stream")

does not return a plain string for you?

Michael.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#69479: 30.0.50; Attaching files to gnus fails
  2024-02-29 23:03       ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-02-29 23:18         ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-03-01  3:10         ` Eric Abrahamsen
  2024-03-01 10:41           ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 14+ messages in thread
From: Eric Abrahamsen @ 2024-03-01  3:10 UTC (permalink / raw)
  To: 69479; +Cc: ahprae

Alexander Prähauser via "Bug reports for GNU Emacs, the Swiss army knife
of text editors" <bug-gnu-emacs@gnu.org> writes:

> C-c C-a, as usual.

What completion framework do you use? Crystal ball says icicles...





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#69479: 30.0.50; Attaching files to gnus fails
  2024-03-01  3:10         ` Eric Abrahamsen
@ 2024-03-01 10:41           ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-03-01 19:09             ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 14+ messages in thread
From: Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-03-01 10:41 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: 69479

"Eric Abrahamsen" <eric@ericabrahamsen.net> writes:

> Alexander Prähauser via "Bug reports for GNU Emacs, the Swiss army knife
> of text editors" <bug-gnu-emacs@gnu.org> writes:
>
>> C-c C-a, as usual.
>
> What completion framework do you use? Crystal ball says icicles...

No, Vertico, with Corfu for drop-down completion.






^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#69479: 30.0.50; Attaching files to gnus fails
  2024-03-01 10:41           ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-03-01 19:09             ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-03-01 20:15               ` Eric Abrahamsen
  0 siblings, 1 reply; 14+ messages in thread
From: Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-03-01 19:09 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: 69479

Alexander Prähauser <ahprae@protonmail.com> writes:

> "Eric Abrahamsen" <eric@ericabrahamsen.net> writes:
>
>> Alexander Prähauser via "Bug reports for GNU Emacs, the Swiss army knife
>> of text editors" <bug-gnu-emacs@gnu.org> writes:
>>
>>> C-c C-a, as usual.
>>
>> What completion framework do you use? Crystal ball says icicles...
>
> No, Vertico, with Corfu for drop-down completion.

Huh, it works if I disable Vertico. I'll file a bug report there.






^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#69479: 30.0.50; Attaching files to gnus fails
  2024-03-01 19:09             ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-03-01 20:15               ` Eric Abrahamsen
  2024-03-01 22:04                 ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 14+ messages in thread
From: Eric Abrahamsen @ 2024-03-01 20:15 UTC (permalink / raw)
  To: 69479; +Cc: Alexander Prähauser, 69479-done

Alexander Prähauser via "Bug reports for GNU Emacs, the Swiss army knife
of text editors" <bug-gnu-emacs@gnu.org> writes:

> Alexander Prähauser <ahprae@protonmail.com> writes:
>
>> "Eric Abrahamsen" <eric@ericabrahamsen.net> writes:
>>
>>> Alexander Prähauser via "Bug reports for GNU Emacs, the Swiss army knife
>>> of text editors" <bug-gnu-emacs@gnu.org> writes:
>>>
>>>> C-c C-a, as usual.
>>>
>>> What completion framework do you use? Crystal ball says icicles...
>>
>> No, Vertico, with Corfu for drop-down completion.
>
> Huh, it works if I disable Vertico. I'll file a bug report there.

Thanks, I'll watch that report. There are other guards in this area of
the code against completion frameworks returning propertized strings, so
it may be that we end up adding one here (or in `gnus-completing-read').
I don't actually know if there's an explicit contract saying completion
strings should not have properties, but in this case at least it looks
like leakage of something internal.

I'm going to close this report for now; please reopen if necessary.





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#69479: 30.0.50; Attaching files to gnus fails
  2024-03-01 20:15               ` Eric Abrahamsen
@ 2024-03-01 22:04                 ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-03-02  1:26                   ` Eric Abrahamsen
  2024-03-02  1:34                   ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 14+ messages in thread
From: Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-03-01 22:04 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: 69479, 69479-done

"Eric Abrahamsen" <eric@ericabrahamsen.net> writes:

> Alexander Prähauser via "Bug reports for GNU Emacs, the Swiss army knife
> of text editors" <bug-gnu-emacs@gnu.org> writes:
>
>> Alexander Prähauser <ahprae@protonmail.com> writes:
>>
>>> "Eric Abrahamsen" <eric@ericabrahamsen.net> writes:
>>>
>>>> Alexander Prähauser via "Bug reports for GNU Emacs, the Swiss army knife
>>>> of text editors" <bug-gnu-emacs@gnu.org> writes:
>>>>
>>>>> C-c C-a, as usual.
>>>>
>>>> What completion framework do you use? Crystal ball says icicles...
>>>
>>> No, Vertico, with Corfu for drop-down completion.
>>
>> Huh, it works if I disable Vertico. I'll file a bug report there.
>
> Thanks, I'll watch that report. There are other guards in this area of
> the code against completion frameworks returning propertized strings, so
> it may be that we end up adding one here (or in `gnus-completing-read').
> I don't actually know if there's an explicit contract saying completion
> strings should not have properties, but in this case at least it looks
> like leakage of something internal.
>
> I'm going to close this report for now; please reopen if necessary.

One more thing, I sent a report to Daniel Mendler and we found out that
the issue is that minibuffer-allow-text-properties was set to t by
something. He also wrote this:

"While I insist that it is a mistake to set minibuffer-allow-text-properties globally, I still wonder why Gnus uses propertized
candidates in the first place, in particular with a useless fontified=nil property. Ideally commands which pass propertized
candidates can also handle propertized return values. So maybe a guard could be added to Gnus, but I would rather
recommend to strip the properties properly before passing the candidates like text/plain to gnus-completing-read."






^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#69479: 30.0.50; Attaching files to gnus fails
  2024-03-01 22:04                 ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-03-02  1:26                   ` Eric Abrahamsen
  2024-03-02  1:34                   ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 14+ messages in thread
From: Eric Abrahamsen @ 2024-03-02  1:26 UTC (permalink / raw)
  To: 69479; +Cc: ahprae, 69479-done

Alexander Prähauser via "Bug reports for GNU Emacs, the Swiss army knife
of text editors" <bug-gnu-emacs@gnu.org> writes:

> "Eric Abrahamsen" <eric@ericabrahamsen.net> writes:
>
>> Alexander Prähauser via "Bug reports for GNU Emacs, the Swiss army knife
>> of text editors" <bug-gnu-emacs@gnu.org> writes:
>>
>>> Alexander Prähauser <ahprae@protonmail.com> writes:
>>>
>>>> "Eric Abrahamsen" <eric@ericabrahamsen.net> writes:
>>>>
>>>>> Alexander Prähauser via "Bug reports for GNU Emacs, the Swiss army knife
>>>>> of text editors" <bug-gnu-emacs@gnu.org> writes:
>>>>>
>>>>>> C-c C-a, as usual.
>>>>>
>>>>> What completion framework do you use? Crystal ball says icicles...
>>>>
>>>> No, Vertico, with Corfu for drop-down completion.
>>>
>>> Huh, it works if I disable Vertico. I'll file a bug report there.
>>
>> Thanks, I'll watch that report. There are other guards in this area of
>> the code against completion frameworks returning propertized strings, so
>> it may be that we end up adding one here (or in `gnus-completing-read').
>> I don't actually know if there's an explicit contract saying completion
>> strings should not have properties, but in this case at least it looks
>> like leakage of something internal.
>>
>> I'm going to close this report for now; please reopen if necessary.
>
> One more thing, I sent a report to Daniel Mendler and we found out that
> the issue is that minibuffer-allow-text-properties was set to t by
> something. He also wrote this:
>
> "While I insist that it is a mistake to set minibuffer-allow-text-properties globally, I still wonder why Gnus uses propertized
> candidates in the first place, in particular with a useless fontified=nil property. Ideally commands which pass propertized
> candidates can also handle propertized return values. So maybe a guard could be added to Gnus, but I would rather
> recommend to strip the properties properly before passing the candidates like text/plain to gnus-completing-read."

Yes, I saw that. I've looked through mml.el and mailcap.el, and don't
see anything that could be adding text properties to the list of
mailcap-mime-types. All the mimetypes are collected by the function
`mailcap-parse-mimetypes', which looks for a hardcoded list of files,
and parses any files that exist for potential mimetypes. Nothing in this
process add text properties to any of the strings.

If you run C-u M-: (mailcap-mime-types) in *scratch*, is everything
propertized or only some of the entries?





^ permalink raw reply	[flat|nested] 14+ messages in thread

* bug#69479: 30.0.50; Attaching files to gnus fails
  2024-03-01 22:04                 ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-03-02  1:26                   ` Eric Abrahamsen
@ 2024-03-02  1:34                   ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 14+ messages in thread
From: Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-03-02  1:34 UTC (permalink / raw)
  To: 69479; +Cc: eric, ahprae, 69479-done

> (from Mr. Mendler:)
> "While I insist that it is a mistake to set
> minibuffer-allow-text-properties globally, I still wonder why Gnus
> uses propertized candidates in the first place, in particular with a
> useless fontified=nil property.

I don't think this is the case.  I don't see Gnus using propertized
candidates.  I guess those properties are attached by something else
you (i.e. Alexander) are using.

With other words: one of your used addons attaches text properties to
the input, and you force Emacs to keep them for the return value (of the
completion function).

If this is all the case, this would be a quite extraordinary setup
crying for problems; you should try to fix this then on your side.

It could also be fixed in Gnus, but: I don't think Gnus is the only thing
that your setup breaks - so it's just easier to avoid the trouble.

Michael.





^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-03-02  1:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-29 18:51 bug#69479: 30.0.50; Attaching files to gnus fails Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-29 21:09 ` Eric Abrahamsen
2024-02-29 21:14   ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-29 22:54     ` Eric Abrahamsen
2024-02-29 23:03       ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-29 23:03       ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-29 23:18         ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-01  3:10         ` Eric Abrahamsen
2024-03-01 10:41           ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-01 19:09             ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-01 20:15               ` Eric Abrahamsen
2024-03-01 22:04                 ` Alexander Prähauser via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-02  1:26                   ` Eric Abrahamsen
2024-03-02  1:34                   ` Michael Heerdegen via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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.