bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[solved]: Re: messages with international Unicode E-mail addresses


From: Jean Louis
Subject: [solved]: Re: messages with international Unicode E-mail addresses
Date: Sat, 26 Jun 2021 17:22:42 +0300
User-agent: Mutt/2.0.7+183 (3d24855) (2021-05-28)

That was definitely the problem. I have improved the function and now
I do not see rejection problem.

It means servers are giving wrong information about email addresses
while the real problem is with file names.

(defun rcd-mailutils-mail-files (files)
  "Return list with \"mail\" program arguments for file attachments."
  (cond ((stringp files) (when (and (not (seq-empty-p files)) 
                                  (file-readable-p files))
                             (list "--content-filename" (rcd-rfc2047-encode 
(file-name-nondirectory files)) "--content-type" (rcd-mime-type files t) "-A" 
files)))
        ((listp files) (let (list)
                         (while files
                           (let ((file (pop files)))
                             (when (and (not (seq-empty-p file)) 
                                        (file-readable-p file))
                               (push file list)
                               (push "-A" list)
                               (push (rcd-mime-type file t) list)
                               (push "--content-type" list)
                               (push (rcd-rfc2047-encode 
(file-name-nondirectory file)) list)
                               (push "--content-filename" list))))
                         list))))



Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]