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
e1fbc812
Commit
e1fbc812
authored
Jan 11, 2006
by
Bill Wohler
Browse files
(mh-x-image-url-cache-canonicalize): Use url-hexify-string to remove
special characters from filenames (closes SF #1396499).
parent
c2134792
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
lisp/mh-e/ChangeLog
lisp/mh-e/ChangeLog
+10
-1
lisp/mh-e/mh-utils.el
lisp/mh-e/mh-utils.el
+7
-3
No files found.
lisp/mh-e/ChangeLog
View file @
e1fbc812
2006-01-11 Bill Wohler <wohler@newt.com>
* mh-utils.el (mh-x-image-url-cache-canonicalize): Use
url-hexify-string to remove special characters from filenames
(closes SF #1396499). Note that this invalidates the existing
names in your cache so you might as well remove
~/Mail/.mhe-x-image-cache/* now.
2006-01-10 Bill Wohler <wohler@newt.com>
* mh-comp.el (mh-insert-letter): If you choose a different folder,
the cur message is used (closes SF #1205890).
the cur message is used. Sync docstring with manual (closes SF
#1205890).
* mh-mime.el (mh-compose-forward): Use standard range argument
instead of messages. Use more powerful mh-read-range instead of
...
...
lisp/mh-e/mh-utils.el
View file @
e1fbc812
...
...
@@ -1489,12 +1489,16 @@ path is generated."
(
defun
mh-x-image-url-cache-canonicalize
(
url
)
"Canonicalize URL.
Replace the ?/ character with a ?! character and append .png."
(
format
"%s/%s.png"
mh-x-image-cache-directory
Replace the ?/ character with a ?! character and append .png.
Also replaces special characters with `url-hexify-string' since
not all characters, such as :, are legal within Windows
filenames. See URL `http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp'."
(
format
"%s/%s.png"
mh-x-image-cache-directory
(
url-hexify-string
(
with-temp-buffer
(
insert
url
)
(
mh-replace-string
"/"
"!"
)
(
buffer-string
))))
(
buffer-string
))))
)
(
defun
mh-x-image-set-download-state
(
file
data
)
"Setup a symbolic link from FILE to DATA."
...
...
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