Re: [Orgmode] Mail files in org

2008-08-29 Thread Taru Karttunen
On 28.08 09:58, Russell Adams wrote:
> I'd like to follow up on putting a message ID link in org to open
> emails though.

This works with mutt and a suitable version of org-mairix (attached).
And a .emacs configuration (needs to be customized) like:

(require 'org-mairix)
(setq org-mairix-mutt-display-command "urxvt -title 'mairix search: %search%' 
-e mutt -f ~/mail/mairix -e \"push \" &"
  org-mairix-display-hook 'org-mairix-mutt-display-results)


- Taru Karttunen
;;; org-mairix.el - Support for hooking mairix search into Org for different 
MUAs
;;
;; Copyright (C) 2007 Georg C. F. Greve
;; mutt support by Adam Spiers 
;;
;; Author: Georg C. F. Greve 
;; Keywords: outlines, hypermedia, calendar, wp, email, mairix
;; Purpose: Integrate mairix email searching into Org mode
;; See http://orgmode.org and http://www.rpcurnow.force9.co.uk/mairix/
;; Version: 0.5
;;
;; This file is Free Software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.

;; It is distributed in the hope that it will be useful, but WITHOUT
;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
;; or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
;; License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
;
;; USAGE NOTE
;;
;; You will need to configure mairix first, which involves setting up your
;; .mairixrc in your home directory. Once it is working, you should set up
;; your way to display results in your favorite way -- usually a MUA.
;; Currently gnus and mutt are supported.
;;
;; After both steps are done, all you should need to hook mairix, org
;; and your MUA together is to do (require 'org-mairix) in your
;; startup file. Everything can then be configured normally through
;; Emacs customisation.
;;
;

(require 'org)

;;; The custom variables

(defgroup org-mairix nil
  "Mairix support/integration in org."
  :tag "Org Mairix"
  :group 'org)

(defcustom org-mairix-threaded-links t
  "Should new links be created as threaded links?
If t, links will be stored as threaded searches.
If nil, links will be stored as non-threaded searches."
  :group 'org-mairix
  :type 'boolean)

(defcustom org-mairix-augmented-links nil
  "Should new links be created as augmenting searches?
If t, links will be stored as augmenting searches.
If nil, links will be stored as normal searches.

Attention: When activating this option, you will need
to remove old articles from your mairix results group
in some other way, mairix will not do it for you."
  :group 'org-mairix
  :type 'boolean)

(defcustom org-mairix-display-hook 'org-mairix-gnus-display-results
  "Hook to call to display the results of a successful mairix search.
Defaults to Gnus, feel free to add your own MUAs or methods."
  :group 'org-mairix
  :type 'hook)

(defcustom org-mairix-open-command "mairix %args% '%search%'"
  "The mairix command-line to use. If your paths are set up
correctly, you should not need to change this.

'%search%' will get substituted with the search expression, and
'%args%' with any additional arguments."
  :group 'org-mairix
  :type 'string)

;;; The hooks to integrate mairix into org

(org-add-link-type "mairix" 'org-mairix-open)
(add-hook 'org-store-link-functions 'org-mairix-store-gnus-link)

;;; Generic org-mairix functions

(defun org-mairix-construct-link (message-id)
  "Construct a mairix: hyperlink based on message-id."
  (concat "mairix:"
  (if org-mairix-threaded-links "t:")
  (if org-mairix-augmented-links "a:")
  "@@"
  (org-remove-angle-brackets message-id)))

(defun org-store-mairix-link-props (&rest plist)
  "Take a property list describing a mail, and add mairix link
and description properties so that org can build a mairix link to
it."
  ;; We have to call `org-store-link-props' twice:
  ;;
  ;;   - It extracts 'fromname'/'fromaddress' from 'from' property,
  ;; and stores the updated plist to `org-store-link-plist'.
  ;;
  ;;   - `org-email-link-description' uses these new properties to
  ;; build a description from the previously stored plist.  I
  ;; wrote a tiny patch to `org-email-link-description' so it
  ;; could take a non-stored plist as an optional 2nd argument,
  ;; but the plist provided still needs 'fromname'/'fromaddress'.
  ;;
  ;;   - Ideally we would decouple the storing bit of
  ;; `org-store-link-props' from the extraction bit, but lots of
  ;; stuff in `org-store-link' which calls it would need to be
  ;; changed.  Maybe just factor o

Re: [Orgmode] Mail files in org

2008-08-28 Thread Russell Adams
On Thu, Aug 28, 2008 at 05:45:38PM +0200, Richard G Riley wrote:
> 
> Gnus supports maildir too although recently I moved to an IMAP server
> which accesses the maildir format created with procmail on my mail
> server.
> 

I've recently reorganized my folders to be served up by Dovecot so I
can access my maildir inside VM with Thunderbird. A great hack, and
Mutt compatible!

> I did use Mutt for a while but being an emacs user I took the plunge and
> went Gnus and never looked back. All the things you are familiar with
> integrate nicely (flyspell, org-mode etc). And, of course, Gnus merges
> the concept of usenet and email which is great when you get it all
> sorted out and configured to your liking. But now its starting to sound
> like I am pimping  Gnus. But as an emacs user I would recommend you take
> the plunge again and retry Gnus.

I don't do usenet, and I use emacs as the message editor for Mutt. I
do use BBDB with Mutt via LBDB.

Perhaps I should review Gnus again, any good references or screenshots
of it in operation?


--
Russell Adams[EMAIL PROTECTED]

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Mail files in org

2008-08-28 Thread Richard G Riley
Russell Adams <[EMAIL PROTECTED]> writes:

> On Thu, Aug 28, 2008 at 05:10:46PM +0200, Richard G Riley wrote:
>> 
>> This already works if you use Gnus.
>
> I adore emacs, but I haven't been sold into it for mail. I used Pine a
> decade ago, and moved to Mutt. I like its interface and maildir
> support.

Gnus supports maildir too although recently I moved to an IMAP server
which accesses the maildir format created with procmail on my mail
server.


I did use Mutt for a while but being an emacs user I took the plunge and
went Gnus and never looked back. All the things you are familiar with
integrate nicely (flyspell, org-mode etc). And, of course, Gnus merges
the concept of usenet and email which is great when you get it all
sorted out and configured to your liking. But now its starting to sound
like I am pimping  Gnus. But as an emacs user I would recommend you take
the plunge again and retry Gnus.

>
> I haven't compared it to Gnus in a while, but I'd prefer to just link
> to a message than change clients.

:-;


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Mail files in org

2008-08-28 Thread Russell Adams
On Thu, Aug 28, 2008 at 05:10:46PM +0200, Richard G Riley wrote:
> 
> This already works if you use Gnus.

I adore emacs, but I haven't been sold into it for mail. I used Pine a
decade ago, and moved to Mutt. I like its interface and maildir
support.

I haven't compared it to Gnus in a while, but I'd prefer to just link
to a message than change clients.

--
Russell Adams[EMAIL PROTECTED]

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Mail files in org

2008-08-28 Thread Richard G Riley
Russell Adams <[EMAIL PROTECTED]> writes:

> On Thu, Aug 28, 2008 at 02:54:22PM +, Charles Howard wrote:
>> 
>> Is it possible to structure a large collection of emails in an org file ? 
>> Are there any specific tools for doing this ?
>> 
>> I have used pine for many years but the business of categorizing sensibly 
>> into folders the hundreds of mails which 
>> come each week is out of hand. Googlemail is offering a single file of 
>> emails, with (multiple) `tabs' replacing
>> the functionality of folders. This seems like a great step forward, but I 
>> don't like GUIs, and I'm not happy that on 
>> googlemail it seems not to be possible to download an email to disk with 
>> header information. (And I don't want all
>> my emails permanently on someone else's server.)
>> 
>> Maybe this has been thought of already, but I can't see it anywhere. I've 
>> never used mail under emacs (though I've used
>> emacs for about 12 years). 
>> 
>> What I have in mind is a single text file containing (say) one year's 10^5 
>> emails. I could go through attaching tabs, 
>> TODO notes, draft replies, rude remarks, tags, ... able to open a specific 
>> category ...
>> 
>> If I'm reinventing the wheel, please don't be too harsh. 
>
> Between Mutt and Mairix I use maildir (one message per file) and
> searching to meet my needs.
>
> I'd like to follow up on putting a message ID link in org to open
> emails though.

This already works if you use Gnus.

>
> --
> Russell Adams[EMAIL PROTECTED]
>
> PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
>
> Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

-- 


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Mail files in org

2008-08-28 Thread Russell Adams
On Thu, Aug 28, 2008 at 02:54:22PM +, Charles Howard wrote:
> 
> Is it possible to structure a large collection of emails in an org file ? Are 
> there any specific tools for doing this ?
> 
> I have used pine for many years but the business of categorizing sensibly 
> into folders the hundreds of mails which 
> come each week is out of hand. Googlemail is offering a single file of 
> emails, with (multiple) `tabs' replacing
> the functionality of folders. This seems like a great step forward, but I 
> don't like GUIs, and I'm not happy that on 
> googlemail it seems not to be possible to download an email to disk with 
> header information. (And I don't want all
> my emails permanently on someone else's server.)
> 
> Maybe this has been thought of already, but I can't see it anywhere. I've 
> never used mail under emacs (though I've used
> emacs for about 12 years). 
> 
> What I have in mind is a single text file containing (say) one year's 10^5 
> emails. I could go through attaching tabs, 
> TODO notes, draft replies, rude remarks, tags, ... able to open a specific 
> category ...
> 
> If I'm reinventing the wheel, please don't be too harsh. 

Between Mutt and Mairix I use maildir (one message per file) and
searching to meet my needs.

I'd like to follow up on putting a message ID link in org to open
emails though.

--
Russell Adams[EMAIL PROTECTED]

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Mail files in org

2008-08-28 Thread Charles Howard

Is it possible to structure a large collection of emails in an org file ? Are 
there any specific tools for doing this ?

I have used pine for many years but the business of categorizing sensibly into 
folders the hundreds of mails which 
come each week is out of hand. Googlemail is offering a single file of emails, 
with (multiple) `tabs' replacing
the functionality of folders. This seems like a great step forward, but I don't 
like GUIs, and I'm not happy that on 
googlemail it seems not to be possible to download an email to disk with header 
information. (And I don't want all
my emails permanently on someone else's server.)

Maybe this has been thought of already, but I can't see it anywhere. I've never 
used mail under emacs (though I've used
emacs for about 12 years). 

What I have in mind is a single text file containing (say) one year's 10^5 
emails. I could go through attaching tabs, 
TODO notes, draft replies, rude remarks, tags, ... able to open a specific 
category ...

If I'm reinventing the wheel, please don't be too harsh. 

Chas
_
Win New York holidays with Kellogg’s & Live Search
http://clk.atdmt.com/UKM/go/107571440/direct/01/

___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode