Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
03c673c9
Commit
03c673c9
authored
May 18, 2008
by
Miles Bader
Browse files
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1168
parent
a019dc40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
7 deletions
+27
-7
lisp/gnus/ChangeLog
lisp/gnus/ChangeLog
+8
-0
lisp/gnus/message.el
lisp/gnus/message.el
+12
-2
lisp/gnus/mml.el
lisp/gnus/mml.el
+7
-5
No files found.
lisp/gnus/ChangeLog
View file @
03c673c9
2008-05-16 Reiner Steib <Reiner.Steib@gmx.de>
* mml.el (mml-attach-buffer): Prompt for `disposition'.
* message.el (message-bogus-address-regexp): Fix and improve custom
type.
(message-setup-hook): Add message-check-recipients as custom option.
2008-05-15 Reiner Steib <Reiner.Steib@gmx.de>
* message.el (message-cite-function): Remove bogus autoload which crept
...
...
lisp/gnus/message.el
View file @
03c673c9
...
...
@@ -4064,7 +4064,15 @@ not have PROP."
"Regexp of potentially bogus mail addresses."
:version "23.1" ;; No Gnus
:group 'message-headers
:type 'regexp)
:type '(choice (const :tag "None" nil)
(repeat :value-to-internal (lambda (widget value)
(custom-split-regexp-maybe value))
:match (lambda (widget value)
(or (stringp value)
(widget-editable-list-match widget value)))
regexp)
(const "noreply\\|nospam\\|invalid")
regexp))
(defun message-fix-before-sending ()
"Do various things to make the message nice before sending it."
...
...
@@ -4150,7 +4158,7 @@ not have PROP."
(forward-char)
(skip-chars-forward mm-7bit-chars)))))
(message-check 'bogus-recipient
;; Warn before
composing or
sending a mail to an invalid address.
;; Warn before sending a mail to an invalid address.
(message-check-recipients)))
(defun message-bogus-recipient-p (recipients)
...
...
@@ -4197,6 +4205,8 @@ This function could be useful in `message-setup-hook'."
"Address `%s' might be bogus. Continue? " bog)))
(error "Bogus address."))))))))
(custom-add-option 'message-setup-hook 'message-check-recipients)
(defun message-add-action (action &rest types)
"Add ACTION to be performed when doing an exit of type TYPES."
(while types
...
...
lisp/gnus/mml.el
View file @
03c673c9
...
...
@@ -1313,18 +1313,20 @@ Ask for type, description or disposition according to
(
setq
disposition
(
mml-minibuffer-read-disposition
type
nil
file
)))
(
mml-attach-file
file
type
description
disposition
)))))
(
defun
mml-attach-buffer
(
buffer
&optional
type
description
)
(
defun
mml-attach-buffer
(
buffer
&optional
type
description
disposition
)
"Attach a buffer to the outgoing MIME message.
See `mml-attach-file' for details of operation."
BUFFER is the name of the buffer to attach. See
`mml-attach-file' for details of operation."
(
interactive
(
let*
((
buffer
(
read-buffer
"Attach buffer: "
))
(
type
(
mml-minibuffer-read-type
buffer
"text/plain"
))
(
description
(
mml-minibuffer-read-description
)))
(
list
buffer
type
description
)))
(
description
(
mml-minibuffer-read-description
))
(
disposition
(
mml-minibuffer-read-disposition
type
nil
)))
(
list
buffer
type
description
disposition
)))
(
save-excursion
(
unless
(
message-in-body-p
)
(
goto-char
(
point-max
)))
(
mml-insert-empty-tag
'part
'type
type
'buffer
buffer
'disposition
"attachment"
'disposition
disposition
'description
description
)))
(
defun
mml-attach-external
(
file
&optional
type
description
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment