<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #3422: Do not remove temporary files when viewing attachments



#3422: Do not remove temporary files when viewing attachments
---------------------------------------------------+------------------------
 Reporter:  madduck                                |       Owner:  mutt-dev
     Type:  enhancement                            |      Status:  new     
 Priority:  major                                  |   Milestone:          
Component:  mutt                                   |     Version:  1.5.20  
 Keywords:  temporary files attachments data loss  |  
---------------------------------------------------+------------------------

Comment(by Gary Johnson):

 {{{
 On 2010-06-16, Mutt wrote:

 This is unreliable.  I've had some viewers take almost 20 seconds to
 finish reading an attachment after starting.  I could not find a
 delay time that was long enough to be safe while keeping mutt
 responsive.  I now use a different technique that gives each viewer
 its own copy of the attachment and lets the viewer delete it.

 It might be nice if there was some way to indicate to mutt in the
 mailcap rules whether to delete the file itself or let the viewer
 delete the file, though.  That might save me the trouble of copying
 the temporary file, but I haven't thought it through.


 Mutt uses a timestamp now to determine whether the user has edited a
 message.  The same technique could work here.


    1.  /tmp is not always set to autoclean itself on reboot.
    2.  Some Unix systems are not rebooted for years.
    3.  Not all installations use tmpreaper or the equivalent.
    4.  Not all mutt users leave 'tmpdir' set to /tmp.
    5.  Newer systems may have huge disks; older systems may not.
    6.  Temporary files have to be cleaned up sometime and I would
        rather that tools delete them when they're through with them
        than require me to manage yet another cron job.

 My $0.02.

 Regards,
 Gary
 }}}

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3422#comment:>
Mutt <http://www.mutt.org/>
The Mutt mail user agent