From: Stefano T. <to...@te...> - 2008-09-22 17:38:46
|
Hello, How I can donwload (from my imap server) all the mail from inbox folder and all other subfolder? Thanks |
From: Rob M. <rob...@gm...> - 2008-09-22 17:49:43
|
On Mon, Sep 22, 2008 at 16:38, Stefano Toni <to...@te...> wrote: > Hello, How I can donwload (from my imap server) all the mail from inbox > folder and all other subfolder? From the manual: -r <name> | --folder <name> (Keyword: folder[s]) Causes a specified non-default mail folder on the mailserver (or comma-separated list of folders) to be retrieved. The syntax of the folder name is server-dependent. This option is not available under POP3, ETRN, or ODMR. -- Please keep list traffic on the list. Rob MacGregor Whoever fights monsters should see to it that in the process he doesn't become a monster. Friedrich Nietzsche |
From: Stefano T. <to...@te...> - 2008-09-22 17:59:21
|
Hello Rob, I would like to know if exist an automatic retrieved. I cannot known all the subfolder of all users. Thanks -----Messaggio originale----- Da: fet...@li... [mailto:fet...@li...] Per conto di Rob MacGregor Inviato: lunedì 22 settembre 2008 17:50 A: fet...@li... Oggetto: Re: [fetchmail-users] imap and subfolder download On Mon, Sep 22, 2008 at 16:38, Stefano Toni <to...@te...> wrote: > Hello, How I can donwload (from my imap server) all the mail from inbox > folder and all other subfolder? >From the manual: -r <name> | --folder <name> (Keyword: folder[s]) Causes a specified non-default mail folder on the mailserver (or comma-separated list of folders) to be retrieved. The syntax of the folder name is server-dependent. This option is not available under POP3, ETRN, or ODMR. -- Please keep list traffic on the list. Rob MacGregor Whoever fights monsters should see to it that in the process he doesn't become a monster. Friedrich Nietzsche _______________________________________________ fetchmail-users mailing list fet...@li... https://lists.berlios.de/mailman/listinfo/fetchmail-users |
From: Rob M. <rob...@gm...> - 2008-09-22 18:54:44
|
On Mon, Sep 22, 2008 at 16:59, Stefano Toni <to...@te...> wrote: > Hello Rob, I would like to know if exist an automatic retrieved. No. > I cannot known all the subfolder of all users. I'm afraid you have to - fetchmail cannot automatically identify all the folders you want to download email from. -- Please keep list traffic on the list. Rob MacGregor Whoever fights monsters should see to it that in the process he doesn't become a monster. Friedrich Nietzsche |
From: Michelle K. <lin...@ta...> - 2008-09-30 15:51:05
Attachments:
signature.pgp
|
Am 2008-09-22 17:59:18, schrieb Stefano Toni: > Hello Rob, I would like to know if exist an automatic retrieved. I cannot > known all the subfolder of all users. The only way to do this is to use a smapp perl script using "libnet-imap-simple-perl" (Debian Package) to get a list of packages and then add them dynamicaly to the command- line. This is, what I do if I have to migrate a Winsuck server to a Linux one. ----[ '~/bin/get_imap_folders' ]---------------------------------------- #!/usr/bin/perl use Net::IMAP::Simple; use strict; my $PASS=""; my $USER=""; my $HOST=""; my $SEPARATOR=","; my $imap = Net::IMAP::Simple->new($HOST) || die $Net::IMAP::Simple::errstr."\n"; unless($imap->login($USER, $PASS)){ die "Login failed: " . $imap->errstr() . "\n"; } my @mb=$imap->mailboxes; foreach (@mb){ print "$_$SEPARATOR"; } $imap->quit; ------------------------------------------------------------------------ So the command fetchmail --folder $(get_imap_folders) should do the trick. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##################### Debian GNU/Linux Consultant ##################### Michelle Konzack Apt. 917 ICQ #328449886 +49/177/9351947 50, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) |
From: Matthias A. <mat...@gm...> - 2008-10-18 10:53:58
|
Michelle Konzack schrieb am 2008-09-27: > Am 2008-09-22 17:59:18, schrieb Stefano Toni: > > Hello Rob, I would like to know if exist an automatic retrieved. I cannot > > known all the subfolder of all users. > > The only way to do this is to use a smapp perl script using > > "libnet-imap-simple-perl" (Debian Package) > > to get a list of packages and then add them dynamicaly to the command- > line. This is, what I do if I have to migrate a Winsuck server to a > Linux one. > > ----[ '~/bin/get_imap_folders' ]---------------------------------------- ... > my @mb=$imap->mailboxes; > > foreach (@mb){ > print "$_$SEPARATOR"; > } Perl hint, the last three lines are nearly the same as: print join(@mb, $SEPARATOR), "\n"; The latter does not emit a trailing $SEPARATOR and adds a "\n" (line feed). -- Matthias Andree |
From: Evan C. <eva...@gm...> - 2008-10-19 03:34:03
|
Hello, The situation is; I need to have fetchmail read the POP3 server *before* the system default MTA reads this server. The suggested command "fetchmail -v -f .fetchmailrc", is not finding any mail even though I have sent mail to the server. Should this command be started somehow from cron (short interval)? ep. --------------------------------------------------------------------------------------------------------------------------------------------------------------- fetchmail -v -f .fetchmailrc fetchmail: 6.3.9-rc2 querying mailroom.***.***.edu (protocol POP3) at Sat 18 Oct 2008 08:56:54 PM EDT: poll started Trying to connect to ***.***.***.**/110...connected. fetchmail: POP3< +OK POP3 ***.***.edu v2003.83 server ready fetchmail: POP3> CAPA fetchmail: POP3< +OK Capability list follows: fetchmail: POP3< TOP fetchmail: POP3< LOGIN-DELAY 180 fetchmail: POP3< UIDL fetchmail: POP3< USER fetchmail: POP3< SASL LOGIN fetchmail: POP3< . fetchmail: mailroom.***.***.edu: opportunistic upgrade to TLS failed, trying to continue. fetchmail: POP3> USER evan fetchmail: POP3< +OK User name accepted, password please fetchmail: POP3> PASS * fetchmail: POP3< +OK Mailbox open, 0 messages fetchmail: POP3> STAT fetchmail: POP3< +OK 0 0 fetchmail: No mail for evan at mailroom.***.***.edu fetchmail: POP3> QUIT fetchmail: POP3< +OK Sayonara fetchmail: 6.3.9-rc2 querying mailroom.***.***.edu (protocol POP3) at Sat 18 Oct 2008 08:56:54 PM EDT: poll completed fetchmail: normal termination, status 1 |
From: Rob M. <rob...@gm...> - 2008-10-19 10:35:07
|
On Sun, Oct 19, 2008 at 02:34, Evan C. <eva...@gm...> wrote: > Hello, > The situation is; I need to have fetchmail read the POP3 server *before* the > system default MTA reads this server. > The suggested command "fetchmail -v -f .fetchmailrc", is not finding any > mail even though I have sent mail to > the server. Should this command be started somehow from cron (short > interval)? IMAP with IDLE is probably the only way to be reasonably certain. -- Please keep list traffic on the list. Rob MacGregor Whoever fights monsters should see to it that in the process he doesn't become a monster. Friedrich Nietzsche |