Gnus development mailing list
 help / color / mirror / Atom feed
* hack of .overview files
@ 1998-03-03 15:59 Mark Moll
  1998-03-03 16:04 ` Stefan Waldherr
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Mark Moll @ 1998-03-03 15:59 UTC (permalink / raw)


If I am the sender of a message, I'd rather see the recipient than my own
name in the summary. That's how I used to have it configured with VM and MH.
With USENET news that's kinda hard to do, but mail .overview files can be
hacked. That's exactly what I did; a quick and dirty hack:

> diff -c nnheader.el.orig nnheader.el
*** nnheader.el.orig     Sun Mar  1 10:25:55 1998
--- nnheader.el Tue Mar  3 10:49:39 1998
***************
*** 205,212 ****
           ;; From.
           (progn
             (goto-char p)
!            (if (search-forward "\nfrom: " nil t)
!                (nnheader-header-value) "(nobody)"))
           ;; Date.
           (progn
             (goto-char p)
--- 205,219 ----
           ;; From.
           (progn
             (goto-char p)
!            (cond ((string-match (user-full-name)
!                                 (if (search-forward "\nfrom: " nil t)
!                                     (nnheader-header-value) "(nobody)"))
!                   (goto-char p)
!                   (if (search-forward "\nto: " nil t)
!                       (concat "To:" (nnheader-header-value)) "To:(nobody)"))
!                  (t (goto-char p)
!                     (if (search-forward "\nfrom: " nil t)
!                         (nnheader-header-value) "(nobody)"))))
           ;; Date.
           (progn
             (goto-char p)

(I know the "from" header should only be checked once, but I am a total
elisp illiterate.) Is there any reason why this is a bad idea? If not, is it
worth making this behavior an option?

-- 
Mark Moll    


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1998-03-07 12:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-03 15:59 hack of .overview files Mark Moll
1998-03-03 16:04 ` Stefan Waldherr
1998-03-03 16:42 ` Wes Hardaker
1998-03-03 17:37 ` Per Abrahamsen
1998-03-03 19:55 ` hack of .overview files [take 2] Mark Moll
1998-03-04 11:16   ` Per Abrahamsen
1998-03-05 11:20     ` threading emails (Was: hack of .overview...) Steinar Bang
1998-03-05 13:07       ` Per Abrahamsen
1998-03-07 12:59     ` hack of .overview files [take 2] Lars Magne Ingebrigtsen

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).