Gnus development mailing list
 help / color / mirror / Atom feed
* vcards in pgnus, kind of
@ 1999-01-23 15:05 Andrew J Cosgriff
  1999-01-23 15:49 ` Lars Magne Ingebrigtsen
  1999-01-23 15:57 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 12+ messages in thread
From: Andrew J Cosgriff @ 1999-01-23 15:05 UTC (permalink / raw)



If you've got vcard.el[1] handy, this'll let you view people's vcard
thangs inline in PGnus.

However, I'm sure there's a better way of adding it all in, and Lars
dude, how do I make it automatically show the part (as opposed to
having to go and click on it first) ?  I kinda thought
mm-user-automatic-display was for this, but it didn't seem to be the
case...

--- mm-decode.el.dist	Sun Jan 24 00:58:50 1999
+++ mm-decode.el	Sun Jan 24 01:10:40 1999
@@ -81,6 +81,7 @@
     ("text/enriched" mm-inline-text t)
     ("text/richtext" mm-inline-text t)
     ("text/html" mm-inline-text (locate-library "w3"))
+    ("text/x-vcard" mm-inline-text (locate-library "vcard"))
     ("message/delivery-status" mm-inline-text t)
     ("text/.*" mm-inline-text t)
     ("audio/wav" mm-inline-audio
@@ -100,8 +101,8 @@
     ("message/delivery-status" . inline)))
 
 (defvar mm-user-automatic-display
-  '("text/plain" "text/enriched" "text/richtext" "text/html" 
-    "image/.*" "message/delivery-status" "multipart/.*"))
+  '("text/plain" "text/enriched" "text/richtext" "text/html"
+  "text/x-vcard" "image/.*" "message/delivery-status" "multipart/.*"))
 
 (defvar mm-user-automatic-external-display nil
   "List of MIME type regexps that will be displayed externally automatically.")

--- mm-view.el.dist	Sun Jan 24 00:59:12 1999
+++ mm-view.el	Sun Jan 24 01:20:13 1999
@@ -86,6 +86,8 @@
 	    (enriched-decode (point-min) (point-max))
 	    (setq text (buffer-string)))))
       (mm-insert-inline handle text))
+     ((equal type "x-vcard")
+      (mm-insert-inline handle (vcard-format-string (vcard-parse-string (mm-get-part handle) 'vcard-standard-filter))))
      (t
       (setq text (mm-get-part handle))
       (let ((b (point))


Enjoy,
 Andrew


Footnotes: 
[1]  http://www.splode.com/users/friedman/software/emacs-lisp/#vcard

-- 
Andrew J Cosgriff <ajc@bing.wattle.id.au> exterminate all rational thought !
                  princess tunnel deconstruction sun neocortex


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

* Re: vcards in pgnus, kind of
  1999-01-23 15:05 vcards in pgnus, kind of Andrew J Cosgriff
@ 1999-01-23 15:49 ` Lars Magne Ingebrigtsen
  1999-01-23 15:51   ` Michael Cook
  1999-01-23 15:57 ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-01-23 15:49 UTC (permalink / raw)


Andrew J Cosgriff <ajc@bing.wattle.id.au> writes:

> If you've got vcard.el[1] handy, this'll let you view people's vcard
> thangs inline in PGnus.

Thanks for the patch; I've applied it to Pterodactyl Gnus v0.74.

> However, I'm sure there's a better way of adding it all in, and Lars
> dude, how do I make it automatically show the part (as opposed to
> having to go and click on it first) ?  I kinda thought
> mm-user-automatic-display was for this, 

I thought so, too...

> but it didn't seem to be the case...

I'll look into it.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: vcards in pgnus, kind of
  1999-01-23 15:49 ` Lars Magne Ingebrigtsen
@ 1999-01-23 15:51   ` Michael Cook
  1999-01-23 16:00     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Cook @ 1999-01-23 15:51 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> > If you've got vcard.el[1] handy, this'll let you view people's vcard
> > thangs inline in PGnus.
> 
> Thanks for the patch; I've applied it to Pterodactyl Gnus v0.74.

Cool.
Will vcard.el become part of the gnus distribution?


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

* Re: vcards in pgnus, kind of
  1999-01-23 15:05 vcards in pgnus, kind of Andrew J Cosgriff
  1999-01-23 15:49 ` Lars Magne Ingebrigtsen
@ 1999-01-23 15:57 ` Lars Magne Ingebrigtsen
  1999-01-24  6:29   ` Andrew J Cosgriff
  1999-01-25  8:37   ` Steinar Bang
  1 sibling, 2 replies; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-01-23 15:57 UTC (permalink / raw)


Andrew J Cosgriff <ajc@bing.wattle.id.au> writes:

> I kinda thought mm-user-automatic-display was for this, but it
> didn't seem to be the case...

It does seem to do it, but since most vcards are marked as
attachments, they aren't displayed automatically.  How annoying.  Or
not. 

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: vcards in pgnus, kind of
  1999-01-23 15:51   ` Michael Cook
@ 1999-01-23 16:00     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-01-23 16:00 UTC (permalink / raw)


Michael Cook <cook@sightpath.com> writes:

> Will vcard.el become part of the gnus distribution?

Nope.  But I do think it should be included in the Emacs
distribution.  It does render the vcards is a most pleasing manner. 

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: vcards in pgnus, kind of
  1999-01-23 15:57 ` Lars Magne Ingebrigtsen
@ 1999-01-24  6:29   ` Andrew J Cosgriff
  1999-01-24  6:45     ` Lars Magne Ingebrigtsen
  1999-01-25  8:37   ` Steinar Bang
  1 sibling, 1 reply; 12+ messages in thread
From: Andrew J Cosgriff @ 1999-01-24  6:29 UTC (permalink / raw)



>>>>> "lmi" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>>>>> "ajc" == Andrew J Cosgriff <ajc@bing.wattle.id.au> writes:

ajc> I kinda thought mm-user-automatic-display was for this, but it
ajc> didn't seem to be the case...

lmi> It does seem to do it, but since most vcards are marked as
lmi> attachments, they aren't displayed automatically.  How annoying.
lmi> Or not.

Oh well.  I'll live :P

BTW, you'll probably want to mention somewhere in documentation-land
that one needs to (require 'vcard) before the code will work. etc.

-- 
Andrew J Cosgriff <ajc@bing.wattle.id.au> exterminate all rational thought !
                    moodswing journey corporation text black
.



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

* Re: vcards in pgnus, kind of
  1999-01-24  6:29   ` Andrew J Cosgriff
@ 1999-01-24  6:45     ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-01-24  6:45 UTC (permalink / raw)


Andrew J Cosgriff <ajc@bing.wattle.id.au> writes:

> BTW, you'll probably want to mention somewhere in documentation-land
> that one needs to (require 'vcard) before the code will work. etc.

No -- I've autoloaded the vcard functions.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: vcards in pgnus, kind of
  1999-01-23 15:57 ` Lars Magne Ingebrigtsen
  1999-01-24  6:29   ` Andrew J Cosgriff
@ 1999-01-25  8:37   ` Steinar Bang
  1999-01-25 11:11     ` Lars Magne Ingebrigtsen
  1999-01-26 20:25     ` Jack Vinson
  1 sibling, 2 replies; 12+ messages in thread
From: Steinar Bang @ 1999-01-25  8:37 UTC (permalink / raw)


>>>>> Lars Magne Ingebrigtsen <larsi@gnus.org>:

> Andrew J Cosgriff <ajc@bing.wattle.id.au> writes:
>> I kinda thought mm-user-automatic-display was for this, but it
>> didn't seem to be the case...

> It does seem to do it, but since most vcards are marked as
> attachments, they aren't displayed automatically.  How annoying.  Or
> not. 

Hm... it should be possible to override content-disposition based on
content-type for display, I think.

We can't change all the broken MUAs out there, so we might as well try 
to make things as visually pleasing for ourselves as we can.

That's why something like vcard.el exists in the first place,
innit...? 


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

* Re: vcards in pgnus, kind of
  1999-01-25  8:37   ` Steinar Bang
@ 1999-01-25 11:11     ` Lars Magne Ingebrigtsen
  1999-01-26 20:25     ` Jack Vinson
  1 sibling, 0 replies; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-01-25 11:11 UTC (permalink / raw)


Steinar Bang <sb@metis.no> writes:

> Hm... it should be possible to override content-disposition based on
> content-type for display, I think.

Yes; this is in 0.73.  `mm-attachment-override-types'.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

* Re: vcards in pgnus, kind of
  1999-01-25  8:37   ` Steinar Bang
  1999-01-25 11:11     ` Lars Magne Ingebrigtsen
@ 1999-01-26 20:25     ` Jack Vinson
  1999-01-26 21:13       ` Andrew J Cosgriff
  1999-01-27  5:10       ` Lars Magne Ingebrigtsen
  1 sibling, 2 replies; 12+ messages in thread
From: Jack Vinson @ 1999-01-26 20:25 UTC (permalink / raw)


>>>>> "SB" == Steinar Bang <sb@metis.no> writes:

SB> We can't change all the broken MUAs out there, so we might as well try 
SB> to make things as visually pleasing for ourselves as we can.

SB> That's why something like vcard.el exists in the first place,
SB> innit...? 

Speaking of which, has anyone else observed MUA's that attach vcards as
MIME without MIME-ifying the rest of the message?  I've had at least one
message that was only a button to look at the person's vcard.  According to
the message header it came from MSIE (or was it Netscape?), but when I sent
myself a vcard message from that program it worked correctly.  Odd.

Now, will someone kindly mention where to find vcard.el?

-- 
Jack Vinson <jvinson@chevax.ecs.umass.edu>    http://www.cis.upenn.edu/~vinson/
Zippy: Yow!



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

* Re: vcards in pgnus, kind of
  1999-01-26 20:25     ` Jack Vinson
@ 1999-01-26 21:13       ` Andrew J Cosgriff
  1999-01-27  5:10       ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 12+ messages in thread
From: Andrew J Cosgriff @ 1999-01-26 21:13 UTC (permalink / raw)



>>>>> "Jack" == Jack Vinson <jvinson@chevax.ecs.umass.edu> writes:

Jack> Now, will someone kindly mention where to find vcard.el?

http://www.splode.com/users/friedman/software/emacs-lisp/#vcard

-- 
Andrew J Cosgriff <ajc@bing.wattle.id.au> exterminate all rational thought !
                      ready gold five redemption caffeine
.



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

* Re: vcards in pgnus, kind of
  1999-01-26 20:25     ` Jack Vinson
  1999-01-26 21:13       ` Andrew J Cosgriff
@ 1999-01-27  5:10       ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-01-27  5:10 UTC (permalink / raw)


Jack Vinson <jvinson@chevax.ecs.umass.edu> writes:

> Speaking of which, has anyone else observed MUA's that attach vcards as
> MIME without MIME-ifying the rest of the message?

Nope.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

end of thread, other threads:[~1999-01-27  5:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-23 15:05 vcards in pgnus, kind of Andrew J Cosgriff
1999-01-23 15:49 ` Lars Magne Ingebrigtsen
1999-01-23 15:51   ` Michael Cook
1999-01-23 16:00     ` Lars Magne Ingebrigtsen
1999-01-23 15:57 ` Lars Magne Ingebrigtsen
1999-01-24  6:29   ` Andrew J Cosgriff
1999-01-24  6:45     ` Lars Magne Ingebrigtsen
1999-01-25  8:37   ` Steinar Bang
1999-01-25 11:11     ` Lars Magne Ingebrigtsen
1999-01-26 20:25     ` Jack Vinson
1999-01-26 21:13       ` Andrew J Cosgriff
1999-01-27  5:10       ` 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).