On Thu, Feb 17, 2011 at 04:48:16PM +0100, Pau wrote:
> Hello,
> 
> I have vi as my editor for composing new emails. Sometimes the
> connection breaks and then I have to dig into the tmp directory where
> the file was created. These files are named like
> 
> mutt-deukalion-500-10049-775496779933749571
> 
> with "deukalion" the hostname.
> 
> I would like to see whether there is a way to give these files another
> name. Something like
> 
> subject_date
> 
> with
> 
> subject: the subject of the email
> date: something like date '+%h_%d_%Y_%Hh%Mmin'
> 
> So that a temp. file would look like
> 
> Meeting_on_saturday_Feb_17_2011_16h45min
> 
> If the subject of that email had been "Meeting on saturday"
> 
> Probably adding the seconds would be better to avoid conflicts.

Look for 'void _mutt_mktemp' in muttlib.c .  My guess is you could make
modifications here, although I'm not sure how mutt would know about the
subject of a new message.

-- 
Monte

Reply via email to