Python论坛  - 讨论区

标题:Re: Re:_Re:_Re:_Re:_Re:_Re:_[python-chinese]_管理gmail的python程序

2004年08月31日 星期二 14:36

lihui lihuimail at gmail.com
Tue Aug 31 14:36:03 HKT 2004

有的

http://libgmail.sourceforge.net/

有例子,如下
import libgmail

ga = libgmail.GmailAccount("google at gmail.com", "mymailismypass")
ga.login()
folder = ga.getMessagesByFolder('inbox')

for thread in folder:
  print thread.id, len(thread), thread.subject
  for msg in thread:
    print "  ", msg.id, msg.number, msg.subject
    print msg.source



On Tue, 31 Aug 2004 14:33:32 +0800, limodou <chatme at 263.net> wrote:
> lihui,您好!
> 
>         这就叫收下来了?只有标题呀。内容在哪里呀
>     我使用archieve至少还有个文件生成。内容怎么看呀
> 
> ======= 2004-08-31 14:25:45 您在来信中写道:=======
> 
> >可以的,就是直接运行libgmail.py
> >
> >或者使用例子,见下面的运行情况
> >
> >只是汉字处理有问题,limodou老大帮解决一下,
> >
> >
> >[root at localhost libgmail-0.0.8]# python libgmail.py
> >Gmail account name: lihuimail
> >Password:
> >
> >Please wait, logging in...
> >Login successful.
> >
> >WARNING:root:Live Javascript and constants file versions differ.
> >0 MB of 1000 MB used. (0%)
> >
> >Select folder or label to list: (Ctrl-C to exit)
> >  0. inbox
> >  1. starred
> >  2. all
> >  3. drafts
> >  4. sent
> >  5. spam
> >  6. ftp
> >  7. gmail
> >  8. other
> >  9. private
> >  10. tkf
> >  11. work
> >  12. zlistpython
> >  13. zlistpythxx
> >  14. zlistzope
> >Choice: 11
> >
> >
> >feb37eb7fce9d7d 1 20040630tj
> >   feb37eb7fce9d7d 1 20040630tj
> >
> >feae561722b462c 1 杞彂: 2003骞翠腑淇濆姙缁熻
> >   feae561722b462c 1 杞彂: 2003骞翠腑淇濆姙缁熻
> >
> >Select folder or label to list: (Ctrl-C to exit)
> >  0. inbox
> >  1. starred
> >  2. all
> >  3. drafts
> >  4. sent
> >  5. spam
> >  6. ftp
> >  7. gmail
> >  8. other
> >  9. private
> >  10. tkf
> >  11. work
> >  12. zlistpython
> >  13. zlistpythxx
> >  14. zlistzope
> >Choice:
> >
> >
> >
> >
> >On Tue, 31 Aug 2004 14:18:02 +0800, limodou <chatme at 263.net> wrote:
> >> dreamingk(天成),您好!
> >>
> >>         popd我也没试成功。 smtpd没试,如果可以,一般的邮箱不就可以收、发信了吗。
> >>
> >> ======= 2004-08-31 14:06:17 您在来信中写道:=======
> >>
> >>
> >>
> >> >limodou,您好!
> >> >
> >> >    ftp服务器试用一下,可以登陆,但是上传也没成功不知道 怎么回事!不过这个想法还是不错的!
> >> >
> >> >======= 2004-08-31 13:50:43 您在来信中写道:=======
> >> >
> >> >>dreamingk(天成),您好!
> >> >>
> >> >>      呵呵。可以考虑。
> >> >>
> >> >>======= 2004-08-31 13:38:06 您在来信中写道:=======
> >> >>
> >> >>>lihui,您好!
> >> >>>
> >> >>>     我也在win下试了一下,demos里的收发信功能都是可以。
> >> >>>    limodou兄何不在newedit里集成一个gui的gmail客户端呢?
> >> >>>
> >> >>>======= 2004-08-31 11:50:42 您在来信中写道:=======
> >> >>>
> >> >>>>libgmail是可以的
> >> >>>>demo下有一些工具,可以读信和发信
> >> >>>>
> >> >>>>只是汉字处理有问题,可能是编码有问题
> >> >>>>
> >> >>>>仿真ftpserver上传没试成功
> >> >>>>
> >> >>>>另外还发现一个gmailfs,
> >> >>>>用在linux系统下,将gmail作为文件系统使用
> >> >>>>
> >> >>>>在www.donews.net首页有介绍
> >> >>>>
> >> >>>>网址:http://rocjard.jones.name/index.html
> >> >>>>
> >> >>>>On Tue, 31 Aug 2004 09:05:09 +0800, limodou <chatme at 263.net> wrote:
> >> >>>>> Deadman,您好!
> >> >>>>>
> >> >>>>>         我试了libgmail可以登录。不过,不知道如何看信,只知道有信。
> >> >>>>>
> >> >>>>> ======= 2004-08-30 22:42:30 您在来信中写道:=======
> >> >>>>>
> >> >>>>> >我�y���^程序需要修改�^才能用,看�硎�Gmail改��了接口
> >> >>>>> >
> >> >>>>> >On Mon, 30 Aug 2004 14:47:05 +0800, Zoom.Quiet <zoomq at infopro.cn> wrote:
> >> >>>>> >> Hollo lihui:
> >> >>>>> >>
> >> >>>>> >>  咦咦咦!??!?真的有Python 管理接口的!!!
> >> >>>>> >> 回家才能试用!
> >> >>>>> >>
> >> >>>>> >> 谢谢先!
> >> >>>>> >>
> >> >>>>> >> /******** [2004-08-30]14:46:39 ; lihui wrote:
> >> >>>>> >>
> >> >>>>> >> lihui> 网址没了,程序在附件
> >> >>>>> >>
> >> >>>>> >> ********************************************/
> >> >>>>> >>
> >> >>>>> >> --
> >> >>>>> >> Free as in Freedom
> >> >>>>> >>
> >> >>>>> >> Zoom.Quiet
> >> >>>>> >>
> >> >>>>> >> #=========================================#
> >> >>>>> >> ]Time is unimportant, only life important![
> >> >>>>> >> #=========================================#
> >> >>>>> >>
> >> >>>>> >> sender is the Bat!2.12.00
> >> >>>>> >>
> >> >>>>> >> _______________________________________________
> >> >>>>> >> python-chinese list
> >> >>>>> >> python-chinese at lists.python.cn
> >> >>>>> >> http://python.cn/mailman/listinfo/python-chinese
> >> >>>>> >>
> >> >>>>> >
> >> >>>>> >
> >> >>>>> >--
> >> >>>>> >The Deadman Walking......
> >> >>>>> >_______________________________________________
> >> >>>>> >python-chinese list
> >> >>>>> >python-chinese at lists.python.cn
> >> >>>>> >http://python.cn/mailman/listinfo/python-chinese
> >> >>>>>
> >> >>>>> = = = = = = = = = = = = = = = = = = = =
> >> >>>>>
> >> >>>>> 致
> >> >>>>> 礼!
> >> >>>>>
> >> >>>>>
> >> >>>>> limodou
> >> >>>>> chatme at 263.net
> >> >>>>> 2004-08-31
> >> >>>>>
> >> >>>>>
> >> >>>>>
> >> >>>>> _______________________________________________
> >> >>>>> python-chinese list
> >> >>>>> python-chinese at lists.python.cn
> >> >>>>> http://python.cn/mailman/listinfo/python-chinese
> >> >>>>>
> >> >>>>>
> >> >>>>_______________________________________________
> >> >>>>python-chinese list
> >> >>>>python-chinese at lists.python.cn
> >> >>>>http://python.cn/mailman/listinfo/python-chinese
> >> >>>
> >> >>>= = = = = = = = = = = = = = = = = = = =
> >> >>>
> >> >>>
> >> >>>致
> >> >>>礼!
> >> >>>
> >> >>>
> >> >>>dreamingk(天成)
> >> >>>dreamingker at 163.com
> >> >>>2004-08-31
> >> >>>
> >> >>>_______________________________________________
> >> >>>python-chinese list
> >> >>>python-chinese at lists.python.cn
> >> >>>http://python.cn/mailman/listinfo/python-chinese
> >> >>>
> >> >>
> >> >>= = = = = = = = = = = = = = = = = = = =
> >> >>
> >> >>
> >> >>致
> >> >>礼!
> >> >>
> >> >>
> >> >>limodou
> >> >>chatme at 263.net
> >> >>2004-08-31
> >> >>
> >> >>_______________________________________________
> >> >>python-chinese list
> >> >>python-chinese at lists.python.cn
> >> >>http://python.cn/mailman/listinfo/python-chinese
> >> >>
> >> >
> >> >= = = = = = = = = = = = = = = = = = = =
> >> >
> >> >
> >> >致
> >> >礼!
> >> >
> >> >
> >> >dreamingk(天成)
> >> >dreamingker at 163.com
> >> >2004-08-31
> >> >
> >> >_______________________________________________
> >> >python-chinese list
> >> >python-chinese at lists.python.cn
> >> >http://python.cn/mailman/listinfo/python-chinese
> >> >
> >>
> >> = = = = = = = = = = = = = = = = = = = =
> >>
> >> 致
> >> 礼!
> >>
> >>
> >> limodou
> >> chatme at 263.net
> >> 2004-08-31
> >>
> >>
> >>
> >> _______________________________________________
> >> python-chinese list
> >> python-chinese at lists.python.cn
> >> http://python.cn/mailman/listinfo/python-chinese
> >>
> >>
> >_______________________________________________
> >python-chinese list
> >python-chinese at lists.python.cn
> >http://python.cn/mailman/listinfo/python-chinese
> 
> = = = = = = = = = = = = = = = = = = = =
> 
>> 礼!
> 
> 
> limodou
> chatme at 263.net
> 2004-08-31
> 
> 
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 
>


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年08月31日 星期二 15:03

limodou chatme at 263.net
Tue Aug 31 15:03:51 HKT 2004

lihui,您好!

	那意思就是要自已写程序才行了。libgmail做不到呀。

======= 2004-08-31 14:36:03 您在来信中写道:=======

>有的
>
>http://libgmail.sourceforge.net/
>
>有例子,如下
>import libgmail
>
>ga = libgmail.GmailAccount("google at gmail.com", "mymailismypass")
>ga.login()
>folder = ga.getMessagesByFolder('inbox')
>
>for thread in folder:
>  print thread.id, len(thread), thread.subject
>  for msg in thread:
>    print "  ", msg.id, msg.number, msg.subject
>    print msg.source
>
>
>
>On Tue, 31 Aug 2004 14:33:32 +0800, limodou <chatme at 263.net> wrote:
>> lihui,您好!
>> 
>>         这就叫收下来了?只有标题呀。内容在哪里呀
>>     我使用archieve至少还有个文件生成。内容怎么看呀
>> 
>> ======= 2004-08-31 14:25:45 您在来信中写道:=======
>> 
>> >可以的,就是直接运行libgmail.py
>> >
>> >或者使用例子,见下面的运行情况
>> >
>> >只是汉字处理有问题,limodou老大帮解决一下,
>> >
>> >
>> >[root at localhost libgmail-0.0.8]# python libgmail.py
>> >Gmail account name: lihuimail
>> >Password:
>> >
>> >Please wait, logging in...
>> >Login successful.
>> >
>> >WARNING:root:Live Javascript and constants file versions differ.
>> >0 MB of 1000 MB used. (0%)
>> >
>> >Select folder or label to list: (Ctrl-C to exit)
>> >  0. inbox
>> >  1. starred
>> >  2. all
>> >  3. drafts
>> >  4. sent
>> >  5. spam
>> >  6. ftp
>> >  7. gmail
>> >  8. other
>> >  9. private
>> >  10. tkf
>> >  11. work
>> >  12. zlistpython
>> >  13. zlistpythxx
>> >  14. zlistzope
>> >Choice: 11
>> >
>> >
>> >feb37eb7fce9d7d 1 20040630tj
>> >   feb37eb7fce9d7d 1 20040630tj
>> >
>> >feae561722b462c 1 杞彂: 2003骞翠腑淇濆姙缁熻
>> >   feae561722b462c 1 杞彂: 2003骞翠腑淇濆姙缁熻
>> >
>> >Select folder or label to list: (Ctrl-C to exit)
>> >  0. inbox
>> >  1. starred
>> >  2. all
>> >  3. drafts
>> >  4. sent
>> >  5. spam
>> >  6. ftp
>> >  7. gmail
>> >  8. other
>> >  9. private
>> >  10. tkf
>> >  11. work
>> >  12. zlistpython
>> >  13. zlistpythxx
>> >  14. zlistzope
>> >Choice:
>> >
>> >
>> >
>> >
>> >On Tue, 31 Aug 2004 14:18:02 +0800, limodou <chatme at 263.net> wrote:
>> >> dreamingk(天成),您好!
>> >>
>> >>         popd我也没试成功。 smtpd没试,如果可以,一般的邮箱不就可以收、发信了吗。
>> >>
>> >> ======= 2004-08-31 14:06:17 您在来信中写道:=======
>> >>
>> >>
>> >>
>> >> >limodou,您好!
>> >> >
>> >> >    ftp服务器试用一下,可以登陆,但是上传也没成功不知道 怎么回事!不过这个想法还是不错的!
>> >> >
>> >> >======= 2004-08-31 13:50:43 您在来信中写道:=======
>> >> >
>> >> >>dreamingk(天成),您好!
>> >> >>
>> >> >>      呵呵。可以考虑。
>> >> >>
>> >> >>======= 2004-08-31 13:38:06 您在来信中写道:=======
>> >> >>
>> >> >>>lihui,您好!
>> >> >>>
>> >> >>>     我也在win下试了一下,demos里的收发信功能都是可以。
>> >> >>>    limodou兄何不在newedit里集成一个gui的gmail客户端呢?
>> >> >>>
>> >> >>>======= 2004-08-31 11:50:42 您在来信中写道:=======
>> >> >>>
>> >> >>>>libgmail是可以的
>> >> >>>>demo下有一些工具,可以读信和发信
>> >> >>>>
>> >> >>>>只是汉字处理有问题,可能是编码有问题
>> >> >>>>
>> >> >>>>仿真ftpserver上传没试成功
>> >> >>>>
>> >> >>>>另外还发现一个gmailfs,
>> >> >>>>用在linux系统下,将gmail作为文件系统使用
>> >> >>>>
>> >> >>>>在www.donews.net首页有介绍
>> >> >>>>
>> >> >>>>网址:http://rocjard.jones.name/index.html
>> >> >>>>
>> >> >>>>On Tue, 31 Aug 2004 09:05:09 +0800, limodou <chatme at 263.net> wrote:
>> >> >>>>> Deadman,您好!
>> >> >>>>>
>> >> >>>>>         我试了libgmail可以登录。不过,不知道如何看信,只知道有信。
>> >> >>>>>
>> >> >>>>> ======= 2004-08-30 22:42:30 您在来信中写道:=======
>> >> >>>>>
>> >> >>>>> >我�y���^程序需要修改�^才能用,看�硎�Gmail改��了接口
>> >> >>>>> >
>> >> >>>>> >On Mon, 30 Aug 2004 14:47:05 +0800, Zoom.Quiet <zoomq at infopro.cn> wrote:
>> >> >>>>> >> Hollo lihui:
>> >> >>>>> >>
>> >> >>>>> >>  咦咦咦!??!?真的有Python 管理接口的!!!
>> >> >>>>> >> 回家才能试用!
>> >> >>>>> >>
>> >> >>>>> >> 谢谢先!
>> >> >>>>> >>
>> >> >>>>> >> /******** [2004-08-30]14:46:39 ; lihui wrote:
>> >> >>>>> >>
>> >> >>>>> >> lihui> 网址没了,程序在附件
>> >> >>>>> >>
>> >> >>>>> >> ********************************************/
>> >> >>>>> >>
>> >> >>>>> >> --
>> >> >>>>> >> Free as in Freedom
>> >> >>>>> >>
>> >> >>>>> >> Zoom.Quiet
>> >> >>>>> >>
>> >> >>>>> >> #=========================================#
>> >> >>>>> >> ]Time is unimportant, only life important![
>> >> >>>>> >> #=========================================#
>> >> >>>>> >>
>> >> >>>>> >> sender is the Bat!2.12.00
>> >> >>>>> >>
>> >> >>>>> >> _______________________________________________
>> >> >>>>> >> python-chinese list
>> >> >>>>> >> python-chinese at lists.python.cn
>> >> >>>>> >> http://python.cn/mailman/listinfo/python-chinese
>> >> >>>>> >>
>> >> >>>>> >
>> >> >>>>> >
>> >> >>>>> >--
>> >> >>>>> >The Deadman Walking......
>> >> >>>>> >_______________________________________________
>> >> >>>>> >python-chinese list
>> >> >>>>> >python-chinese at lists.python.cn
>> >> >>>>> >http://python.cn/mailman/listinfo/python-chinese
>> >> >>>>>
>> >> >>>>> = = = = = = = = = = = = = = = = = = = =
>> >> >>>>>
>> >> >>>>> 致
>> >> >>>>> 礼!
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> limodou
>> >> >>>>> chatme at 263.net
>> >> >>>>> 2004-08-31
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>> _______________________________________________
>> >> >>>>> python-chinese list
>> >> >>>>> python-chinese at lists.python.cn
>> >> >>>>> http://python.cn/mailman/listinfo/python-chinese
>> >> >>>>>
>> >> >>>>>
>> >> >>>>_______________________________________________
>> >> >>>>python-chinese list
>> >> >>>>python-chinese at lists.python.cn
>> >> >>>>http://python.cn/mailman/listinfo/python-chinese
>> >> >>>
>> >> >>>= = = = = = = = = = = = = = = = = = = =
>> >> >>>
>> >> >>>
>> >> >>>致
>> >> >>>礼!
>> >> >>>
>> >> >>>
>> >> >>>dreamingk(天成)
>> >> >>>dreamingker at 163.com
>> >> >>>2004-08-31
>> >> >>>
>> >> >>>_______________________________________________
>> >> >>>python-chinese list
>> >> >>>python-chinese at lists.python.cn
>> >> >>>http://python.cn/mailman/listinfo/python-chinese
>> >> >>>
>> >> >>
>> >> >>= = = = = = = = = = = = = = = = = = = =
>> >> >>
>> >> >>
>> >> >>致
>> >> >>礼!
>> >> >>
>> >> >>
>> >> >>limodou
>> >> >>chatme at 263.net
>> >> >>2004-08-31
>> >> >>
>> >> >>_______________________________________________
>> >> >>python-chinese list
>> >> >>python-chinese at lists.python.cn
>> >> >>http://python.cn/mailman/listinfo/python-chinese
>> >> >>
>> >> >
>> >> >= = = = = = = = = = = = = = = = = = = =
>> >> >
>> >> >
>> >> >致
>> >> >礼!
>> >> >
>> >> >
>> >> >dreamingk(天成)
>> >> >dreamingker at 163.com
>> >> >2004-08-31
>> >> >
>> >> >_______________________________________________
>> >> >python-chinese list
>> >> >python-chinese at lists.python.cn
>> >> >http://python.cn/mailman/listinfo/python-chinese
>> >> >
>> >>
>> >> = = = = = = = = = = = = = = = = = = = =
>> >>
>> >> 致
>> >> 礼!
>> >>
>> >>
>> >> limodou
>> >> chatme at 263.net
>> >> 2004-08-31
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> python-chinese list
>> >> python-chinese at lists.python.cn
>> >> http://python.cn/mailman/listinfo/python-chinese
>> >>
>> >>
>> >_______________________________________________
>> >python-chinese list
>> >python-chinese at lists.python.cn
>> >http://python.cn/mailman/listinfo/python-chinese
>> 
>> = = = = = = = = = = = = = = = = = = = =
>> 
>>>> 礼!
>> 
>> 
>> limodou
>> chatme at 263.net
>> 2004-08-31
>> 
>> 
>> 
>> _______________________________________________
>> python-chinese list
>> python-chinese at lists.python.cn
>> http://python.cn/mailman/listinfo/python-chinese
>> 
>>
>_______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        limodou
        chatme at 263.net
          2004-08-31


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号