Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Automatically saving all attachements
@ 2013-01-29 18:50 Ico
  2013-01-29 23:40 ` Edward Z. Yang
  2013-01-30  9:32 ` Gaute Hope
  0 siblings, 2 replies; 4+ messages in thread
From: Ico @ 2013-01-29 18:50 UTC (permalink / raw)
  To: sup-talk

Does anyone happen to have a hook that automatically saves all
attachements to a given directory when receiving or opening an e-mail?

Thanks,

Ico
-- 
:wq
^X^Cy^K^X^C^C^C^C
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sup-talk] Automatically saving all attachements
  2013-01-29 18:50 [sup-talk] Automatically saving all attachements Ico
@ 2013-01-29 23:40 ` Edward Z. Yang
  2013-01-30  9:32 ` Gaute Hope
  1 sibling, 0 replies; 4+ messages in thread
From: Edward Z. Yang @ 2013-01-29 23:40 UTC (permalink / raw)
  To: Ico; +Cc: sup-talk

No, but OfflineIMAP+Sup effectively does this (as the attachments
will be stored with your mail).

A hook like this wouldn't be too hard to implement, but you will need to
think carefully about intended semantics: if you open an email twice,
should it save the attachment twice? If the hook is on-receive, what
should the attachment be named?  How hard is it to find the attachment
you actually want, esp if you receive many?  How do you deal with
multipart messages (txt + HTML versions; the HTML counts as an
"attachment").

Cheers,
Edward

Excerpts from Ico's message of Tue Jan 29 10:50:23 -0800 2013:
> Does anyone happen to have a hook that automatically saves all
> attachements to a given directory when receiving or opening an e-mail?
> 
> Thanks,
> 
> Ico
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sup-talk] Automatically saving all attachements
  2013-01-29 18:50 [sup-talk] Automatically saving all attachements Ico
  2013-01-29 23:40 ` Edward Z. Yang
@ 2013-01-30  9:32 ` Gaute Hope
  2013-01-30  9:57   ` Ico
  1 sibling, 1 reply; 4+ messages in thread
From: Gaute Hope @ 2013-01-30  9:32 UTC (permalink / raw)
  To: Ico; +Cc: sup-talk

On 29. jan. 2013 19:50, Ico wrote:
> Does anyone happen to have a hook that automatically saves all
> attachements to a given directory when receiving or opening an e-mail?
> 
> Thanks,
> 
> Ico
> 

Maybe there is some inspiration to be found in the save_all_to_disk
function (keypress 'A' in thread view mode):

https://github.com/sup-heliotrope/sup/blob/master/lib/sup/modes/thread-view-mode.rb#L375

- gaute


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [sup-talk] Automatically saving all attachements
  2013-01-30  9:32 ` Gaute Hope
@ 2013-01-30  9:57   ` Ico
  0 siblings, 0 replies; 4+ messages in thread
From: Ico @ 2013-01-30  9:57 UTC (permalink / raw)
  To: Gaute Hope; +Cc: sup-talk

* On Wed Jan 30 10:32:16 +0100 2013, Gaute Hope wrote:
 
> Maybe there is some inspiration to be found in the save_all_to_disk
> function (keypress 'A' in thread view mode):

Just what the doctor ordered, thanks for the hint!
-- 
:wq
^X^Cy^K^X^C^C^C^C


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-30  9:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-29 18:50 [sup-talk] Automatically saving all attachements Ico
2013-01-29 23:40 ` Edward Z. Yang
2013-01-30  9:32 ` Gaute Hope
2013-01-30  9:57   ` Ico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox