public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: net-im/session-desktop-bin/
@ 2022-10-02 11:14 Akash Paul
  0 siblings, 0 replies; 6+ messages in thread
From: Akash Paul @ 2022-10-02 11:14 UTC (permalink / raw
  To: gentoo-commits

commit:     8da6fa32790a4c35727c4eabad5b43e01faadd12
Author:     Akash Paul <paul007-dev <AT> outlook <DOT> com>
AuthorDate: Sun Oct  2 11:12:17 2022 +0000
Commit:     Akash Paul <paul007-dev <AT> outlook <DOT> com>
CommitDate: Sun Oct  2 11:12:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8da6fa32

New pacakage net-im/session-desktop-bin

Signed-off-by: Akash Paul <paul007-dev <AT> outlook.com>

 net-im/session-desktop-bin/Manifest                |   1 +
 net-im/session-desktop-bin/metadata.xml            |   8 ++
 .../session-desktop-bin-1.10.1.ebuild              | 117 +++++++++++++++++++++
 3 files changed, 126 insertions(+)

diff --git a/net-im/session-desktop-bin/Manifest b/net-im/session-desktop-bin/Manifest
new file mode 100644
index 000000000..3246ba750
--- /dev/null
+++ b/net-im/session-desktop-bin/Manifest
@@ -0,0 +1 @@
+DIST session-desktop-linux-amd64-1.10.1.deb 67725508 BLAKE2B f6ad9e45c582cfec6a2e0d19dc19908e7dcc2d47a6246b1eeb7433375b2e0bbf79763ae17029fb8334a25b501227ede1bca037b43b32529cc3898e535d779d91 SHA512 b16c2f37ba90ef5af8e5fff329818c88c3a80a243efeabc4cab21815306b78d0dfb1f262620e105b72f88c4a922f197e5b0b41fae54e0062e62bf237c5993bef

diff --git a/net-im/session-desktop-bin/metadata.xml b/net-im/session-desktop-bin/metadata.xml
new file mode 100644
index 000000000..ecf3a18b2
--- /dev/null
+++ b/net-im/session-desktop-bin/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+        <maintainer type="person">
+                <email>paul007-dev@outlook.com</email>
+                <name>Akash paul</name>
+        </maintainer>
+</pkgmetadata>

diff --git a/net-im/session-desktop-bin/session-desktop-bin-1.10.1.ebuild b/net-im/session-desktop-bin/session-desktop-bin-1.10.1.ebuild
new file mode 100644
index 000000000..340fcc3ed
--- /dev/null
+++ b/net-im/session-desktop-bin/session-desktop-bin-1.10.1.ebuild
@@ -0,0 +1,117 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="${PN/-bin/}"
+
+CHROMIUM_LANGS="
+	am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu he hi
+	hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv
+	sw ta te th tr uk vi zh-CN zh-TW
+"
+
+inherit chromium-2 linux-info unpacker optfeature xdg
+
+DESCRIPTION="Session Desktop - Onion routing based messenger"
+HOMEPAGE="https://getsession.org/ https://github.com/oxen-io/session-desktop"
+SRC_URI="https://github.com/oxen-io/session-desktop/releases/download/v${PV}/session-desktop-linux-amd64-${PV}.deb"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+RESTRICT="splitdebug"
+
+RDEPEND="
+	app-accessibility/at-spi2-atk:2
+	app-accessibility/at-spi2-core:2
+	dev-libs/atk
+	dev-libs/expat
+	dev-libs/glib:2
+	dev-libs/nspr
+	dev-libs/nss
+	dev-libs/wayland
+	media-libs/alsa-lib
+	media-libs/mesa[X(+)]
+	net-print/cups
+	sys-apps/dbus[X]
+	x11-libs/cairo
+	x11-libs/gtk+:3[X]
+	x11-libs/libdrm
+	x11-libs/libX11
+	x11-libs/libxcb
+	x11-libs/libxkbcommon
+	x11-libs/libXcomposite
+	x11-libs/libXdamage
+	x11-libs/libXext
+	x11-libs/libXfixes
+	x11-libs/libXrandr
+	x11-libs/pango
+"
+DESTDIR="/opt/${MY_PN}"
+
+QA_PREBUILT="
+	${DESTDIR#/}/session-desktop
+	${DESTDIR#/}/chrome_crashpad_handler
+	${DESTDIR#/}/chrome-sandbox
+	${DESTDIR#/}/libffmpeg.so
+	${DESTDIR#/}/libvk_swiftshader.so
+	${DESTDIR#/}/libvulkan.so.1
+	${DESTDIR#/}/libEGL.so
+	${DESTDIR#/}/libGLESv2.so
+	${DESTDIR#/}/libVkICD_mock_icd.so
+	${DESTDIR#/}/swiftshader/libEGL.so
+	${DESTDIR#/}/swiftshader/libGLESv2.so
+	${DESTDIR#/}/resources/app.asar.unpacked/node_modules/*
+"
+
+CONFIG_CHECK="~USER_NS"
+S="${WORKDIR}"
+
+pkg_pretend(){
+	chromium_suid_sandbox_check_kernel_config
+}
+
+src_unpack(){
+	unpack session-desktop-linux-amd64-${PV}.deb
+	unpack ../work/data.tar.xz
+	unpack ../work/usr/share/doc/session-desktop/changelog.gz	
+}
+
+src_prepare(){
+	default
+	rm control.tar.gz || die "Deletion of redundant control.tar.gz archive failed"
+	
+	pushd "opt/Session/locales/" || die "location change for language cleanup failed"
+	chromium_remove_language_paks
+	popd > /dev/null || die "location reset for language cleanup failed"
+}
+
+src_configure(){
+	chromium_suid_sandbox_check_kernel_config
+	default
+}
+
+src_install(){
+	insinto /
+	dodoc changelog
+	insopts -m0755
+	doins -r opt
+	
+	insinto /usr/share
+	doins -r usr/share/applications
+	doins -r usr/share/icons
+		
+	fperms 4755 /opt/Session/chrome-sandbox
+	
+	dosym -r /opt/Session/${MY_PN} /usr/bin/${MY_PN}
+}
+
+pkg_postinst(){
+	xdg_pkg_postinst
+	
+	optfeature "sound support" \
+		media-sound/pulseaudio media-sound/apulse[sdk] media-video/pipewire
+	optfeature "system tray support" dev-libs/libappindicator
+}
+


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

* [gentoo-commits] repo/proj/guru:dev commit in: net-im/session-desktop-bin/
@ 2022-11-29 18:07 Akash Paul
  0 siblings, 0 replies; 6+ messages in thread
From: Akash Paul @ 2022-11-29 18:07 UTC (permalink / raw
  To: gentoo-commits

commit:     fd6803a3b70626f0229b8fb7722aabf4fe5d7f6e
Author:     Akash Paul <paul007-dev <AT> outlook <DOT> com>
AuthorDate: Tue Nov 29 18:04:55 2022 +0000
Commit:     Akash Paul <paul007-dev <AT> outlook <DOT> com>
CommitDate: Tue Nov 29 18:04:55 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fd6803a3

net-im/session-desktop-bin: version bump 1.10.4, drop 1.10.1

Signed-off-by: Akash Paul <paul007-dev <AT> outlook.com>

 net-im/session-desktop-bin/Manifest                |  2 +-
 ....1.ebuild => session-desktop-bin-1.10.4.ebuild} | 44 +++++++++++++---------
 2 files changed, 28 insertions(+), 18 deletions(-)

diff --git a/net-im/session-desktop-bin/Manifest b/net-im/session-desktop-bin/Manifest
index 3246ba750..eae1b87f8 100644
--- a/net-im/session-desktop-bin/Manifest
+++ b/net-im/session-desktop-bin/Manifest
@@ -1 +1 @@
-DIST session-desktop-linux-amd64-1.10.1.deb 67725508 BLAKE2B f6ad9e45c582cfec6a2e0d19dc19908e7dcc2d47a6246b1eeb7433375b2e0bbf79763ae17029fb8334a25b501227ede1bca037b43b32529cc3898e535d779d91 SHA512 b16c2f37ba90ef5af8e5fff329818c88c3a80a243efeabc4cab21815306b78d0dfb1f262620e105b72f88c4a922f197e5b0b41fae54e0062e62bf237c5993bef
+DIST session-desktop-linux-amd64-1.10.4.deb 67382554 BLAKE2B 940431da24da31cf4d001b8d44dd47eeabeb37a3edd84a7da1a041d2930bef2716a7ac30125ef1e7c48355c4672966d9a0c324f282331b2e640a1280fb086cf4 SHA512 3ec3de891451e2cd1114d4c0f465ffb660ebf0dd915ccf1c358127dfcd04767bd2568c081c1790ea4cf99bd654d03c321d67cb2d57937b16d93f7aa3b8021bc6

diff --git a/net-im/session-desktop-bin/session-desktop-bin-1.10.1.ebuild b/net-im/session-desktop-bin/session-desktop-bin-1.10.4.ebuild
similarity index 74%
rename from net-im/session-desktop-bin/session-desktop-bin-1.10.1.ebuild
rename to net-im/session-desktop-bin/session-desktop-bin-1.10.4.ebuild
index 340fcc3ed..e198a744b 100644
--- a/net-im/session-desktop-bin/session-desktop-bin-1.10.1.ebuild
+++ b/net-im/session-desktop-bin/session-desktop-bin-1.10.4.ebuild
@@ -23,9 +23,9 @@ KEYWORDS="~amd64"
 RESTRICT="splitdebug"
 
 RDEPEND="
-	app-accessibility/at-spi2-atk:2
-	app-accessibility/at-spi2-core:2
-	dev-libs/atk
+		|| (
+			>=app-accessibility/at-spi2-core-2.46.0:2
+		)
 	dev-libs/expat
 	dev-libs/glib:2
 	dev-libs/nspr
@@ -73,43 +73,53 @@ pkg_pretend(){
 }
 
 src_unpack(){
-	unpack session-desktop-linux-amd64-${PV}.deb
+	default
 	unpack ../work/data.tar.xz
-	unpack ../work/usr/share/doc/session-desktop/changelog.gz	
+	unpack ../work/usr/share/doc/session-desktop/changelog.gz
 }
 
 src_prepare(){
 	default
-	rm control.tar.gz || die "Deletion of redundant control.tar.gz archive failed"
-	
-	pushd "opt/Session/locales/" || die "location change for language cleanup failed"
+
+	pushd "opt/Session/locales/" >/dev/null || die "location change for language cleanup failed"
 	chromium_remove_language_paks
 	popd > /dev/null || die "location reset for language cleanup failed"
 }
 
 src_configure(){
-	chromium_suid_sandbox_check_kernel_config
 	default
+	chromium_suid_sandbox_check_kernel_config
 }
 
 src_install(){
 	insinto /
 	dodoc changelog
-	insopts -m0755
-	doins -r opt
-	
+
 	insinto /usr/share
 	doins -r usr/share/applications
 	doins -r usr/share/icons
-		
-	fperms 4755 /opt/Session/chrome-sandbox
-	
-	dosym -r /opt/Session/${MY_PN} /usr/bin/${MY_PN}
+
+	pushd "opt/Session/" > /dev/null || die "change dir failed"
+
+	exeinto "${DESTDIR}"
+	doexe "${MY_PN}" chrome-sandbox libEGL.so libGLESv2.so libvk_swiftshader.so libffmpeg.so
+
+	insinto "${DESTDIR}"
+	doins chrome_100_percent.pak chrome_200_percent.pak icudtl.dat resources.pak snapshot_blob.bin v8_context_snapshot.bin
+	insopts -m0755
+	doins -r  locales resources swiftshader
+
+	popd > /dev/null || die "change dir reset failed"
+
+	fowners root "${DESTDIR}/chrome-sandbox"
+	fperms 4711 "${DESTDIR}/chrome-sandbox"
+
+	dosym -r "${DESTDIR}/${MY_PN}" "/usr/bin/${MY_PN}"
 }
 
 pkg_postinst(){
 	xdg_pkg_postinst
-	
+
 	optfeature "sound support" \
 		media-sound/pulseaudio media-sound/apulse[sdk] media-video/pipewire
 	optfeature "system tray support" dev-libs/libappindicator


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

* [gentoo-commits] repo/proj/guru:dev commit in: net-im/session-desktop-bin/
@ 2023-01-15 11:05 Akash Paul
  0 siblings, 0 replies; 6+ messages in thread
From: Akash Paul @ 2023-01-15 11:05 UTC (permalink / raw
  To: gentoo-commits

commit:     f12c51bfdda8f1f520975608a808571e815b6dfa
Author:     Akash Paul <paul007-dev <AT> outlook <DOT> com>
AuthorDate: Sun Jan 15 11:01:55 2023 +0000
Commit:     Akash Paul <paul007-dev <AT> outlook <DOT> com>
CommitDate: Sun Jan 15 11:01:55 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f12c51bf

net-im/session-desktop-bin: bugfix #889538-wrong path in session-desktop.desktop

Signed-off-by: Akash Paul <paul007-dev <AT> outlook.com>

 net-im/session-desktop-bin/metadata.xml                      | 3 +++
 net-im/session-desktop-bin/session-desktop-bin-1.10.4.ebuild | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/net-im/session-desktop-bin/metadata.xml b/net-im/session-desktop-bin/metadata.xml
index ecf3a18b2..86dc62a6d 100644
--- a/net-im/session-desktop-bin/metadata.xml
+++ b/net-im/session-desktop-bin/metadata.xml
@@ -5,4 +5,7 @@
                 <email>paul007-dev@outlook.com</email>
                 <name>Akash paul</name>
         </maintainer>
+        <upstream>
+        	<remote-id type="github">oxen-io/session-desktop</remote-id>
+        </upstream>
 </pkgmetadata>

diff --git a/net-im/session-desktop-bin/session-desktop-bin-1.10.4.ebuild b/net-im/session-desktop-bin/session-desktop-bin-1.10.4.ebuild
index e198a744b..6bb396c7b 100644
--- a/net-im/session-desktop-bin/session-desktop-bin-1.10.4.ebuild
+++ b/net-im/session-desktop-bin/session-desktop-bin-1.10.4.ebuild
@@ -84,6 +84,9 @@ src_prepare(){
 	pushd "opt/Session/locales/" >/dev/null || die "location change for language cleanup failed"
 	chromium_remove_language_paks
 	popd > /dev/null || die "location reset for language cleanup failed"
+
+	sed -i 's|/opt/Session/session-desktop|/opt/session-desktop/session-desktop|g' \
+		"${S}/usr/share/applications/session-desktop.desktop" || die "error changing .desktop file"
 }
 
 src_configure(){
@@ -124,4 +127,3 @@ pkg_postinst(){
 		media-sound/pulseaudio media-sound/apulse[sdk] media-video/pipewire
 	optfeature "system tray support" dev-libs/libappindicator
 }
-


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

* [gentoo-commits] repo/proj/guru:dev commit in: net-im/session-desktop-bin/
@ 2023-01-17 14:18 Akash Paul
  0 siblings, 0 replies; 6+ messages in thread
From: Akash Paul @ 2023-01-17 14:18 UTC (permalink / raw
  To: gentoo-commits

commit:     b528e750842b223725542f92a62d35666db3adca
Author:     Akash Paul <paul007-dev <AT> outlook <DOT> com>
AuthorDate: Tue Jan 17 14:16:53 2023 +0000
Commit:     Akash Paul <paul007-dev <AT> outlook <DOT> com>
CommitDate: Tue Jan 17 14:16:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b528e750

net-im/session-desktop-bin: revision bump r1, drop old

Signed-off-by: Akash Paul <paul007-dev <AT> outlook.com>

 net-im/session-desktop-bin/metadata.xml                                 | 2 +-
 ...n-desktop-bin-1.10.4.ebuild => session-desktop-bin-1.10.4-r1.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-im/session-desktop-bin/metadata.xml b/net-im/session-desktop-bin/metadata.xml
index 86dc62a6d..9e531f772 100644
--- a/net-im/session-desktop-bin/metadata.xml
+++ b/net-im/session-desktop-bin/metadata.xml
@@ -6,6 +6,6 @@
                 <name>Akash paul</name>
         </maintainer>
         <upstream>
-        	<remote-id type="github">oxen-io/session-desktop</remote-id>
+                <remote-id type="github">oxen-io/session-desktop</remote-id>
         </upstream>
 </pkgmetadata>

diff --git a/net-im/session-desktop-bin/session-desktop-bin-1.10.4.ebuild b/net-im/session-desktop-bin/session-desktop-bin-1.10.4-r1.ebuild
similarity index 100%
rename from net-im/session-desktop-bin/session-desktop-bin-1.10.4.ebuild
rename to net-im/session-desktop-bin/session-desktop-bin-1.10.4-r1.ebuild


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

* [gentoo-commits] repo/proj/guru:dev commit in: net-im/session-desktop-bin/
@ 2023-02-09 17:06 Akash Paul
  0 siblings, 0 replies; 6+ messages in thread
From: Akash Paul @ 2023-02-09 17:06 UTC (permalink / raw
  To: gentoo-commits

commit:     1d7650eccfc130a31c8f82933748d0c836d09da6
Author:     Akash Paul <paul007-dev <AT> outlook <DOT> com>
AuthorDate: Thu Feb  9 17:04:13 2023 +0000
Commit:     Akash Paul <paul007-dev <AT> outlook <DOT> com>
CommitDate: Thu Feb  9 17:04:13 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1d7650ec

net-im/session-desktop-bin: add 1.10.7, drop 1.10.4-r1

Signed-off-by: Akash Paul <paul007-dev <AT> outlook.com>

 net-im/session-desktop-bin/Manifest                                     | 2 +-
 ...n-desktop-bin-1.10.4-r1.ebuild => session-desktop-bin-1.10.7.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-im/session-desktop-bin/Manifest b/net-im/session-desktop-bin/Manifest
index eae1b87f8..86da34b10 100644
--- a/net-im/session-desktop-bin/Manifest
+++ b/net-im/session-desktop-bin/Manifest
@@ -1 +1 @@
-DIST session-desktop-linux-amd64-1.10.4.deb 67382554 BLAKE2B 940431da24da31cf4d001b8d44dd47eeabeb37a3edd84a7da1a041d2930bef2716a7ac30125ef1e7c48355c4672966d9a0c324f282331b2e640a1280fb086cf4 SHA512 3ec3de891451e2cd1114d4c0f465ffb660ebf0dd915ccf1c358127dfcd04767bd2568c081c1790ea4cf99bd654d03c321d67cb2d57937b16d93f7aa3b8021bc6
+DIST session-desktop-linux-amd64-1.10.7.deb 67822974 BLAKE2B 4fb8290f068a360717d945fde10e0de12585d1df0c14df9edcfc3112da4b693a4d8a4aad1f859ba4ef50190b94ebe87c639a164d6f33a93de345f107edcc4d6d SHA512 7acb2ecc42161a0bb6325a068f6ba8f8464fb9c1f2fa449318e4e69a9538882a6a7a432769949629dc57d305c266d3570a3ee78be77986a8475d8fb8f1f3ef8a

diff --git a/net-im/session-desktop-bin/session-desktop-bin-1.10.4-r1.ebuild b/net-im/session-desktop-bin/session-desktop-bin-1.10.7.ebuild
similarity index 100%
rename from net-im/session-desktop-bin/session-desktop-bin-1.10.4-r1.ebuild
rename to net-im/session-desktop-bin/session-desktop-bin-1.10.7.ebuild


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

* [gentoo-commits] repo/proj/guru:dev commit in: net-im/session-desktop-bin/
@ 2023-04-07 12:10 Akash Paul
  0 siblings, 0 replies; 6+ messages in thread
From: Akash Paul @ 2023-04-07 12:10 UTC (permalink / raw
  To: gentoo-commits

commit:     4b36424f3da9288b823c190cd081efb7d903bd36
Author:     Akash Paul <paul007-dev <AT> outlook <DOT> com>
AuthorDate: Fri Apr  7 12:02:54 2023 +0000
Commit:     Akash Paul <paul007-dev <AT> outlook <DOT> com>
CommitDate: Fri Apr  7 12:02:54 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4b36424f

net-im/session-desktop-bin: add 1.10.8, drop 1.10.7

Signed-off-by: Akash Paul <paul007-dev <AT> outlook.com>

 net-im/session-desktop-bin/Manifest                                     | 2 +-
 ...sion-desktop-bin-1.10.7.ebuild => session-desktop-bin-1.10.8.ebuild} | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-im/session-desktop-bin/Manifest b/net-im/session-desktop-bin/Manifest
index 86da34b10..938f051f6 100644
--- a/net-im/session-desktop-bin/Manifest
+++ b/net-im/session-desktop-bin/Manifest
@@ -1 +1 @@
-DIST session-desktop-linux-amd64-1.10.7.deb 67822974 BLAKE2B 4fb8290f068a360717d945fde10e0de12585d1df0c14df9edcfc3112da4b693a4d8a4aad1f859ba4ef50190b94ebe87c639a164d6f33a93de345f107edcc4d6d SHA512 7acb2ecc42161a0bb6325a068f6ba8f8464fb9c1f2fa449318e4e69a9538882a6a7a432769949629dc57d305c266d3570a3ee78be77986a8475d8fb8f1f3ef8a
+DIST session-desktop-linux-amd64-1.10.8.deb 67823156 BLAKE2B fa41b44560a22d2244ec99c96f0c50d16d5706912aebef5e5607c908f2f02e5c37255ee371472af64e7d145549de6477c16b4fe32ca4fbd3cc4a38bfb1df1caf SHA512 da5a68904c1e09885bcc880ca98bebdadfd884b7b8447208624c6f2deb469fd5e4f0e3fffd8686bc6919f96a2d06092f3e8b40839df3c565833850bc64945079

diff --git a/net-im/session-desktop-bin/session-desktop-bin-1.10.7.ebuild b/net-im/session-desktop-bin/session-desktop-bin-1.10.8.ebuild
similarity index 100%
rename from net-im/session-desktop-bin/session-desktop-bin-1.10.7.ebuild
rename to net-im/session-desktop-bin/session-desktop-bin-1.10.8.ebuild


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

end of thread, other threads:[~2023-04-07 12:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-15 11:05 [gentoo-commits] repo/proj/guru:dev commit in: net-im/session-desktop-bin/ Akash Paul
  -- strict thread matches above, loose matches on Subject: below --
2023-04-07 12:10 Akash Paul
2023-02-09 17:06 Akash Paul
2023-01-17 14:18 Akash Paul
2022-11-29 18:07 Akash Paul
2022-10-02 11:14 Akash Paul

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