Change default "Re: your mail" subject when replying to blank subject

2009-11-02 Thread Michael Williams
Hi,

Is it possible to change the default "Re: your mail" subject that mutt
uses when replying to emails that arrive without a subject to something
less, er, passive aggressive -- or something in another language?

Apologies if this is a FAQ, but it's rather difficult to Google, and I
can find no mention in the manual. 

-- Mike


Re: Change default "Re: your mail" subject when replying to blank

2009-11-02 Thread Monte Stevens
On Mon, Nov 02, 2009 at 04:27:14PM +, Michael Williams wrote:
> Is it possible to change the default "Re: your mail" subject that mutt
> uses when replying to emails that arrive without a subject to something
> less, er, passive aggressive -- or something in another language?

You can edit the source "send.c" file.  Look for:

  else if (!env->subject)
  env->subject = safe_strdup ("Re: your mail");

Change 'your mail' to 'whatever you like'; I use 'no subject'.


-- 
Monte


Re: Change default "Re: your mail" subject when replying to blank

2009-11-02 Thread Michael Williams
On Mon, Nov 02, 2009 at 12:49:38PM -0400, Monte Stevens wrote:
> > Is it possible to change the default "Re: your mail" subject that
> > mutt uses when replying to emails that arrive without a subject to
> > something less, er, passive aggressive -- or something in another
> > language?
> 
> You can edit the source "send.c" file.  Look for:
> 
>   else if (!env->subject)
>   env->subject = safe_strdup ("Re: your mail");
> 
> Change 'your mail' to 'whatever you like'; I use 'no subject'.

Thanks, that works. 

Seems like the kind of thing that should be exposed to end user
configuration rather than requiring the user to edit source code. I have
raised a ticket: http://dev.mutt.org/trac/ticket/3349.

-- Mike


Re: Change default "Re: your mail" subject when replying to blank

2009-11-02 Thread Gary Johnson
On 2009-11-02, Michael Williams  wrote:
> On Mon, Nov 02, 2009 at 12:49:38PM -0400, Monte Stevens wrote:
> > > Is it possible to change the default "Re: your mail" subject that
> > > mutt uses when replying to emails that arrive without a subject to
> > > something less, er, passive aggressive -- or something in another
> > > language?
> > 
> > You can edit the source "send.c" file.  Look for:
> > 
> >   else if (!env->subject)
> >   env->subject = safe_strdup ("Re: your mail");
> > 
> > Change 'your mail' to 'whatever you like'; I use 'no subject'.
> 
> Thanks, that works. 
> 
> Seems like the kind of thing that should be exposed to end user
> configuration rather than requiring the user to edit source code. I have
> raised a ticket: http://dev.mutt.org/trac/ticket/3349.

But changing that subject doesn't require the user to edit source
code--the user can easily change it when prompted for the subject of
the reply or from the compose menu.  Further, if you're going to be
picky about the subject, it should really reflect the subject of the
message, not be just some generic equivalent of "you forgot the
subject".  It hardly seems worth making this configurable.

Regards,
Gary




Re: Change default "Re: your mail" subject when replying to blank

2009-11-02 Thread Noah Sheppard
On Mon, Nov 02, 2009 at 01:46:12PM -0800, Gary Johnson wrote:
> On 2009-11-02, Michael Williams  wrote:
> > On Mon, Nov 02, 2009 at 12:49:38PM -0400, Monte Stevens wrote:
> > > > Is it possible to change the default "Re: your mail" subject that
> > > > [..]
> > > You can edit the source "send.c" file.  Look for:
> > > [..]
> > [..]
> > Seems like the kind of thing that should be exposed to end user
> > [..]

> But changing that subject doesn't require the user to edit source
> code--the user can easily change it when prompted for the subject of
> the reply or from the compose menu.
I think the point of having a configurable default is so that we don't
have to change it when prompted.  I'd rather not have to type
"Re: my custom non-subject reply subject" or whatever every time I reply
to a message which had no subject.

> Further, if you're going to be picky about the subject, it should
> really reflect the subject of the message, not be just some generic
> equivalent of "you forgot the subject".  It hardly seems worth making
> this configurable.
By that logic, why do we have the "Re: your mail" hard-coded default at
all?

Cheers,
-- 
Noah Sheppard
Assistant Computer Resource Manager
Taylor University CSE Department
nshep...@cse.taylor.edu



Re: Change default "Re: your mail" subject when replying to blank

2009-11-02 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On Monday, November  2 at 05:13 PM, quoth Noah Sheppard:
> I think the point of having a configurable default is so that we 
> don't have to change it when prompted.  I'd rather not have to type 
> "Re: my custom non-subject reply subject" or whatever every time I 
> reply to a message which had no subject.

Actually... couldn't you do that with a reply-hook?

reply-hook '~s ^$' 'My Custom Header'

(I haven't tested that, of course)

~Kyle
- -- 
You cannot reason a person out of a position he did not reason himself 
into in the first place.
 -- Jonathan Swift
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iQIVAwUBSu9cbCuveozR/AWeAQjBbBAAiZg/f2aHeVu+DEqD5kJziNNTexFAfxL2
mDxZBKNiNnFJYnxzPTXYuNxn2YM0iKCUKTY5/MtkmsAh7GdY42Tp1JU8q3QRC8do
ELKxxwkSqJVO3wyQZVmM69QSwGpm7tcSLmHW5WxborG8Tu+UguFIb0XJUb93qQIr
Zo80MKpEo7W40DnM8ci4j29SN4uShin/DT7MKTzf0JY8+Qhb4hJRGNigTiKCdSPM
oGfIWdLhG7MxfkGs1wDVF1C9j/PmJeT+tlqOlGH+PbuTP0zdrDFgpFy2ueQSnpVj
VAGQObGLe9FI4hiDvulN4fwMlvwplvTqUVsD8ulPQmOhmxNJRfvcsKAlcYn01nDz
6un0pS+bc5S2rp83nQ4QiAJKJMfScqjSTMq9M5+ODcIGIhgYoxSJmqu4XOi7bvsR
6X+d26deXlET9jiht00ZXirbYmQOwMpLNyohIeeP12T67fj0urdO199qBowuavN9
hjG7DsLFWWVscV/WEc/K8QfP101Ga6IFj5GxdDq0LI4yWqjSYEwF+NGSmxVCDPQ6
nhPFnaTV4U4F2woh0mRmXm9MJsSEuA99RDH0ML/rDw4j+OUbAEJDrEAMufgornWR
wqPil/P3JcE2SxzaNN8Ud8lneHfvKjMP27Eqzy/dwfXVtWIDBmaYM+qKeIIqoggg
HhXVzQ1abPw=
=2JJH
-END PGP SIGNATURE-


Re: Change default "Re: your mail" subject when replying to blank

2009-11-02 Thread John K Masters
On 17:13 Mon 02 Nov , Noah Sheppard wrote:
> On Mon, Nov 02, 2009 at 01:46:12PM -0800, Gary Johnson wrote:
> > On 2009-11-02, Michael Williams  wrote:
> > > On Mon, Nov 02, 2009 at 12:49:38PM -0400, Monte Stevens wrote:
> > > > > Is it possible to change the default "Re: your mail" subject that
> > > > > [..]
> > > > You can edit the source "send.c" file.  Look for:
> > > > [..]
> > > [..]
> > > Seems like the kind of thing that should be exposed to end user
> > > [..]
> 
> > But changing that subject doesn't require the user to edit source
> > code--the user can easily change it when prompted for the subject of
> > the reply or from the compose menu.
> I think the point of having a configurable default is so that we don't
> have to change it when prompted.  I'd rather not have to type
> "Re: my custom non-subject reply subject" or whatever every time I reply
> to a message which had no subject.
> 
> > Further, if you're going to be picky about the subject, it should
> > really reflect the subject of the message, not be just some generic
> > equivalent of "you forgot the subject".  It hardly seems worth making
> > this configurable.
> By that logic, why do we have the "Re: your mail" hard-coded default at
> all?
> 

Surely the easiest way is to 'set edit-headers' and change the Re: to
whatever. Subjects evolve.

-- 
Regards,
John K Masters


Re: Change default "Re: your mail" subject when replying to blank

2009-11-02 Thread Patrick Shanahan
* Noah Sheppard  [11-02-09 17:15]:
> I think the point of having a configurable default is so that we don't
> have to change it when prompted.  I'd rather not have to type
> "Re: my custom non-subject reply subject" or whatever every time I reply
> to a message which had no subject.
 
...

> By that logic, why do we have the "Re: your mail" hard-coded default at
> all?

Good questions.  It should default to *requiring* a subject and there
would be no problem  :^)


-- 
Patrick Shanahan Plainfield, Indiana, USAHOG # US1244711
http://wahoo.no-ip.org Photo Album:  http://wahoo.no-ip.org/gallery2
Registered Linux User #207535@ http://counter.li.org


Re: Change default "Re: your mail" subject when replying to blank

2009-11-02 Thread Gary Johnson
On 2009-11-02, Noah Sheppard  wrote:
> On Mon, Nov 02, 2009 at 01:46:12PM -0800, Gary Johnson wrote:

> > Further, if you're going to be picky about the subject, it should
> > really reflect the subject of the message, not be just some generic
> > equivalent of "you forgot the subject".  It hardly seems worth making
> > this configurable.
> By that logic, why do we have the "Re: your mail" hard-coded default at
> all?

Because at that point in the code, mutt has to do something about
creating a subject for a reply to a message without a subject.
Testing for and providing a reasonable solution for that rare case
took two lines of code.  The subject could have been simply "Re: ",
but the author decided to make it a little nicer with "Re: your
mail", a difference of nine characters in a string.

Doing any more than that to address the very narrow case of "I don't
want to bother changing the reply but I don't like the default",
just seems to me like overkill.  Of course, I can probably count on
one hand the number of replies I've sent to messages without
subjects.

Regards,
Gary




Re: Change default "Re: your mail" subject when replying to blank

2009-11-02 Thread Michael Williams
On Mon, Nov 02, 2009 at 03:03:08PM -0800, Gary Johnson wrote:
> Doing any more than that to address the very narrow case of "I don't
> want to bother changing the reply but I don't like the default", just
> seems to me like overkill.  

You're forgetting "I don't want to bother changing the reply and my
recipient (and I) do not correspond in English".

In the absence of an option to change this string exposed to the user --
or a change mutt-wide to *require* a real subject for new messages and
replies -- the hard-coded default in the source code should be changed
to just the users current reply prefix ("Re:", "AW:", etc.). The current
default subject happens to be badly worded (in my opinion), but at best
it adds no useful information whatsoever to the email for English
speakers, and adds noise for non-English speakers that must be manually
removed.

-- Mike


Re: Change default "Re: your mail" subject when replying to blank

2009-11-02 Thread bill lam
On Mon, 02 Nov 2009, Michael Williams wrote:
> Is it possible to change the default "Re: your mail" subject that mutt

I have no problem with that default, but the subject "Re: your mail"
looks like a spam.

-- 
regards,

GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


Re: Change default "Re: your mail" subject when replying to blank

2009-11-02 Thread John McCabe-Dansted
On Tue, Nov 3, 2009 at 8:27 AM, Michael Williams
 wrote:
> You're forgetting "I don't want to bother changing the reply and my
> recipient (and I) do not correspond in English".

Mutt now supports internationalization, so for this purpose the
developers could replace "Re: your mail" with _("Re: your mail") and
leave this up to the translators?

-- 
John C. McCabe-Dansted