branch: elpa/org-mime
commit b129579986a388ed07e3c5415d0af9fdc04ad036
Author: Çağlar Girit <[email protected]>
Commit: Çağlar Girit <[email protected]>
Regexp search for sig sep
---
org-mime.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/org-mime.el b/org-mime.el
index 8f46516400..2f30088a63 100644
--- a/org-mime.el
+++ b/org-mime.el
@@ -166,7 +166,7 @@ Default (nil) selects the original org-mode file."
:group 'org-mime
:type 'sexp)
-(defcustom org-mime-mail-signature-separator "--"
+(defcustom org-mime-mail-signature-separator "^--"
"Default mail signature separator."
:group 'org-mime
:type 'string)
@@ -451,7 +451,7 @@ CURRENT-FILE is used to calculate full path of images."
"Find start of signature line in email."
(save-excursion
(goto-char (point-max))
- (search-backward org-mime-mail-signature-separator nil t nil)))
+ (re-search-backward org-mime-mail-signature-separator nil t nil)))
;;;###autoload
(defun org-mime-htmlize ()