Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
5e37d795
Kaydet (Commit)
5e37d795
authored
Ock 19, 2005
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Description of args to IMAP4.store() in imaplib
(closes SF patch #1084092; modified per comments in SF)
üst
14004244
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
libimaplib.tex
Doc/lib/libimaplib.tex
+20
-1
No files found.
Doc/lib/libimaplib.tex
Dosyayı görüntüle @
5e37d795
...
@@ -143,6 +143,13 @@ is either a string, or a tuple. If a tuple, then the first part
...
@@ -143,6 +143,13 @@ is either a string, or a tuple. If a tuple, then the first part
is the header of the response, and the second part contains
is the header of the response, and the second part contains
the data (ie: 'literal' value).
the data (ie: 'literal' value).
The
\var
{
message
_
set
}
options to commands below is a string specifying one
or more messages to be acted upon. It may be a simple message number
(
\code
{
'1'
}
), a range of message numbers (
\code
{
'2:4'
}
), or a group of
non-contiguous ranges separated by commas (
\code
{
'1:3,6:9'
}
). A range
can contain an asterisk to indicate an infinite upper bound
(
\code
{
'3:*'
}
).
An
\class
{
IMAP4
}
instance has the following methods:
An
\class
{
IMAP4
}
instance has the following methods:
...
@@ -389,7 +396,18 @@ msgnums = M.search(None, '(FROM "LDJ")')
...
@@ -389,7 +396,18 @@ msgnums = M.search(None, '(FROM "LDJ")')
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
{
store
}{
message
_
set, command, flag
_
list
}
\begin{methoddesc}
{
store
}{
message
_
set, command, flag
_
list
}
Alters flag dispositions for messages in mailbox.
Alters flag dispositions for messages in mailbox.
\var
{
command
}
is
specified by section 6.4.6 of
\rfc
{
2060
}
as being one of "FLAGS", "+FLAGS",
or "-FLAGS", optionally with a suffix of ".SILENT".
For example, to set the delete flag on all messages:
\begin{verbatim}
typ, data = M.search(None, 'ALL')
for num in data[0].split():
M.store(num, '+FLAGS', '
\\
Deleted')
M.expunge()
\end{verbatim}
\end{methoddesc}
\end{methoddesc}
\begin{methoddesc}
{
subscribe
}{
mailbox
}
\begin{methoddesc}
{
subscribe
}{
mailbox
}
...
@@ -473,5 +491,6 @@ typ, data = M.search(None, 'ALL')
...
@@ -473,5 +491,6 @@ typ, data = M.search(None, 'ALL')
for num in data[0].split():
for num in data[0].split():
typ, data = M.fetch(num, '(RFC822)')
typ, data = M.fetch(num, '(RFC822)')
print 'Message
%s\n%s\n' % (num, data[0][1])
print 'Message
%s\n%s\n' % (num, data[0][1])
M.close()
M.logout()
M.logout()
\end{verbatim}
\end{verbatim}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment