[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-mime 3facf18272 2/5: only match attachment tag
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-mime 3facf18272 2/5: only match attachment tag |
Date: |
Sat, 5 Feb 2022 06:58:36 -0500 (EST) |
branch: elpa/org-mime
commit 3facf18272d0a72edec5a21bbb2111203af90da0
Author: Chen Bin <chenbin.sh@gmail.com>
Commit: Chen Bin <chenbin.sh@gmail.com>
only match attachment tag
---
org-mime.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/org-mime.el b/org-mime.el
index bd9a24ab3a..1e1482ad17 100644
--- a/org-mime.el
+++ b/org-mime.el
@@ -6,7 +6,7 @@
;; Maintainer: Chen Bin (redguardtoo)
;; Keywords: mime, mail, email, html
;; Homepage: http://github.com/org-mime/org-mime
-;; Version: 0.2.4
+;; Version: 0.2.5
;; Package-Requires: ((emacs "25.1"))
;; This file is not part of GNU Emacs.
@@ -494,7 +494,7 @@ CURRENT-FILE is used to calculate full path of images."
e
(old-pos (point)))
(goto-char (point-min))
- (while (re-search-forward "<#secure \\|<#part " (point-max) t)
+ (while (re-search-forward "<#secure \\|<#part .* filename=" (point-max)
t)
(setq str (match-string 0))
(setq b (match-beginning 0))
(cond
@@ -504,7 +504,7 @@ CURRENT-FILE is used to calculate full path of images."
(org-mime-extract-tag-in-current-buffer b e secure-tags))
;; multi-lines attachment
- ((string-match "^<#part " str)
+ ((string-match "^<#part .* filename=" str)
(save-excursion
(unless (re-search-forward "<#/part>" (point-max) t)
(error (format "\"%s\" should have end tag." str)))