Wiki Ubuntu-it

Indice
Partecipa
FAQ
Wiki Blog
------------------
Ubuntu-it.org
Forum
Chiedi
Chat
Cerca
Planet
  • Pagina non alterabile
  • Informazioni
  • Allegati
  • attachment:inviare-email2.txt di AmbienteGrafico/Gnome/ScriptNautilus

Allegato "inviare-email2.txt"

Scarica

   1  #!/usr/bin/perl -w
   2 
   3     # By John Russell
   4 
   5     # and hacked to work with thunderbird by Darrell
   6 
   7     # This script sends the selected file(s) with mozilla-thunderbird.
   8 
   9     use strict;
  10 
  11     my $attach_string="\"attachment='";
  12 
  13     my @files = split("\n", $ENV{NAUTILUS_SCRIPT_SELECTED_FILE_PATHS});
  14 
  15     my $count = 0;
  16 
  17     foreach my $file (@files)
  18 
  19     {
  20 
  21         if ( ! -f $file && ! -l $file )
  22 
  23         {
  24 
  25             my @dialog = ("gdialog","--title","Error","--msgbox", "\nError: Can not send $file. \n\n    Only regular files can be mailed.    ","200", "300");
  26 
  27             system (@dialog);
  28 
  29         }
  30 
  31         else
  32 
  33         {
  34 
  35            $attach_string = $attach_string . "file://" . $file . ",";
  36 
  37                shift;
  38 
  39             $count += 1;
  40 
  41         }
  42 
  43     }
  44 
  45     if ($count > 0)
  46 
  47     {
  48 
  49         $attach_string = $attach_string . "'\"";
  50 
  51     # replace spaces with '%20' as demanded by mozilla/thunderbird    
  52 
  53         $attach_string =~ s/\s/%20/g;
  54 
  55     # invoke shell script to call thunderbird differently depending on whether it's running already or not
  56 
  57         my $command = ("~/scripts/thunderbird-email-attachments " . $attach_string);
  58 
  59         system($command);
  60 
  61     }

Allegati

Per riferirsi agli allegati di una pagina, usare attachment:NOME_FILE, come mostrato qui sotto nell'elenco degli allegati. NON usare l'URL che si trova in corrispondenza del collegamento [scarica], potrebbe cambiare in futuro.
  • [scarica | mostra] (13/09/2007 09.40.02, 1.3 KB) [[attachment:aprire-terminale.txt]]
  • [scarica | mostra] (24/01/2008 13.42.40, 0.2 KB) [[attachment:bluetooth.txt]]
  • [scarica | mostra] (13/09/2007 09.36.08, 8.0 KB) [[attachment:conversione-file-audio.txt]]
  • [scarica | mostra] (24/01/2008 13.42.35, 0.1 KB) [[attachment:file-root.txt]]
  • [scarica | mostra] (24/01/2008 10.34.17, 0.8 KB) [[attachment:inviare-email.txt]]
  • [scarica | mostra] (24/01/2008 13.35.41, 1.2 KB) [[attachment:inviare-email2.txt]]
  • [scarica | mostra] (24/01/2008 10.36.34, 0.4 KB) [[attachment:montare-iso.txt]]
  • [scarica | mostra] (24/01/2008 13.38.57, 0.8 KB) [[attachment:mostranascondi-filenascosti.txt]]
  • [scarica | mostra] (24/01/2008 13.39.01, 0.4 KB) [[attachment:ricerca.txt]]
  • [scarica | mostra] (24/01/2008 13.39.08, 0.7 KB) [[attachment:ridimensiona-immagini.txt]]
  • [scarica | mostra] (24/01/2008 10.36.38, 0.2 KB) [[attachment:smontare-iso.txt]]
  • [scarica | mostra] (17/04/2008 11.01.21, 0.1 KB) [[attachment:sudo-gedit.txt]]
  • [scarica | mostra] (24/01/2008 13.39.15, 0.9 KB) [[attachment:sudo-nautilus.txt]]
 All files | Selected Files: delete move to page copy to page

Non รจ consentito inserire allegati su questa pagina.