Gnus development mailing list
 help / color / mirror / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: ding@gnus.org
Subject: anti top-posting gnus-article-outlook-rearrange-citation fails for gmail. II
Date: Tue, 30 Sep 2014 15:21:20 +0200	[thread overview]
Message-ID: <874mvp9rcf.fsf@mat.ucm.es> (raw)

Hello

I debuged the relevant functions and the problem is 
in the function 
gnus-outlook-repair-attribution-outlook 

I have attached it below.

To be more specific the problem lies in the call: 


re-search-forward

For example in top-posting generated by apple mail 

	     nil t) returns a number, say 700

While in top-posting generated by gmail 

	     nil t) returns nil

However when I sent my self a mail using gmail this does not happen so
I am really desperate.

So that is why the rearrangement does not work. I just don't understand
why it returns nil for some gmail messages

(defun gnus-outlook-repair-attribution-outlook ()  ;this function is the problem with google
  "Repair a broken attribution line (Outlook)."
  (let ((case-fold-search nil)
	(inhibit-read-only t)
	(cite-marks gnus-outlook-deuglify-cite-marks))
    (gnus-with-article-buffer
      (article-goto-body)
      (when (re-search-forward
	     (concat "^\\([^" cite-marks "].+\\)"
		     "\\(" gnus-outlook-deuglify-attrib-verb-regexp "\\)"
		     "\\(.*\n?[^\n" cite-marks "].*\\)?"
		     "\\(" gnus-outlook-deuglify-attrib-end-regexp "\\)$")
	     nil t)
       ^^^^^^^^
	(gnus-kill-all-overlays)
	(replace-match "\\1\\2\\4")
	(match-beginning 0)))))


Uwe Brauer 




             reply	other threads:[~2014-09-30 13:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-30 13:21 Uwe Brauer [this message]
2015-01-27  3:03 ` Lars Ingebrigtsen
     [not found]   ` <87wq3kpkir.fsf@mat.ucm.es>
2015-02-18  1:07     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874mvp9rcf.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).