* Attaching notes to messages
@ 1999-10-10 14:58 Hannu Koivisto
1999-10-09 16:36 ` François Pinard
1999-10-10 18:53 ` Harry Putnam
0 siblings, 2 replies; 11+ messages in thread
From: Hannu Koivisto @ 1999-10-10 14:58 UTC (permalink / raw)
Greetings,
Has anyone thought about or, even better, implemented some way of
attaching arbitrary notes to messages? Many times I mark some
messages with important URLs or other information persistent and
ticked, but usually their subjects don't give any indication of the
reason why I saved them, so I can't later find them just by
interactively searching for something in the summary buffer.
Built-in full-text regexp search or using some external indexing
engine may help in some cases, but not always. The reason why I
saved the article may not show from its contents or headers and my
brains associate information based on this kind of reasons. So,
after I've read some article that I consider worth saving, I'd like
to press some key that would, for the speed's sake, do `*', `!'/`?'
and open a buffer for notes that I can then write about the
article. These attached notes should be searchable so that if a
match is found, one could get to the article they are attached to.
--
Hannu
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Attaching notes to messages
1999-10-10 14:58 Attaching notes to messages Hannu Koivisto
@ 1999-10-09 16:36 ` François Pinard
[not found] ` <wtn1zb3rnq1.fsf@licia.dtek.chalmers.se>
1999-10-10 18:53 ` Harry Putnam
1 sibling, 1 reply; 11+ messages in thread
From: François Pinard @ 1999-10-09 16:36 UTC (permalink / raw)
Cc: ding
Hannu Koivisto <azure@iki.fi> writes:
> Has anyone thought about or, even better, implemented some way of
> attaching arbitrary notes to messages?
I usually edit my notes within the messages themselves. I do this really
all the time, and I suspect I may be the "biggest" message editor of the
whole `ding' list :-). One very usual problem for me is that some backends
just do not allow message editing.
But your suggestion is quite enlightening, in that if Gnus was offering
ways to add not only annotations, but _also_ hide parts of any message,
or even have some per-message washing options, all of this without
touching the originals, maybe my need to edit all the time would decrease
dramatically, and I would be glad being able to ask Gnus to recover the
original unedited/unannotated message.
I guess that all these annotations should be taken under consideration while
preparing the quoted contents of a reply to a message, unless one first
visited the message without annotations, something that should be possible.
Expiry, moving, searching, and other things handling articles would have
to cope with annotations as well. So, despite the capability might be
very attractive (for me at least), it also means non-negligible work in
Gnus internals -- it might be a major undertaking.
--
François Pinard http://www.iro.umontreal.ca/~pinard
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Attaching notes to messages
1999-10-10 14:58 Attaching notes to messages Hannu Koivisto
1999-10-09 16:36 ` François Pinard
@ 1999-10-10 18:53 ` Harry Putnam
1999-10-10 23:29 ` Hannu Koivisto
1 sibling, 1 reply; 11+ messages in thread
From: Harry Putnam @ 1999-10-10 18:53 UTC (permalink / raw)
Hannu Koivisto <azure@iki.fi> writes:
> Greetings,
>
> Has anyone thought about or, even better, implemented some way of
> attaching arbitrary notes to messages? Many times I mark some
> messages with important URLs or other information persistent and
> ticked, but usually their subjects don't give any indication of the
> reason why I saved them, so I can't later find them just by
> interactively searching for something in the summary buffer.
This may be too amateurish for what you are after but it is a method
I've used for some time on groups where 'gnus-edit-article' is
allowed.
Editing is also possibe in News groups with `C-u e'
Add a "Keywords:" header where you can put brief comments or single
words that will allow you to grep that topic later.
(G for gnus)
Keywords: $TOPIC edit articles attach notes annotate messages
Where $TOPIC is a few characters.
You can then easily scan the "Keywords" lines with grep or rgrep,
or get a file number to use in gnus summary buffer with "j".
rgrep -r "^Keywords: $TOPIC" ~/Mail
To see all keyword lines for that topic.
A more developed method is possible esp. if you don't care to save
the original form. But even if you do, below should be getting close
to what you describe.
I have code pieced together with help from Kai and Lars (the
botchiness is all mine) That allows the user to save an edited message
from any gnus editing mode to any group with a few key strokes. And
leaves the original in place untouched.
It also allows a way to do this:
Press "F" or "R" on a message you wish to keep and annotate
Type in your annotation between [] or similar, then save that portion
to file with M-x save-to-file.
Remove the annotation with C-w then attach it with 'C-c a'
Save the Message plus attachment (to desired group) with the code I
mentioned above then kill the edit buffer.
The result of all this is an annotation attached to a copy of original
message, saved in a special group. While leaving the original message
untouched in its group.
I'll post the code on a web site or here if you'd like to see if its
useful to you.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Attaching notes to messages
1999-10-10 18:53 ` Harry Putnam
@ 1999-10-10 23:29 ` Hannu Koivisto
1999-10-11 0:15 ` Harry Putnam
0 siblings, 1 reply; 11+ messages in thread
From: Hannu Koivisto @ 1999-10-10 23:29 UTC (permalink / raw)
Harry Putnam <reader@newsguy.com> writes:
| Editing is also possibe in News groups with `C-u e'
Hmm, what exactly happens in this case? Does the article get saved
to a local disk like in the case of marking it persistent?
| I have code pieced together with help from Kai and Lars (the
| botchiness is all mine) That allows the user to save an edited message
| from any gnus editing mode to any group with a few key strokes. And
| leaves the original in place untouched.
|
| It also allows a way to do this:
|
| Press "F" or "R" on a message you wish to keep and annotate
|
| Type in your annotation between [] or similar, then save that portion
| to file with M-x save-to-file.
|
| Remove the annotation with C-w then attach it with 'C-c a'
Are these SAVE-TO-FILE and `C-c a' things part of your code? I
can't see the connection and, on the other hand, they are not
default stuff.
| Save the Message plus attachment (to desired group) with the code I
| mentioned above then kill the edit buffer.
|
| The result of all this is an annotation attached to a copy of original
| message, saved in a special group. While leaving the original message
| untouched in its group.
As far as I can see, this doesn't provide any way to get to the
annotation from the message...
| I'll post the code on a web site or here if you'd like to see if its
| useful to you.
...so I don't think so. What you suggested first and what Jonas
Steverund also suggested, i.e. editing the message and adding some
`X-Gnus-Annotation: foob' line, might be considerable, but first I
want to know what happens to by-force -edited news articles.
Although it still feels a bit hacky, I think this sounds the best
way to go at least if I manage to wrap up some functions to ease
using it. Oh well, one can't get everything.
-- Warning! Dont continue further; what follows is just
venting of my manic-depressive mind
What I really would like to do is to write a annotated-article
mixin class for article class and put slots for it for special
information and one for arbitrary text and be done with it (well,
of course I'd have add method to article display protocol too to
make Gnus display notes on a separate window along the actual
article and perhaps to printing protocol to make Gnus print these
annotations with the article). I would not have to take care of
ugly saving details based on whether some backend by default stores
the actual article content on the local disk or somewhere else;
article objects would just end up to a PLOB!-like object database,
along with the article text or just a reference to nntp or imap
server.
But oooh no, I'm stuck to this freaking alternative reality that
somehow splitted up somewhere in the '80s and everything just
started going backwards. I'm stuck to this pale shade of Lisp OS
called Emacs based on this &/%¤# Elisp and C running on top of this
everything-is-text Unix-lookalike, kept together with chewing-gum
and Perl (that looks like cat's vomit and leads to even more
disgusting chewing-gum-and-Perl software). On this Emacs I run
Gnus that I need to turn upside down every time I want to even
consider adding some small extension, and in this case all I would
get is a text file, at the corner of some stupid filesystem with
close to zero accessibility on different machines I use, with no
semantic content and associations to my other personal information
anyway. "Fortunately" I don't have time to do Gnus hacking right
now as after about 7h sleep I need to wake up to write AI code that
I eventually need to translate from CL to C++, which is a
requirement on our course. Not to mention that for the evening
I've scheduled myself to write Java for a course whose lecturer
looks world through C++/Java-glasses and preaches about design
patterns that really are just a service pack to get around C++'s
limitations, just like there are oodles of services packs and small
tune-this-and-that utils to give a feeling that one has momentarily
got around the brokeness of MS' software. At some point this whole
tower of crap will collapse and I want to be somewhere else then.
*phew*. Did I mention that I need a holiday? :)
--
Hannu
(loop (luuk |Pink Floyd|:|Sorrow| :loud t))
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Attaching notes to messages
1999-10-10 23:29 ` Hannu Koivisto
@ 1999-10-11 0:15 ` Harry Putnam
0 siblings, 0 replies; 11+ messages in thread
From: Harry Putnam @ 1999-10-11 0:15 UTC (permalink / raw)
Hannu Koivisto <azure@iki.fi> writes:
> Harry Putnam <reader@newsguy.com> writes:
>
> | Editing is also possibe in News groups with `C-u e'
>
> Hmm, what exactly happens in this case? Does the article get saved
> to a local disk like in the case of marking it persistent?
It just allows the user to Edit a News article and then (manually) save
it to whatever, nnml group etc. It saves the step of having to save it
first then move to group where saved to edit.
> |. . . . . . . . . . . . . then save that portion
> | to file with M-x save-to-file.
> | ^^^^^^^^^^^^^
append to file
> | Remove the annotation with C-w then attach it with 'C-c a'
> ^^^^^
C-c C-a
> Are these SAVE-TO-FILE and `C-c a' things part of your code? I
> can't see the connection and, on the other hand, they are not
> default stuff.
>
Read M-x append-to-file .... and C-c C-a The normal keycombo to
attach a file when in edit mode.
> | Save the Message plus attachment (to desired group) with the code I
> | mentioned above then kill the edit buffer.
> |
> | The result of all this is an annotation attached to a copy of original
> | message, saved in a special group. While leaving the original message
> | untouched in its group.
>
> As far as I can see, this doesn't provide any way to get to the
> annotation from the message...
Press "i" over the button.
This was only a way to attach memos to a message without altering the
message. I never do this. Better to put the edits in the message.
I've never needed a pristine original so far, so don't mind typing all
I want into the message itself.
However, with the method I use the original remains unchanged and in
place until an expiry rule gets to it.
> want to know what happens to by-force -edited news articles.
I think they dissappear when group is re-entered or message is closed
then opened after saving edit, if not saved in some way.
The utility of it is that it allows you to make your edit *before*
saving to disk. It illiminates a step in the save, edit, save
cycle. It becomes -- edit, save
> Although it still feels a bit hacky, I think this sounds the best
> way to go at least if I manage to wrap up some functions to ease
> using it. Oh well, one can't get everything.
>
[...] snipped fierce rant
>
> *phew*. Did I mention that I need a holiday? :)
Use "nn" for six weeks : )
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~1999-10-12 11:54 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-10 14:58 Attaching notes to messages Hannu Koivisto
1999-10-09 16:36 ` François Pinard
[not found] ` <wtn1zb3rnq1.fsf@licia.dtek.chalmers.se>
1999-10-09 20:56 ` François Pinard
1999-10-11 10:58 ` Eric Marsden
1999-10-12 8:18 ` storing messages in DBMSes (Was: Attaching notes to messages) Steinar Bang
1999-10-12 11:16 ` Eric Marsden
1999-10-12 11:54 ` Fabrice POPINEAU
1999-10-10 20:38 ` Attaching notes to messages Kai Großjohann
1999-10-10 18:53 ` Harry Putnam
1999-10-10 23:29 ` Hannu Koivisto
1999-10-11 0:15 ` Harry Putnam
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).