Alan Bram | 1 Jul 01:46 2010
Picon

[mew-int 2889] Re: re-load ~/Mail/Addrbook without restarting Emacs

By the way, if I have something like the following in my Addrbook

     jd  jdoe <at> example.com   johnny  "John Doe"

is there some easy way I can get the To: address in draft mode to  
look like this?

     To: John Doe <jdoe <at> example.com>

Picon

[mew-int 2890] Re: re-load ~/Mail/Addrbook without restarting Emacs

Hi Alan - I think it should come out looking like that in the To: line if you hit tab-escape-tab immediately
after typing "jdo".  Hope that helps!

Jeff
Jeffrey M. Roth, Ph.D ~ Advanced Lasercom Systems and Operations Group ~
MIT Lincoln Laboratory ~ 244 Wood Street ~ Lexington, MA 02420 USA ~
781.981.3468(t)/.0143(f) ~ jroth <at> ll.mit.edu ~ alum.mit.edu/www/roth

----- Original Message -----
From: mew-int-bounces <at> mew.org <mew-int-bounces <at> mew.org>
To: mew-int <at> mew.org <mew-int <at> mew.org>
Sent: Wed Jun 30 19:46:33 2010
Subject: [mew-int 2889] Re: re-load ~/Mail/Addrbook without restarting Emacs

By the way, if I have something like the following in my Addrbook

     jd  jdoe <at> example.com   johnny  "John Doe"

is there some easy way I can get the To: address in draft mode to  
look like this?

     To: John Doe <jdoe <at> example.com>

Picon

[mew-int 2891] Re: re-load ~/Mail/Addrbook without restarting Emacs

Hi Christophe -

That works great. 

Thank you!  Jeff :)

Jeffrey M. Roth, Ph.D ~ Advanced Lasercom Systems and Operations Group ~
MIT Lincoln Laboratory ~ 244 Wood Street ~ Lexington, MA 02420 USA ~
781.981.3468(t)/.0143(f) ~ jroth <at> ll.mit.edu ~ alum.mit.edu/www/roth

----- Original Message -----
From: Christophe TROESTLER <Christophe.Troestler <at> umons.ac.be>
To: Roth, Jeffrey - 0666 - MITLL
Cc: mew-int <at> mew.org <mew-int <at> mew.org>
Sent: Wed Jun 30 04:49:34 2010
Subject: Re: [mew-int 2884] re-load ~/Mail/Addrbook without restarting Emacs

On Tue, 29 Jun 2010 11:26:20 -0400, Jeffrey M.Roth wrote:
> 
> I would like to be able to re-load the ~/Mail/Addrbook during an Emacs
> Mew session, but have not figured out yet how to do this.

In summary mode, press `Z'.

Alan Bram | 1 Jul 16:48 2010
Picon

[mew-int 2892] Re: re-load ~/Mail/Addrbook without restarting Emacs

Yes, that works. Thanks!

And now that you mention it, I do see that in the manual. Don't know  
how I missed it before.

Cheers,
  - arb

On Jun 30, 2010, at 6:45 PM, Roth, Jeffrey - 0666 - MITLL wrote:

> Hi Alan - I think it should come out looking like that in the To:  
> line if you hit tab-escape-tab immediately after typing "jdo".   
> Hope that helps!
>
> Jeff
> Jeffrey M. Roth, Ph.D ~ Advanced Lasercom Systems and Operations  
> Group ~
> MIT Lincoln Laboratory ~ 244 Wood Street ~ Lexington, MA 02420 USA ~
> 781.981.3468(t)/.0143(f) ~ jroth <at> ll.mit.edu ~ alum.mit.edu/www/roth
>
> ----- Original Message -----
> From: mew-int-bounces <at> mew.org <mew-int-bounces <at> mew.org>
> To: mew-int <at> mew.org <mew-int <at> mew.org>
> Sent: Wed Jun 30 19:46:33 2010
> Subject: [mew-int 2889] Re: re-load ~/Mail/Addrbook without  
> restarting Emacs
>
> By the way, if I have something like the following in my Addrbook
>
>      jd  jdoe <at> example.com   johnny  "John Doe"
(Continue reading)

Christophe TROESTLER | 20 Jul 23:00 2010
X-Face
Picon

[mew-int 2893] Re: mew-wrap-lines

On Mon, 28 Jun 2010 22:34:09 +0200, Christophe TROESTLER wrote:
>
> - For lines starting with a dash, like enumerations, mew-wrap-lines 
>  uses the dash as a prefix to fold lines.
> - When several items follow, this make it impossible to distinguish 
>  them, unless one does not wrap the lines, which is not fun.
>
> Of course, one may have a citation prefix like
>
> > - bla bla...
>
> Is there a way to tell mew to remove the dashes (and maybe "*") fro 
> m filling prefix?  This would be a nice thing to have.

Replying to myself, here is the trick I use:

(defadvice mew-fill-match-adaptive-prefix
   (after mew-remove-itemize-chars)
   "Remove the symbols commonly used as indicators for itemize lists  
from
the prefix used for filling messages."
   (message ad-return-value)
   (setq ad-return-value
	(replace-regexp-in-string "[-*•]" " " ad-return-value)))

(add-hook 'mew-init-hook
  (function
   (lambda ()
     (ad-activate 'mew-fill-match-adaptive-prefix))))

(Continue reading)

Alan Bram | 21 Jul 23:59 2010
Picon

[mew-int 2894] Re: mew-wrap-lines

Yes, that's helpful. Thank you!

However, I still have a similar problem with list items that are  
marked with numbers, like

1) something here

2) another (long) thing here ...

On Jul 20, 2010, at 2:00 PM, Christophe TROESTLER wrote:

> On Mon, 28 Jun 2010 22:34:09 +0200, Christophe TROESTLER wrote:
>>
>> - For lines starting with a dash, like enumerations, mew-wrap- 
>> lines uses the dash as a prefix to fold lines.
>> - When several items follow, this make it impossible to  
>> distinguish them, unless one does not wrap the lines, which is not  
>> fun.
>>
>> Of course, one may have a citation prefix like
>>
>> > - bla bla...
>>
>> Is there a way to tell mew to remove the dashes (and maybe "*")  
>> from filling prefix?  This would be a nice thing to have.
>
> Replying to myself, here is the trick I use:
>
> (defadvice mew-fill-match-adaptive-prefix
>   (after mew-remove-itemize-chars)
(Continue reading)

Michael Ernst | 29 Jul 06:28 2010

[mew-int 2895] Re: mew-wrap-lines

Christophe-

> > Is there a way to tell mew to remove the dashes (and maybe "*") from
> > filling prefix?  This would be a nice thing to have.

Your code is useful, thanks a lot!

A minor point:  it's error-prone to pass a string that might contain "%" as
the first argument to the message function.  (It crashed for me soon after
I started using it.)  Here is a very tiny tweak to the given code.  I also
eliminated the need for the add-hook form.

(defadvice mew-fill-match-adaptive-prefix
  (after mew-remove-itemize-chars activate)
  "Remove the symbols commonly used as indicators for itemize lists from
the prefix used for filling messages."
  (message "%s" ad-return-value)
  (setq ad-return-value
	(replace-regexp-in-string "[-*•]" " " ad-return-value)))

		    -Mike

Christophe TROESTLER | 29 Jul 10:04 2010
X-Face
Picon

[mew-int 2896] Re: mew-wrap-lines

On Wed, 28 Jul 2010 21:28:14 -0700, Michael Ernst wrote:
> 
> A minor point:  it's error-prone to pass a string that might contain "%" as
> the first argument to the message function.

Thanks for your corrections.  The “message” was just to help figuring
out whether this was doing its job correctly.  It is better to remove
it altogether.

Best,
C.

> (defadvice mew-fill-match-adaptive-prefix
>   (after mew-remove-itemize-chars activate)
>   "Remove the symbols commonly used as indicators for itemize lists from
> the prefix used for filling messages."
>   (message "%s" ad-return-value)
>   (setq ad-return-value
> 	(replace-regexp-in-string "[-*•]" " " ad-return-value)))

Jeffrey M.Roth | 29 Jul 15:13 2010
Picon

[mew-int 2897] set default folder for mew attachments; detach multiple attachments


Hi All - I was wondering if people might know of a control setting
to specify the default folder for saving attachments.  I am hoping
perhaps there is a setq I can put in my .mew.el file?

At the moment the default folder is ~/ and I would like to change it.

Also, is there a command to save all attachments (from a single email)
at once?

Thanks!
Jeff
---
Jeffrey M. Roth, Ph.D ~ Advanced Lasercom Systems and Operations Group ~
MIT Lincoln Laboratory ~ 244 Wood Street ~ Lexington, MA 02420 USA ~
781.981.3468(t)/.0143(f) ~ jroth <at> ll.mit.edu ~ alum.mit.edu/www/roth

Harald Hanche-Olsen | 29 Jul 19:25 2010
Picon
Picon

[mew-int 2898] Re: set default folder for mew attachments; detach multiple attachments

On 29. juli 2010, at 15.13, "Jeffrey M.Roth" <jroth <at> ll.mit.edu> wrote:

> Also, is there a command to save all attachments (from a single email)
> at once?

C-u B

- Harald


Gmane